Skip to content

Commit

Permalink
Create Mount IDs as BigInt by default
Browse files Browse the repository at this point in the history
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
  • Loading branch information
georgehrke committed Mar 3, 2020
1 parent 7961a0b commit 31bb58f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/Migrations/Version13000Date20170718121200.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'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,
Expand All @@ -108,8 +110,9 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'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');
Expand Down

0 comments on commit 31bb58f

Please sign in to comment.