7dd7e8fc36
Signed-off-by: Thomas Citharel <tcit@tcit.fr> Fix credo warnings Signed-off-by: Thomas Citharel <tcit@tcit.fr> Show elixir version Signed-off-by: Thomas Citharel <tcit@tcit.fr> Also lint migrations Signed-off-by: Thomas Citharel <tcit@tcit.fr> Reset allow failure to false Signed-off-by: Thomas Citharel <tcit@tcit.fr>
11 lines
294 B
Elixir
11 lines
294 B
Elixir
defmodule Mobilizon.Repo.Migrations.RemoveAddressType do
|
|
use Ecto.Migration
|
|
require Logger
|
|
|
|
def up do
|
|
execute("ALTER TABLE \"events\" DROP COLUMN IF EXISTS address_type")
|
|
execute("DROP TYPE IF EXISTS address_type")
|
|
rename(table(:events), :phone, to: :phone_address)
|
|
end
|
|
end
|