From ce454ffd0e5a1b7225a29d587572ba8c795d93f8 Mon Sep 17 00:00:00 2001 From: Michal Feher Date: Tue, 7 Feb 2023 12:42:22 +0100 Subject: [PATCH] no message --- ...7_083923_add_subtask_id_to_attachments.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 be/database/migrations/2023_02_07_083923_add_subtask_id_to_attachments.php diff --git a/be/database/migrations/2023_02_07_083923_add_subtask_id_to_attachments.php b/be/database/migrations/2023_02_07_083923_add_subtask_id_to_attachments.php new file mode 100644 index 0000000..c3e7b2f --- /dev/null +++ b/be/database/migrations/2023_02_07_083923_add_subtask_id_to_attachments.php @@ -0,0 +1,33 @@ +foreignIdFor( \App\Models\SubTask::class)->nullable()->after('master_task_id'); + $table->bigInteger( 'master_task_id')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('master_tasks', function (Blueprint $table) { + // + }); + } +};