From f64b9c528e89dd69a5cf6b9f286651f5dd96c87b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 7 Sep 2020 11:55:03 +0200 Subject: [PATCH] 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 --- core/Migrations/Version18000Date20190920085628.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/Migrations/Version18000Date20190920085628.php b/core/Migrations/Version18000Date20190920085628.php index a5ade011cc..1d256a9075 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', ]); }