From 5ba4ad389a75fa9a00bbf4f1a8f6028aaabb47c2 Mon Sep 17 00:00:00 2001 From: Ryan Senior <ryan@metabase.com> Date: Thu, 31 Aug 2017 16:16:50 -0500 Subject: [PATCH] Remove the RAW_TABLE FK reference to METABASE_DATABASE Fixes #5866 --- resources/migrations/000_migrations.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/migrations/000_migrations.yaml b/resources/migrations/000_migrations.yaml index caa0181f643..0bbf7873fab 100644 --- a/resources/migrations/000_migrations.yaml +++ b/resources/migrations/000_migrations.yaml @@ -3820,3 +3820,12 @@ databaseChangeLog: defaultValue: false constraints: nullable: false + - changeSet: + id: 64 + author: senior + comment: 'Added 0.26.0' + changes: + - dropForeignKeyConstraint: + baseTableName: raw_table + constraintName: fk_rawtable_ref_database + remarks: 'This FK prevents deleting databases even though RAW_TABLE is no longer used. The table is still around to support downgrades, but the FK reference is no longer needed.' -- GitLab