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) { + // + }); + } +};