diff --git a/resources/migrations/000_migrations.yaml b/resources/migrations/000_migrations.yaml index 21e011370298b051e402fa43d58e7a3a48595336..355234471f20235662d2ffb33393e5b53820dc09 100644 --- a/resources/migrations/000_migrations.yaml +++ b/resources/migrations/000_migrations.yaml @@ -11806,19 +11806,6 @@ databaseChangeLog: remarks: List of parameter associated to a card constraints: nullable: true - deferrable: false - initiallyDeferred: false - - changeSet: - id: v44.00-024 - author: qnkhuat - comment: Added 0.44.0 - Add parameters to report_card - changes: - - addNotNullConstraint: - columnDataType: ${text.type} - columnName: parameters - defaultNullValue: '[]' - tableName: report_card - - changeSet: id: v44.00-025 author: qnkhuat @@ -11833,18 +11820,6 @@ databaseChangeLog: remarks: List of parameter associated to a card constraints: nullable: true - deferrable: false - initiallyDeferred: false - - changeSet: - id: v44.00-026 - author: qnkhuat - comment: Added 0.44.0 - Add parameter_mappings to report_card - changes: - - addNotNullConstraint: - columnDataType: ${text.type} - columnName: parameter_mappings - defaultNullValue: '[]' - tableName: report_card - changeSet: id: v44.00-027 @@ -11918,20 +11893,11 @@ databaseChangeLog: columns: - column: name: type - type: ${text.type} + type: varchar(32) + defaultValue: 'full' remarks: Type of FieldValues constraints: - nullable: true - - changeSet: - id: v44.00-036 - author: qnkhuat - comment: Added 0.44.0 - Add default value for metabase_fieldvalues.type - changes: - - addNotNullConstraint: - columnDataType: ${text.type} - columnName: type - defaultNullValue: 'full' - tableName: metabase_fieldvalues + nullable: false - changeSet: id: v44.00-037 author: qnkhuat diff --git a/test/metabase/db/schema_migrations_test.clj b/test/metabase/db/schema_migrations_test.clj index 24f0b3bf79095cbfc83dbac3cf9d482cd57d1f65..5fb6849c7f59986f0b2cfbfe2b4058c460e524f8 100644 --- a/test/metabase/db/schema_migrations_test.clj +++ b/test/metabase/db/schema_migrations_test.clj @@ -595,7 +595,8 @@ :database_id database-id :collection_id nil})] (migrate!) - (is (= [] (:parameters (first (db/simple-select Card {:where [:= :id card-id]}))))))))) + (is (= nil + (:parameters (first (db/simple-select Card {:where [:= :id card-id]}))))))))) (deftest add-parameter-mappings-to-cards-test (testing "Migration v44.00-024: Add parameter_mappings to cards" @@ -619,7 +620,7 @@ :database_id database-id :collection_id nil})] (migrate!) - (is (= [] + (is (= nil (:parameter_mappings (first (db/simple-select Card {:where [:= :id card-id]}))))))))) (deftest grant-all-users-root-snippets-collection-readwrite-perms-test