Skip to content
Snippets Groups Projects
Commit ef74ae67 authored by Jonathan Foucher's avatar Jonathan Foucher
Browse files

cascade deletion of evaluation data.

parent 3fab0c25
No related branches found
No related tags found
Loading
Pipeline #28296 failed
......@@ -19,11 +19,13 @@ public function up()
$table->foreign('evaluation_id')
->references('id')
->on('evaluations')
->onDelete('cascade')
;
$table->unsignedBigInteger('measure_id')->nullable();
$table->foreign('measure_id')
->references('id')
->on('measures')
->onDelete('cascade')
;
$table->date('end_date');
$table->integer('expected_level');
......
......@@ -19,11 +19,13 @@ public function up()
$table->foreign('danger_level_id')
->references('id')
->on('danger_levels')
->onDelete('cascade')
;
$table->unsignedBigInteger('evaluation_id')->nullable();
$table->foreign('evaluation_id')
->references('id')
->on('evaluations')
->onDelete('cascade')
;
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment