Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-22 11:47:02 +0300
committerJulius Härtl <jus@bitgrid.net>2019-03-01 22:56:58 +0300
commit43c8d0c9c28a359e0439e694fa7d1eaf066fc8b3 (patch)
tree31f71a980f8ed5227006e19de16c29504042a322 /core/Migrations
parent7207a777a1e071f2ed144c5a26927b8006e198fc (diff)
Add default value, because null does not trigger unique-key
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Migrations')
-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,