diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-11 14:33:29 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-03-31 10:21:10 +0200 |
commit | c98cab137cf6a4c2aee6af4f125537083e0b7a6f (patch) | |
tree | b9c3be97a549bba3ac1875d04a74d58ea6fec259 /lib/private/DB | |
parent | b67ac4ec9bc0b8ab82765f11267e7c9cbd6988a6 (diff) | |
download | nextcloud-server-c98cab137cf6a4c2aee6af4f125537083e0b7a6f.tar.gz nextcloud-server-c98cab137cf6a4c2aee6af4f125537083e0b7a6f.zip |
Fix exception messages spacing
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/DB')
-rw-r--r-- | lib/private/DB/MigrationService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php index 42f3b7de6a8..30fef6d7ef7 100644 --- a/lib/private/DB/MigrationService.php +++ b/lib/private/DB/MigrationService.php @@ -571,7 +571,7 @@ class MigrationService { 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 "' . $table->getName() . '"."' . $thing->getName() . '" is NotNull, but has empty string or null as default.'); } } @@ -583,7 +583,7 @@ class MigrationService { foreach ($table->getForeignKeys() as $thing) { if ((!$sourceTable instanceof Table || !$sourceTable->hasForeignKey($thing->getName())) && \strlen($thing->getName()) > 30) { - throw new \InvalidArgumentException('Foreign key name "' . $table->getName() . '"."' . $thing->getName() . '" is too long.'); + throw new \InvalidArgumentException('Foreign key name "' . $table->getName() . '"."' . $thing->getName() . '" is too long.'); } } |