fanatic/database/migrations/10_create_countries_table.php
Marley Rae 555637aab4 x
2022-04-29 11:52:58 -07:00

27 lines
561 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration {
/**
* Run the migrations.
*/
public function up()
{
Schema::create('countries', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name');
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::dropIfExists('countries');
}
};