applicant-site/database/migrations/2024_01_18_082250_create_ad...

26 lines
613 B
PHP

<?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('admissions', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description')->nullable();
$table->string('slug');
$table->integer('position');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('admissions');
}
};