From 43c8d0c9c28a359e0439e694fa7d1eaf066fc8b3 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 22 Feb 2019 09:47:02 +0100 Subject: [PATCH] Add default value, because null does not trigger unique-key Signed-off-by: Joas Schilling --- core/Migrations/Version16000Date20190207141427.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Migrations/Version16000Date20190207141427.php b/core/Migrations/Version16000Date20190207141427.php index 44e09a8463..bc1c7e24a8 100644 --- a/core/Migrations/Version16000Date20190207141427.php +++ b/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,