Skip to content

Commit be6c047

Browse files
committed
Refactor to solution-forest/filament-tree: fix migrations
1 parent 6f3ffe7 commit be6c047

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

database/migrations/create_filament_flexible_content_block_menu_items_table.php.stub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Illuminate\Database\Migrations\Migration;
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
6+
use SolutionForest\FilamentTree\Support\Utils;
67
use Statikbe\FilamentFlexibleContentBlockPages\Facades\FilamentFlexibleContentBlockPages;
78

89
return new class extends Migration
@@ -31,7 +32,8 @@ return new class extends Migration
3132
$table->boolean('is_visible')->default(true);
3233
$table->boolean('use_model_title')->default(false);
3334

34-
$table->treeColumns();
35+
$table->integer(Utils::parentColumnName())->default(Utils::defaultParentId())->index();
36+
$table->integer(Utils::orderColumnName())->default(0);
3537

3638
$table->timestamps();
3739

0 commit comments

Comments
 (0)