summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorrpereira2 <rpereira@gitlab.com>2019-08-23 18:32:30 +0530
committerrpereira2 <rpereira@gitlab.com>2019-08-24 07:50:58 +0530
commitc09aa0ddcc53641a8f15722b8405cb372688d73e (patch)
tree0dfdd80e560413c38223bd3e8847e3da8a28d16a /doc/api
parent523c619fe41191e32c852dae972958302364c3ca (diff)
downloadgitlab-ce-fix-migration.tar.gz
Drop existing trigger before creating new onefix-migration
- When renaming a column concurrently, drop any existing trigger before attempting to create a new one. When running migration specs multiple times (as it happens during local development), the down method of previous migrations are called. If any of the called methods contains a call to rename_column_concurrently, a trigger will be created and not removed. So, the next time a migration spec is run, if the same down method is executed again, it will cause an error when attempting to create the trigger (since it already exists). Dropping the trigger if it already exists will prevent this problem.
Diffstat (limited to 'doc/api')
0 files changed, 0 insertions, 0 deletions