diff --git a/resources/migrations/001_update_migrations.yaml b/resources/migrations/001_update_migrations.yaml index f676217d8c5479d02b62cd87f393c91a753b36e4..74cf2e0e7971a65a2fb400ff27f4dd06a31518ce 100644 --- a/resources/migrations/001_update_migrations.yaml +++ b/resources/migrations/001_update_migrations.yaml @@ -7335,6 +7335,57 @@ databaseChangeLog: - customChange: class: "metabase.db.custom_migrations.MigrateMetricsToV2" + - changeSet: + id: v51.2024-05-20T19:10:34 + author: johnswanson + comment: >- + Modify type of report_card.collection_preview to ${boolean.type} on mysql,mariadb + dbms: mysql,mariadb + changes: + - modifyDataType: + tableName: report_card + columnName: collection_preview + newDataType: ${boolean.type} + rollback: + - modifyDataType: + tableName: report_card + columnName: collection_preview + newDataType: boolean + defaultValueBoolean: true + preConditions: + - onFail: MARK_RAN + - dbms: + type: mysql,mariadb + + - changeSet: + id: v51.2024-05-20T20:37:55 + author: johnswanson + comment: Add NOT NULL constraint to report_card.collection_preview + changes: + - addNotNullConstraint: + columnDataType: ${boolean.type} + tableName: report_card + columnName: collection_preview + defaultNullValue: true + preConditions: + - onFail: MARK_RAN + - dbms: + type: mysql,mariadb + + - changeSet: + id: v51.2024-05-20T20:38:34 + author: johnswanson + comment: Add default value to report_card.collection_preview + changes: + - addDefaultValue: + defaultValueBoolean: true + tableName: report_card + columnName: collection_preview + preConditions: + - onFail: MARK_RAN + - dbms: + type: mysql,mariadb + # >>>>>>>>>> DO NOT ADD NEW MIGRATIONS BELOW THIS LINE! ADD THEM ABOVE <<<<<<<<<< ########################################################################################################################