Skip to content

Commit

Permalink
fix: Fixed an issue that would cause new installations to not functio…
Browse files Browse the repository at this point in the history
…n do to an error in the `install` migration ([#302](#302))
  • Loading branch information
khalwat committed May 30, 2024
1 parent dc4b10d commit bc0c307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/migrations/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function createTables(): bool
$tablesCreated = false;

$tableSchema = $this->getDb()->getSchema()->getTableSchema('{{%retour_redirects}}');
if ($tableSchema) {
if ($tableSchema === null) {
$tablesCreated = true;
$this->createTable(
'{{%retour_redirects}}',
Expand All @@ -106,7 +106,7 @@ protected function createTables(): bool
}

$tableSchema = $this->getDb()->schema->getTableSchema('{{%retour_static_redirects}}');
if ($tableSchema) {
if ($tableSchema === null) {
$tablesCreated = true;
$this->createTable(
'{{%retour_static_redirects}}',
Expand All @@ -133,7 +133,7 @@ protected function createTables(): bool
}

$tableSchema = $this->getDb()->schema->getTableSchema('{{%retour_stats}}');
if ($tableSchema) {
if ($tableSchema === null) {
$tablesCreated = true;
$this->createTable(
'{{%retour_stats}}',
Expand Down

0 comments on commit bc0c307

Please sign in to comment.