aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-03-02 16:04:44 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-03-02 21:09:33 +0100
commitbc91eb7c642e61d651dd690e578c08fcfb75c5ab (patch)
tree4bfda15675f2164c16aeb00f553e0652fcf3901a
parent2afa1c57393790b33bc6593f9215482d8a4dd9f9 (diff)
downloadnextcloud-server-bc91eb7c642e61d651dd690e578c08fcfb75c5ab.tar.gz
nextcloud-server-bc91eb7c642e61d651dd690e578c08fcfb75c5ab.zip
Filter tables with other table prefix
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--lib/private/DB/Migrator.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php
index dcf0db89f72..609ed5d6f70 100644
--- a/lib/private/DB/Migrator.php
+++ b/lib/private/DB/Migrator.php
@@ -181,9 +181,9 @@ class Migrator {
/** @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();
}
@@ -210,9 +210,9 @@ class Migrator {
/** @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();