diff options
| author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-20 09:33:44 +0200 |
|---|---|---|
| committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-26 11:37:23 +0200 |
| commit | 5d7ee7a1b6c818dd0ccba6a393875072dabd7eba (patch) | |
| tree | 80067ea849e46a106e3177de7bcba050748c164b /db/migrate | |
| parent | 198ae21e2ccd88f2670faf90d69799f2b3294b73 (diff) | |
| download | gitlab-ce-5d7ee7a1b6c818dd0ccba6a393875072dabd7eba.tar.gz | |
Use optimistic locking
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20161021114307_add_lock_version_to_build_and_pipelines.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20161021114307_add_lock_version_to_build_and_pipelines.rb b/db/migrate/20161021114307_add_lock_version_to_build_and_pipelines.rb new file mode 100644 index 00000000000..b47f3aa2810 --- /dev/null +++ b/db/migrate/20161021114307_add_lock_version_to_build_and_pipelines.rb @@ -0,0 +1,14 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddLockVersionToBuildAndPipelines < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + def change + add_column :ci_builds, :lock_version, :integer + add_column :ci_commits, :lock_version, :integer + end +end |
