2019-01-14 17:48:08 +01:00
|
|
|
defmodule Mobilizon.Repo.Migrations.RemoveAddressType do
|
|
|
|
use Ecto.Migration
|
2019-01-14 18:12:52 +01:00
|
|
|
require Logger
|
2019-01-14 17:48:08 +01:00
|
|
|
|
|
|
|
def up do
|
2019-02-22 14:18:52 +01:00
|
|
|
execute("ALTER TABLE \"events\" DROP COLUMN IF EXISTS address_type")
|
|
|
|
execute("DROP TYPE IF EXISTS address_type")
|
|
|
|
rename(table(:events), :phone, to: :phone_address)
|
2019-01-14 17:48:08 +01:00
|
|
|
end
|
|
|
|
end
|