Remove type after column

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-01-15 14:22:06 +01:00
parent c4a4a31e5b
commit 80c6351d2f
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 1 additions and 1 deletions

View File

@ -3,8 +3,8 @@ defmodule Mobilizon.Repo.Migrations.RemoveAddressType do
require Logger
def up do
execute "DROP TYPE 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
end
end