This commit is contained in:
Gogs
2021-06-18 16:32:17 +02:00
parent b5a3a2a547
commit d0df0f6a44
33 changed files with 622 additions and 3 deletions
@@ -0,0 +1,27 @@
<?php namespace GermanAirlinesVa\Schooling\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableCreateExamAnswers extends Migration
{
public function up()
{
Schema::connection('germanairlinesva_schooling')->create('exam_answers', function ($table) {
$table->engine = 'InnoDB';
$table->bigIncrements('id')->unsigned();
$table->bigInteger('exam_question_id')->unsigned();
$table
->foreign('exam_question_id')
->references('id')
->on('exam_questions');
$table->text('text');
$table->boolean('is_correct');
});
}
public function down()
{
Schema::connection('germanairlinesva_schooling')->dropIfExists('exam_answers');
}
}
+2
View File
@@ -9,3 +9,5 @@
- builder_table_create_member_ranks.php
- 'Created table exam_questions'
- builder_table_create_exam_questions.php
- 'Created table exam_answers'
- builder_table_create_exam_answers.php