Improve UniquenessHelpers#ensure_unique_id
This commit will raise an error when detecting multiple sequences owned by the same table. This will avoid weird situation where the id was not generated correctly for some instances.
显示
- lib/gitlab/database/partitioning_migration_helpers/uniqueness_helpers.rb 20 个添加, 4 个删除...base/partitioning_migration_helpers/uniqueness_helpers.rb
- lib/gitlab/database/postgres_sequence.rb 1 个添加, 0 个删除lib/gitlab/database/postgres_sequence.rb
- spec/lib/gitlab/database/partitioning_migration_helpers/uniqueness_helpers_spec.rb 30 个添加, 0 个删除...partitioning_migration_helpers/uniqueness_helpers_spec.rb
- spec/lib/gitlab/database/postgres_sequences_spec.rb 15 个添加, 6 个删除spec/lib/gitlab/database/postgres_sequences_spec.rb
想要评论请 注册 或 登录