summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-12-08 01:56:51 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-12-08 01:56:51 +0100
commitad6b48bd20246093c50ef13514fd2733762ceed5 (patch)
treed80366a81a3e260a8bcc2f9ecf301bd36a7363a3
parentd6cb9c6258c52bf3874bab2ceec97b90591032d1 (diff)
Migration: Fixed formatting
-rw-r--r--db/migrations/2019_11_29_000000_create_questions_table.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/db/migrations/2019_11_29_000000_create_questions_table.php b/db/migrations/2019_11_29_000000_create_questions_table.php
index 1d73aaeb..7ea1ff07 100644
--- a/db/migrations/2019_11_29_000000_create_questions_table.php
+++ b/db/migrations/2019_11_29_000000_create_questions_table.php
@@ -70,7 +70,8 @@ class CreateQuestionsTable extends Migration
*/
private function createNewQuestionsTable(): void
{
- $this->schema->create('questions',
+ $this->schema->create(
+ 'questions',
function (Blueprint $table) {
$table->increments('id');
$this->referencesUser($table, false);
@@ -79,7 +80,8 @@ class CreateQuestionsTable extends Migration
->nullable();
$this->references($table, 'users', 'answerer_id')
->nullable();
- });
+ }
+ );
}
/**
@@ -109,7 +111,8 @@ class CreateQuestionsTable extends Migration
*/
private function createPreviousQuestionsTable(): void
{
- $this->schema->create('Questions',
+ $this->schema->create(
+ 'Questions',
function (Blueprint $table) {
$table->increments('QID');
$this->references($table, 'users', 'UID');
@@ -118,7 +121,8 @@ class CreateQuestionsTable extends Migration
->nullable();
$table->text('Answer')
->nullable();
- });
+ }
+ );
}
/**