Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit e811497

Browse files
committed
feat: switch to latest schema version
1 parent 456fbb7 commit e811497

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/database/migrations/2019_11_18_133625_create_users.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function up()
1515
{
1616
// if (!static::$capsule::schema()->hasTable("users")):
1717
// static::$capsule::schema()->create("users", function (Blueprint $table) {
18-
// $table->increments('id');
18+
// $table->increments('id');
1919
// $table->string('username');
2020
// $table->string('fullname');
2121
// $table->string('email')->unique();
@@ -26,8 +26,8 @@ public function up()
2626
// });
2727
// endif;
2828

29-
// you can now build your migrations with schemas [EXPERIMENTAL]
30-
Schema::build(static::$capsule, dirname(__DIR__) . "/Schema/users.json");
29+
// you can now build your migrations with schemas
30+
Schema::build('users');
3131
}
3232

3333
/**
@@ -37,6 +37,6 @@ public function up()
3737
*/
3838
public function down()
3939
{
40-
static::$capsule::schema()->dropIfExists("users");
40+
static::$capsule::schema()->dropIfExists('users');
4141
}
4242
}

0 commit comments

Comments
 (0)