-
- Downloads
Use check constraints instead of change_column_null
- Add migration helpers for managing NOT NULL constraints (add, validate, remove, check if exists) - Update migration helpers to use add_not_null_constraint to enforce NOT NULL for existing columns instead of change_column_null - Update the disable_statement_timeout migration helper to allow calling it multiple times, even from inside a block of another disable_statement_timeout, without resetting the timout before the outer block finishes - Update the Database Guides with a reference to add_not_null_constraint
parent
9955183f
No related branches found
No related tags found
Showing
- doc/development/what_requires_downtime.md 33 additions, 2 deletionsdoc/development/what_requires_downtime.md
- lib/gitlab/database/migration_helpers.rb 75 additions, 7 deletionslib/gitlab/database/migration_helpers.rb
- spec/lib/gitlab/database/migration_helpers_spec.rb 179 additions, 17 deletionsspec/lib/gitlab/database/migration_helpers_spec.rb
- spec/support/shared_examples/lib/gitlab/migration_helpers_shared_examples.rb 2 additions, 1 deletion..._examples/lib/gitlab/migration_helpers_shared_examples.rb
Please register or sign in to comment