Skip to content

Commit

Permalink
Update 0000_00_00_000000_create_data_views_table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
railken committed Mar 29, 2024
1 parent ea550e8 commit cb7dc83
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function up()
$table->string('permission')->nullable();
$table->longtext('config')->nullable();
$table->boolean('enabled')->default(1);
$table->bigInteger('parent_id')->unsigned()->nullable();
$table->foreign('parent_id')->references('id')->on(Config::get('amethyst.data-view.data.data-view.table'))->onDelete('cascade');
$table->foreignId('parent_id')->nullable()->on(Config::get('amethyst.data-view.data.data-view.table'))->onDelete('cascade');
$table->timestamps();
});
}
Expand Down

0 comments on commit cb7dc83

Please sign in to comment.