Teren-app/database/migrations/2024_10_26_175751_create_segments_table.php
Simon Pocrnjič 90a5858320 first commit
2024-10-28 21:08:16 +01:00

31 lines
675 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(): void
{
Schema::create('segments', function (Blueprint $table) {
$table->id();
$table->string('name', 50);
$table->string('description', 255);
$table->boolean('active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('segments');
}
};