diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-05-15 18:11:45 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-05-15 18:11:45 +0300 |
commit | 0663458ce9e0b530bfe3b496388299590e74a54f (patch) | |
tree | c76393771c5a3744f3ab6f62e63c976671c8e594 /db/post_migrate | |
parent | 5e7fdf61e0077f2475e80c271d113ec391e02402 (diff) | |
parent | 93a373fd0921b6c9912be30099f8fdb981421cd0 (diff) |
Merge branch 'bvl-rename-build-events-to-job-events' into 'master'
Rename `build_events` to `job_events`
Closes #31620
See merge request !11287
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb | 18 | ||||
-rw-r--r-- | db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb b/db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb new file mode 100644 index 00000000000..281be90163a --- /dev/null +++ b/db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb @@ -0,0 +1,18 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class CleanupRenameWebHooksBuildEventsToJobEvents < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + cleanup_concurrent_column_rename :web_hooks, :build_events, :job_events + end + + def down + rename_column_concurrently :web_hooks, :job_events, :build_events + end +end diff --git a/db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb b/db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb new file mode 100644 index 00000000000..5d26df5688f --- /dev/null +++ b/db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb @@ -0,0 +1,18 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class CleanupRenameServicesBuildEventsToJobEvents < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + cleanup_concurrent_column_rename :services, :build_events, :job_events + end + + def down + rename_column_concurrently :services, :job_events, :build_events + end +end |