fix draft only created for user who creates them

This commit is contained in:
StudioTem committed 2025-12-15 14:27:32 +01:00
1 parent 584f708076
commit 604dc4f988
4 files changed
+178 -15

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->json('draft_data')->nullable()->after('is_draft');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('sub_tasks', function (Blueprint $table) {
$table->dropColumn('draft_data');
});
}
};