Skip to content

Commit

Permalink
anonymous migration
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Apr 18, 2023
1 parent ca94b67 commit b550fb4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions database/migrations/create_places_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ use Illuminate\Database\Query\Expression;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatePlacesTable extends Migration
{
return new class() extends Migration {
/**
* Run the migrations.
*/
public function up()
public function up(): void
{
Schema::create('places', function (Blueprint $table) {
$table->id();
Expand All @@ -33,8 +32,8 @@ class CreatePlacesTable extends Migration
/**
* Reverse the migrations.
*/
public function down()
public function down(): void
{
Schema::drop('places');
}
}
};

0 comments on commit b550fb4

Please sign in to comment.