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 0440db5 commit 79d74bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/Observers/DataSchemaObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit 79d74bf

Please sign in to comment.