Add default value, because null does not trigger unique-key

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/11871/head
Joas Schilling 7 years ago committed by Julius Härtl
parent 7207a777a1
commit 43c8d0c9c2
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 2
      core/Migrations/Version16000Date20190207141427.php

@ -83,10 +83,12 @@ class Version16000Date20190207141427 extends SimpleMigrationStep {
]);
$table->addColumn('collection_id', Type::BIGINT, [
'notnull' => false,
'default' => 0,
]);
$table->addColumn('resource_id', Type::STRING, [
'notnull' => false,
'length' => 64,
'default' => '',
]);
$table->addColumn('access', Type::SMALLINT, [
'notnull' => true,

Loading…
Cancel
Save