diff --git a/migrations/db/20230901112005_fix_positions_cleanup_db.php b/migrations/db/20230901112005_fix_positions_cleanup_db.php index 18a491db..3ccbac1a 100644 --- a/migrations/db/20230901112005_fix_positions_cleanup_db.php +++ b/migrations/db/20230901112005_fix_positions_cleanup_db.php @@ -182,9 +182,9 @@ public function change() /* Correct MeasuresMeasures table structure. */ $this->table('measures_measures') ->addColumn('id', 'integer', ['signed' => false, 'after' => MysqlAdapter::FIRST]) + ->dropForeignKey(['father_id', 'child_id']) ->renameColumn('father_id', 'master_measure_id') ->renameColumn('child_id', 'linked_measure_id') - ->dropForeignKey(['master_measure_id', 'linked_measure_id']) ->removeColumn('creator') ->removeColumn('created_at') ->removeColumn('updater')