adding draft subtask logic to backend

This commit is contained in:
StudioTem committed 2025-12-03 09:57:12 +01:00
1 parent 570e29e5c4
commit 21ad81cee7
5 files changed
+136 -11

No files matched your search

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('sub_tasks', function (Blueprint $table) {
$table->boolean('is_draft')->default(false)->after('is_finished');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('sub_tasks', function (Blueprint $table) {
$table->dropColumn('is_draft');
});
}
};