From 2351f8949d9a2ebc8575abfb57146e0d04075e82 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Sun, 6 Oct 2024 22:13:00 +0200 Subject: [PATCH] Split the foreign keys removal. --- migrations/db/20230901112005_fix_positions_cleanup_db.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migrations/db/20230901112005_fix_positions_cleanup_db.php b/migrations/db/20230901112005_fix_positions_cleanup_db.php index 30cbd100..d85d0a60 100644 --- a/migrations/db/20230901112005_fix_positions_cleanup_db.php +++ b/migrations/db/20230901112005_fix_positions_cleanup_db.php @@ -182,7 +182,8 @@ public function change() /* Correct MeasuresMeasures table structure. */ $this->table('measures_measures') ->addColumn('id', 'integer', ['signed' => false, 'after' => MysqlAdapter::FIRST]) - ->dropForeignKey(['child_id', 'father_id']) + ->dropForeignKey('child_id') + ->dropForeignKey('father_id') ->renameColumn('father_id', 'master_measure_id') ->renameColumn('child_id', 'linked_measure_id') ->removeColumn('creator')