summaryrefslogtreecommitdiffstats
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 18:57:56 +0000
commitf64b9c528e89dd69a5cf6b9f286651f5dd96c87b (patch)
tree6214b1384f617946539ed19a2420b95067aeefc1
parentc3a6f50206f667e33eb4c6d222d190308303f41b (diff)
downloadnextcloud-server-f64b9c528e89dd69a5cf6b9f286651f5dd96c87b.tar.gz
nextcloud-server-f64b9c528e89dd69a5cf6b9f286651f5dd96c87b.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>
-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',
]);
}