From b13b74af2677798bbcb4596e945962a4adbd1f09 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 15 Jan 2019 14:22:06 +0100 Subject: [PATCH] Remove type after column Signed-off-by: Thomas Citharel --- priv/repo/migrations/20190114162055_remove_address_type.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priv/repo/migrations/20190114162055_remove_address_type.exs b/priv/repo/migrations/20190114162055_remove_address_type.exs index 74b73b7a3..360f77188 100644 --- a/priv/repo/migrations/20190114162055_remove_address_type.exs +++ b/priv/repo/migrations/20190114162055_remove_address_type.exs @@ -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