summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-07 11:55:03 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-09-07 19:00:02 +0000
commite80f566aeb5bbebe6f1b9fe6a67cf449931ddbff (patch)
tree841e488f11b55e1879452908d8cfd26fb826df0e /core
parent1ed0a8caced114f5ddaea2eed02e37727cb58a95 (diff)
downloadnextcloud-server-e80f566aeb5bbebe6f1b9fe6a67cf449931ddbff.tar.gz
nextcloud-server-e80f566aeb5bbebe6f1b9fe6a67cf449931ddbff.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')
-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 a5ade011ccd..1d256a90751 100644
--- a/core/Migrations/Version18000Date20190920085628.php
+++ b/core/Migrations/Version18000Date20190920085628.php
@@ -59,7 +59,9 @@ class Version18000Date20190920085628 extends SimpleMigrationStep {
$table->addColumn('displayname', Type::STRING, [
'notnull' => true,
'length' => 255,
- 'default' => '',
+ // Will be overwritten in postSchemaChange, but Oracle can not save
+ // empty strings in notnull columns
+ 'default' => 'name',
]);
}