Skip to content

Commit

Permalink
Remove tables without oc_ prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Mar 2, 2021
1 parent 2afa1c5 commit ad001f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/private/DB/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ public function createSchema() {
/** @var string|AbstractAsset $asset */
$filterExpression = $this->getFilterExpression();
if ($asset instanceof AbstractAsset) {
return preg_match($filterExpression, $asset->getName()) !== false;
return preg_match($filterExpression, $asset->getName()) === 1;
}
return preg_match($filterExpression, $asset) !== false;
return preg_match($filterExpression, $asset) === 1;
});
return $this->connection->getSchemaManager()->createSchema();
}
Expand All @@ -210,9 +210,9 @@ protected function getDiff(Schema $targetSchema, \Doctrine\DBAL\Connection $conn
/** @var string|AbstractAsset $asset */
$filterExpression = $this->getFilterExpression();
if ($asset instanceof AbstractAsset) {
return preg_match($filterExpression, $asset->getName()) !== false;
return preg_match($filterExpression, $asset->getName()) === 1;
}
return preg_match($filterExpression, $asset) !== false;
return preg_match($filterExpression, $asset) === 1;
});
$sourceSchema = $connection->getSchemaManager()->createSchema();

Expand Down

0 comments on commit ad001f0

Please sign in to comment.