Files
TLA/database/migrations/2026_08_08_224606_create_tla_table.php
T

33 lines
761 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('tla', function (Blueprint $table) {
$table->id();
$table->string('acronym');
$table->string('hint')->nullable();
$table->enum('language', ['hu', 'en']);
$table->date('used')->nullable();
$table->longText('context')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tla');
}
};