aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version16000Date20190207141427.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-22 09:47:02 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:58 +0100
commit43c8d0c9c28a359e0439e694fa7d1eaf066fc8b3 (patch)
tree31f71a980f8ed5227006e19de16c29504042a322 /core/Migrations/Version16000Date20190207141427.php
parent7207a777a1e071f2ed144c5a26927b8006e198fc (diff)
downloadnextcloud-server-43c8d0c9c28a359e0439e694fa7d1eaf066fc8b3.tar.gz
nextcloud-server-43c8d0c9c28a359e0439e694fa7d1eaf066fc8b3.zip
Add default value, because null does not trigger unique-key
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Migrations/Version16000Date20190207141427.php')
-rw-r--r--core/Migrations/Version16000Date20190207141427.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Migrations/Version16000Date20190207141427.php b/core/Migrations/Version16000Date20190207141427.php
index 44e09a8463b..bc1c7e24a8c 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,