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>
pull/22643/head
Joas Schilling 5 years ago
parent 16e1d1cb12
commit 5e3c4f9609
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 4
      core/Migrations/Version18000Date20190920085628.php

@ -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',
]);
}

Loading…
Cancel
Save