Skip to content

Commit

Permalink
update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
railken committed Mar 29, 2024
1 parent e0c5ca9 commit 6a8418e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions database/migrations/0000_00_00_000001_create_foos_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function up()
$table->id();
$table->string('name');
$table->text('description')->nullable();
$table->integer('bar_id')->unsigned()->nullable();
$table->foreign('bar_id')->references('id')->on(Config::get('amethyst.foo.data.bar.table'));
$table->foreignId('bar_id')->on(Config::get('amethyst.foo.data.bar.table'));
$table->timestamps();
$table->softDeletes();
});
Expand Down

0 comments on commit 6a8418e

Please sign in to comment.