Remove type after column
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
5745d05834
commit
b13b74af26
@ -3,8 +3,8 @@ defmodule Mobilizon.Repo.Migrations.RemoveAddressType do
|
|||||||
require Logger
|
require Logger
|
||||||
|
|
||||||
def up do
|
def up do
|
||||||
execute "DROP TYPE IF EXISTS address_type"
|
|
||||||
execute "ALTER TABLE \"events\" DROP COLUMN IF EXISTS address_type"
|
execute "ALTER TABLE \"events\" DROP COLUMN IF EXISTS address_type"
|
||||||
|
execute "DROP TYPE IF EXISTS address_type"
|
||||||
rename table(:events), :phone, to: :phone_address
|
rename table(:events), :phone, to: :phone_address
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user