summaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-07 11:55:03 +0200
committerJoas Schilling <coding@schilljs.com>2020-09-07 11:58:34 +0200
commit5e3c4f96090e926916b06a52580bbba2a60a4555 (patch)
tree84d566b58216c88a8e06709151c43f5a2eb2c98a /core/Migrations
parent16e1d1cb12229270d61d89dfda93399d056d456c (diff)
downloadnextcloud-server-5e3c4f96090e926916b06a52580bbba2a60a4555.tar.gz
nextcloud-server-5e3c4f96090e926916b06a52580bbba2a60a4555.zip
Fix installing on Oracle
Empty strings are stored as null in Oracle, so a column with NotNull can not have an empty string as default Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Migrations')
-rw-r--r--core/Migrations/Version18000Date20190920085628.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Migrations/Version18000Date20190920085628.php b/core/Migrations/Version18000Date20190920085628.php
index 96fcfc7ab81..0e83855d55b 100644
--- a/core/Migrations/Version18000Date20190920085628.php
+++ b/core/Migrations/Version18000Date20190920085628.php
@@ -60,7 +60,9 @@ class Version18000Date20190920085628 extends SimpleMigrationStep {
$table->addColumn('displayname', Types::STRING, [
'notnull' => true,
'length' => 255,
- 'default' => '',
+ // Will be overwritten in postSchemaChange, but Oracle can not save
+ // empty strings in notnull columns
+ 'default' => 'name',
]);
}