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-01-14 18:12:52 +01:00
|
|
|
execute "ALTER TABLE \"events\" DROP COLUMN IF EXISTS address_type"
|
2019-01-15 14:22:06 +01:00
|
|
|
execute "DROP TYPE IF EXISTS address_type"
|
2019-01-14 17:48:08 +01:00
|
|
|
rename table(:events), :phone, to: :phone_address
|
|
|
|
end
|
|
|
|
end
|