Skip to content

Commit

Permalink
Replaced the foreign keys removal with the direct alter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Oct 8, 2024
1 parent 3408779 commit 0046236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/db/20230901112005_fix_positions_cleanup_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 0046236

Please sign in to comment.