Skip to content

Commit

Permalink
Merge pull request #418 from HarderWork/patch-1
Browse files Browse the repository at this point in the history
Update 20231112807150_MigrationAddIndex.php
  • Loading branch information
dereuromark authored May 6, 2024
2 parents 95337da + f95369d commit 1f74a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/Migrations/20231112807150_MigrationAddIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class MigrationAddIndex extends AbstractMigration {
*/
public function change() {
// Shim: make sure this is void when a migrating with `202311128071500` instead of `20231112807150` has been run already.
$result = $this->query('SELECT * FROM `queue_phinxlog` WHERE version = "202311128071500" LIMIT 1')->fetch();
$result = $this->query('SELECT * FROM queue_phinxlog WHERE version = \'202311128071500\' LIMIT 1')->fetch();
if ($result) {
$this->execute('DELETE FROM `queue_phinxlog` WHERE version = "202311128071500" LIMIT 1');
$this->execute('DELETE FROM queue_phinxlog WHERE version = \'202311128071500\' LIMIT 1');

return;
}
Expand Down

0 comments on commit 1f74a03

Please sign in to comment.