From 79d74bf30a430934ead8fd6c3e31a408d8f6ab50 Mon Sep 17 00:00:00 2001 From: Railken Date: Fri, 29 Mar 2024 16:32:23 +0100 Subject: [PATCH] update migration --- .../migrations/0000_00_00_000000_create_data_schemas_table.php | 2 +- src/Observers/DataSchemaObserver.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/0000_00_00_000000_create_data_schemas_table.php b/database/migrations/0000_00_00_000000_create_data_schemas_table.php index 93b688e..a9cb8c3 100644 --- a/database/migrations/0000_00_00_000000_create_data_schemas_table.php +++ b/database/migrations/0000_00_00_000000_create_data_schemas_table.php @@ -13,7 +13,7 @@ class CreateDataSchemasTable extends Migration public function up() { Schema::create(Config::get('amethyst.data-schema.data.data-schema.table'), function (Blueprint $table) { - $table->increments('id'); + $table->id(); $table->string('name')->unique(); $table->text('description')->nullable(); $table->timestamps(); diff --git a/src/Observers/DataSchemaObserver.php b/src/Observers/DataSchemaObserver.php index b792456..c5e11e4 100644 --- a/src/Observers/DataSchemaObserver.php +++ b/src/Observers/DataSchemaObserver.php @@ -18,7 +18,7 @@ class DataSchemaObserver public function created(DataSchema $dataSchema) { Schema::create(Helper::toTable($dataSchema->name), function (Blueprint $table) use ($dataSchema) { - $table->increments('id'); + $table->id(); $table->timestamps(); });