]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix installing on Oracle
authorJoas Schilling <coding@schilljs.com>
Mon, 7 Sep 2020 09:55:03 +0000 (11:55 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 7 Sep 2020 09:58:34 +0000 (11:58 +0200)
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>
core/Migrations/Version18000Date20190920085628.php

index 96fcfc7ab81533721750e4cc1905104827bc9838..0e83855d55bcdb4784c28ea890ee5cf51df9b411 100644 (file)
@@ -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',
                        ]);
                }