2024-01-31 07:05:03 +03:00
|
|
|
<?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(): void
|
|
|
|
{
|
|
|
|
Schema::create('games', function (Blueprint $table) {
|
2024-03-21 19:53:29 +03:00
|
|
|
$table->id("id");
|
2024-01-31 07:05:03 +03:00
|
|
|
$table->text("name");
|
2024-04-21 09:38:06 +03:00
|
|
|
$table->timestamps();
|
2024-01-31 07:05:03 +03:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
|
|
|
public function down(): void
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('games');
|
|
|
|
}
|
|
|
|
};
|