diff --git a/migrations/db/20230901112005_fix_positions_cleanup_db.php b/migrations/db/20230901112005_fix_positions_cleanup_db.php index b4b74954..87cb557e 100644 --- a/migrations/db/20230901112005_fix_positions_cleanup_db.php +++ b/migrations/db/20230901112005_fix_positions_cleanup_db.php @@ -180,8 +180,8 @@ public function change() ); } /* Correct MeasuresMeasures table structure. */ - $this->execute('ALTER TABLE `measures_measures` DROP FOREIGN KEY IF EXISTS `measures_measures_ibfk_1`'); - $this->execute('ALTER TABLE `measures_measures` DROP FOREIGN KEY IF EXISTS `measures_measures_ibfk_2`'); + $this->execute('ALTER TABLE `measures_measures` DROP FOREIGN KEY `measures_measures_ibfk_1`'); + $this->execute('ALTER TABLE `measures_measures` DROP FOREIGN KEY `measures_measures_ibfk_2`'); $this->table('measures_measures') ->addColumn('id', 'integer', ['signed' => false, 'after' => MysqlAdapter::FIRST]) ->renameColumn('father_id', 'master_measure_id')