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

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-02-22 09:47:02 +01:00 committed by Julius Härtl
parent 7207a777a1
commit 43c8d0c9c2
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 2 additions and 0 deletions

View File

@ -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,