From e0c5ca9b65cbc450c3bbc72228f9fb5aab9d48b3 Mon Sep 17 00:00:00 2001 From: Railken Date: Fri, 29 Mar 2024 16:33:41 +0100 Subject: [PATCH] update migration --- database/migrations/0000_00_00_000000_create_bars_table.php | 2 +- database/migrations/0000_00_00_000001_create_foos_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/0000_00_00_000000_create_bars_table.php b/database/migrations/0000_00_00_000000_create_bars_table.php index 9f35500..0a89848 100644 --- a/database/migrations/0000_00_00_000000_create_bars_table.php +++ b/database/migrations/0000_00_00_000000_create_bars_table.php @@ -13,7 +13,7 @@ class CreateBarsTable extends Migration public function up() { Schema::create(Config::get('amethyst.foo.data.bar.table'), function (Blueprint $table) { - $table->increments('id'); + $table->id(); $table->string('name')->index(); $table->text('description')->nullable(); $table->timestamps(); diff --git a/database/migrations/0000_00_00_000001_create_foos_table.php b/database/migrations/0000_00_00_000001_create_foos_table.php index 7b1d947..584cf4a 100644 --- a/database/migrations/0000_00_00_000001_create_foos_table.php +++ b/database/migrations/0000_00_00_000001_create_foos_table.php @@ -13,7 +13,7 @@ class CreateFoosTable extends Migration public function up() { Schema::create(Config::get('amethyst.foo.data.foo.table'), function (Blueprint $table) { - $table->increments('id'); + $table->id(); $table->string('name'); $table->text('description')->nullable(); $table->integer('bar_id')->unsigned()->nullable();