From 79dcd34a071d621a41a84448bbf5c66fd21b9c03 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 3 Mar 2020 13:12:58 +0100 Subject: Create Mount IDs as BigInt by default Signed-off-by: Georg Ehrke --- core/Migrations/Version13000Date20170718121200.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'core/Migrations') 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'); -- cgit v1.2.3