aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-02-18 10:14:12 +0100
committerJoas Schilling <coding@schilljs.com>2021-02-18 10:14:12 +0100
commit1de3b8b0ec2421caefa815ac2c96b5ee4c93ef44 (patch)
treef2b58aaf79e6c54409485e03d341cdec09176ee7 /lib
parentd4b99c81f32453f57cb2c132fa46c6b5219b9e99 (diff)
downloadnextcloud-server-1de3b8b0ec2421caefa815ac2c96b5ee4c93ef44.tar.gz
nextcloud-server-1de3b8b0ec2421caefa815ac2c96b5ee4c93ef44.zip
When it kicks in
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/MigrationService.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php
index 44707911092..8bbd077d85d 100644
--- a/lib/private/DB/MigrationService.php
+++ b/lib/private/DB/MigrationService.php
@@ -557,25 +557,25 @@ class MigrationService {
$sourceTable = $sourceSchema->getTable($table->getName());
} catch (SchemaException $e) {
if (\strlen($table->getName()) - $prefixLength > 27) {
- throw new \InvalidArgumentException('Table name "' . $table->getName() . '" is too long.');
+ throw new \InvalidArgumentException('Table name "' . $table->getName() . '" is too long.');
}
$sourceTable = null;
}
foreach ($table->getColumns() as $thing) {
if ((!$sourceTable instanceof Table || !$sourceTable->hasColumn($thing->getName())) && \strlen($thing->getName()) > 30) {
- throw new \InvalidArgumentException('Column name "' . $table->getName() . '"."' . $thing->getName() . '" is too long.');
+ throw new \InvalidArgumentException('Column name "' . $table->getName() . '"."' . $thing->getName() . '" is too long.');
}
if ($thing->getNotnull() && $thing->getDefault() === ''
&& $sourceTable instanceof Table && !$sourceTable->hasColumn($thing->getName())) {
- throw new \InvalidArgumentException('Column name "' . $table->getName() . '"."' . $thing->getName() . '" is NotNull, but has empty string or null as default.');
+ throw new \InvalidArgumentException('Column name "' . $table->getName() . '"."' . $thing->getName() . '" is NotNull, but has empty string or null as default.');
}
}
foreach ($table->getIndexes() as $thing) {
if ((!$sourceTable instanceof Table || !$sourceTable->hasIndex($thing->getName())) && \strlen($thing->getName()) > 30) {
- throw new \InvalidArgumentException('Index name "' . $table->getName() . '"."' . $thing->getName() . '" is too long.');
+ throw new \InvalidArgumentException('Index name "' . $table->getName() . '"."' . $thing->getName() . '" is too long.');
}
}
@@ -606,17 +606,17 @@ class MigrationService {
}
if (!$isUsingDefaultName && \strlen($indexName) > 30) {
- throw new \InvalidArgumentException('Primary index name on "' . $table->getName() . '" is too long.');
+ throw new \InvalidArgumentException('Primary index name on "' . $table->getName() . '" is too long.');
}
if ($isUsingDefaultName && \strlen($table->getName()) - $prefixLength >= 23) {
- throw new \InvalidArgumentException('Primary index name on "' . $table->getName() . '" is too long.');
+ throw new \InvalidArgumentException('Primary index name on "' . $table->getName() . '" is too long.');
}
}
}
foreach ($sequences as $sequence) {
if (!$sourceSchema->hasSequence($sequence->getName()) && \strlen($sequence->getName()) > 30) {
- throw new \InvalidArgumentException('Sequence name "' . $sequence->getName() . '" is too long.');
+ throw new \InvalidArgumentException('Sequence name "' . $sequence->getName() . '" is too long.');
}
}
}