Kész migration és a hozzáadás folytatva

This commit is contained in:
Sándor Máté Magony
2025-04-04 09:00:22 +02:00
parent 31f02f023f
commit 66d2742f91
3 changed files with 82 additions and 13 deletions

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('wc_adatok', function (Blueprint $table) {
$table->id();
$table->string('nev', 250);
$table->string('kerulet', 250);
$table->string('kozeli_megall', 250);
$table->boolean('akadalym');
$table->integer('ar');
$table->string('nyitva', 250);
$table->double('hossz_koord')->nullable();
$table->double('szel_koord')->nullable();
$table->string('utvonal', 1000);
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('wc_adatok');
}
};