aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-03-03 13:12:58 +0100
committerGeorg Ehrke <developer@georgehrke.com>2020-03-03 14:17:22 +0100
commit79dcd34a071d621a41a84448bbf5c66fd21b9c03 (patch)
tree1b274d2605f7d3570dfeee585be52da830d31a32 /core/Migrations
parent7961a0b446c1f034f775d0c715a1692ca08646de (diff)
downloadnextcloud-server-79dcd34a071d621a41a84448bbf5c66fd21b9c03.tar.gz
nextcloud-server-79dcd34a071d621a41a84448bbf5c66fd21b9c03.zip
Create Mount IDs as BigInt by default
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'core/Migrations')
-rw-r--r--core/Migrations/Version13000Date20170718121200.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php
index e9f376a7e42..8fcce961542 100644
--- a/core/Migrations/Version13000Date20170718121200.php
+++ b/core/Migrations/Version13000Date20170718121200.php
@@ -94,11 +94,13 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
'notnull' => true,
'length' => 4,
]);
- $table->addColumn('storage_id', 'integer', [
+ $table->addColumn('storage_id', Type::BIGINT, [
'notnull' => true,
+ 'length' => 20,
]);
- $table->addColumn('root_id', 'integer', [
+ $table->addColumn('root_id', Type::BIGINT, [
'notnull' => true,
+ 'length' => 20,
]);
$table->addColumn('user_id', 'string', [
'notnull' => true,
@@ -108,8 +110,9 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
'notnull' => true,
'length' => 4000,
]);
- $table->addColumn('mount_id', 'integer', [
+ $table->addColumn('mount_id', Type::BIGINT, [
'notnull' => false,
+ 'length' => 20,
]);
$table->setPrimaryKey(['id']);
$table->addIndex(['user_id'], 'mounts_user_index');