Skip to content

Commit 51463eb

Browse files
authored
Merge pull request #9 from pjhl/master
Fix postgres migration error
2 parents 42d0543 + ee4dbb7 commit 51463eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

migrations/m160804_101551_drop_dateSheduled_and_dateExecuted_columns.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ class m160804_101551_drop_dateSheduled_and_dateExecuted_columns extends Migratio
66
{
77
public function up()
88
{
9+
$this->dropIndex('idx-CronSchedule-dateScheduled-status', '{{%CronSchedule}}');
10+
911
$this->dropColumn('{{%CronSchedule}}', 'dateScheduled');
1012
$this->dropColumn('{{%CronSchedule}}', 'dateExecuted');
1113

12-
$this->dropIndex('idx-CronSchedule-dateScheduled-status', '{{%CronSchedule}}');
1314
$this->createIndex('idx-CronSchedule-status', '{{%CronSchedule}}', 'status');
1415
}
1516

0 commit comments

Comments
 (0)