Merge pull request #7130 from tchak/fix-exports-migration

fix(exports): disable strong migration checks because we are operating on a “small” table
This commit is contained in:
mfo 2022-04-07 09:48:13 +02:00 committed by GitHub
commit 59cddcbfe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,9 @@ class AddProcedurePresentationAndStateToExports < ActiveRecord::Migration[6.1]
def change def change
add_reference :exports, :procedure_presentation, null: true, index: { algorithm: :concurrently } add_reference :exports, :procedure_presentation, null: true, index: { algorithm: :concurrently }
StrongMigrations.disable_check(:add_column)
add_column :exports, :statut, :string, default: 'tous' add_column :exports, :statut, :string, default: 'tous'
StrongMigrations.enable_check(:add_column)
remove_index :exports, [:format, :time_span_type, :key] remove_index :exports, [:format, :time_span_type, :key]
add_index :exports, [:format, :time_span_type, :statut, :key], unique: true, algorithm: :concurrently add_index :exports, [:format, :time_span_type, :statut, :key], unique: true, algorithm: :concurrently
end end