Skip to content

Commit

Permalink
Fixed the migration command order.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Oct 6, 2024
1 parent 67eeda8 commit 54f369e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/db/20230901112005_fix_positions_cleanup_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 54f369e

Please sign in to comment.