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 51ae840 commit e0c5ca9
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 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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e0c5ca9

Please sign in to comment.