Add default value, because null does not trigger unique-key
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7207a777a1
commit
43c8d0c9c2
|
@ -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…
Reference in New Issue