diff --git a/database/migrations/2022_11_20_222505_add_module_id_to_tasks.php b/database/migrations/2022_11_20_222505_add_module_id_to_tasks.php new file mode 100644 index 0000000..a845a56 --- /dev/null +++ b/database/migrations/2022_11_20_222505_add_module_id_to_tasks.php @@ -0,0 +1,35 @@ +string('module_id')->nullable()->after('host_id')->index(); + $table->foreign('module_id')->references('id')->on('modules')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('tasks', function (Blueprint $table) { + // + }); + } +};