Commit 3620ea42 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix migration issue for mysql with index not being removed

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 07bee141
...@@ -14,6 +14,7 @@ SELECT provider, extern_uid, id FROM users ...@@ -14,6 +14,7 @@ SELECT provider, extern_uid, id FROM users
WHERE provider IS NOT NULL WHERE provider IS NOT NULL
eos eos
remove_index :users, ["extern_uid", "provider"]
remove_column :users, :extern_uid remove_column :users, :extern_uid
remove_column :users, :provider remove_column :users, :provider
end end
...@@ -34,5 +35,6 @@ eos ...@@ -34,5 +35,6 @@ eos
end end
drop_table :identities drop_table :identities
add_index "users", ["extern_uid", "provider"], name: "index_users_on_extern_uid_and_provider", unique: true, using: :btree
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment