From a403b6b6141fe89ca2525c4e18bf6867e22a970c Mon Sep 17 00:00:00 2001 From: Finn Date: Sat, 18 Dec 2021 14:03:33 +0100 Subject: [PATCH] reformat code --- .../Version000000Date20210918151800.php | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/lib/Migration/Version000000Date20210918151800.php b/lib/Migration/Version000000Date20210918151800.php index 1516f65..7880c27 100644 --- a/lib/Migration/Version000000Date20210918151800.php +++ b/lib/Migration/Version000000Date20210918151800.php @@ -55,30 +55,30 @@ class Version000000Date20210918151800 extends SimpleMigrationStep { $table->addIndex(['matrix_room'], 'upschooling_mx_room_id_idx'); } - if (!$schema->hasTable('upschooling_users')) { - $table = $schema->createTable('upschooling_users'); - $table->addColumn('id', 'integer', [ - 'autoincrement' => true, - 'notnull' => true, - ]); - $table->addColumn('user_id', 'string', [ - 'notnull' => true, - 'length' => 64, - ]); - $table->addColumn('matrix_user', 'string', [ - 'notnull' => true, - 'length' => 200, - ]); - $table->addColumn('matrix_token', 'string', [ - 'notnull' => true, - 'length' => 200, - ]); + if (!$schema->hasTable('upschooling_users')) { + $table = $schema->createTable('upschooling_users'); + $table->addColumn('id', 'integer', [ + 'autoincrement' => true, + 'notnull' => true, + ]); + $table->addColumn('user_id', 'string', [ + 'notnull' => true, + 'length' => 64, + ]); + $table->addColumn('matrix_user', 'string', [ + 'notnull' => true, + 'length' => 200, + ]); + $table->addColumn('matrix_token', 'string', [ + 'notnull' => true, + 'length' => 200, + ]); - $table->setPrimaryKey(['id']); - $table->addUniqueConstraint(['user_id'], 'upschooling_mx_user_nc_uniq'); - $table->addUniqueConstraint(['matrix_user'], 'upschooling_mx_user_mx_uniq'); - $table->addForeignKeyConstraint('users', ['user_id'], ['uid'], [], 'upschooling_mx_user_nc_fk'); - } + $table->setPrimaryKey(['id']); + $table->addUniqueConstraint(['user_id'], 'upschooling_mx_user_nc_uniq'); + $table->addUniqueConstraint(['matrix_user'], 'upschooling_mx_user_mx_uniq'); + $table->addForeignKeyConstraint('users', ['user_id'], ['uid'], [], 'upschooling_mx_user_nc_fk'); + } return $schema; } }