Skip to content

Commit 7670bad

Browse files
committed
Fix dropping table track_e_exercices
1 parent b79429d commit 7670bad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/Migrations/Schema/V110/Version20150803171220.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ public function up(Schema $schema)
2121
$this->addSql('UPDATE user SET username_canonical = username');
2222
$this->addSql('ALTER TABLE user ADD confirmation_token VARCHAR(255) NULL');
2323
$this->addSql('ALTER TABLE user ADD password_requested_at DATETIME DEFAULT NULL');
24-
25-
$schema->renameTable('track_e_exercices', 'track_e_exercises');
24+
$this->addSql('RENAME TABLE track_e_exercices TO track_e_exercises');
25+
// This drops the old table
26+
// $schema->renameTable('track_e_exercices', 'track_e_exercises');
2627
}
2728

2829
/**

0 commit comments

Comments
 (0)