Files
vkv/database/migrations/2025_11_12_195548_create_bands_table.php
Zdeněk Burda 41e3ce6f25 Initial commit
2026-01-09 21:26:40 +01:00

33 lines
778 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('bands', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name');
$table->integer('order')->default(0);
$table->bigInteger('edi_band_begin');
$table->bigInteger('edi_band_end');
$table->boolean('has_power_category')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('bands');
}
};