Skip to content
Snippets Groups Projects
Commit 154dffb3 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

add new migration which will drop our requirement to have an Organization for...

add new migration which will drop our requirement to have an Organization for any of our models.  NOTE: we are specifically just allowing the column to be nullable and dropping FK constraints for now.
parent 67076c6c
No related branches found
No related tags found
No related merge requests found
{
"databaseChangeLog": [
{
"changeSet": {
"id": "6",
"author": "agilliland",
"changes": [
{
"dropNotNullConstraint": {
"tableName": "metabase_database",
"columnDataType": "int",
"columnName": "organization_id"
}
},
{
"dropForeignKeyConstraint": {
"baseTableName": "metabase_database",
"constraintName": "fk_database_ref_organization_id"
}
},
{
"dropNotNullConstraint": {
"tableName": "report_card",
"columnDataType": "int",
"columnName": "organization_id"
}
},
{
"dropForeignKeyConstraint": {
"baseTableName": "report_card",
"constraintName": "fk_card_ref_organization_id"
}
},
{
"dropNotNullConstraint": {
"tableName": "report_dashboard",
"columnDataType": "int",
"columnName": "organization_id"
}
},
{
"dropForeignKeyConstraint": {
"baseTableName": "report_dashboard",
"constraintName": "fk_dashboard_ref_organization_id"
}
},
{
"dropNotNullConstraint": {
"tableName": "report_emailreport",
"columnDataType": "int",
"columnName": "organization_id"
}
},
{
"dropForeignKeyConstraint": {
"baseTableName": "report_emailreport",
"constraintName": "fk_emailreport_ref_organization_id"
}
},
{
"dropNotNullConstraint": {
"tableName": "report_emailreportexecutions",
"columnDataType": "int",
"columnName": "organization_id"
}
},
{
"dropForeignKeyConstraint": {
"baseTableName": "report_emailreportexecutions",
"constraintName": "fk_emailreportexecutions_ref_organization_id"
}
},
{
"dropNotNullConstraint": {
"tableName": "annotation_annotation",
"columnDataType": "int",
"columnName": "organization_id"
}
},
{
"dropForeignKeyConstraint": {
"baseTableName": "annotation_annotation",
"constraintName": "fk_annotation_ref_organization_id"
}
}
]
}
}
]
}
......@@ -3,6 +3,7 @@
{"include": {"file": "migrations/001_initial_schema.json"}},
{"include": {"file": "migrations/002_add_session_table.json"}},
{"include": {"file": "migrations/004_add_setting_table.json"}},
{"include": {"file": "migrations/005_add_org_report_tz_column.json"}}
{"include": {"file": "migrations/005_add_org_report_tz_column.json"}},
{"include": {"file": "migrations/006_disconnect_orgs.json"}}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment