diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-07 11:55:03 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-09-07 18:57:56 +0000 |
commit | f64b9c528e89dd69a5cf6b9f286651f5dd96c87b (patch) | |
tree | 6214b1384f617946539ed19a2420b95067aeefc1 | |
parent | c3a6f50206f667e33eb4c6d222d190308303f41b (diff) | |
download | nextcloud-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.php | 4 |
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', ]); } |