Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix report_card.collection_preview in v49 #42950

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 50 additions & 51 deletions resources/migrations/001_update_migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5826,6 +5826,56 @@ databaseChangeLog:
SET r.most_recent = (n.row_num = 1);
rollback: # nothing

- changeSet:
id: v49.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: v49.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: v49.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

- changeSet:
id: v50.2024-01-04T13:52:51
author: noahmoss
Expand Down Expand Up @@ -7335,57 +7385,6 @@ 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 <<<<<<<<<<

########################################################################################################################
Expand Down
Loading