Your IP : 216.73.216.91


Current Path : /var/www/html/LLCF-APP/database/migrations/
Upload File :
Current File : //var/www/html/LLCF-APP/database/migrations/2025_08_03_190621_create_spear_table.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('spear', function (Blueprint $table) {
            $table->increments('id');
            $table->string('semis_code', 45);
            $table->string('school_name', 45);
            $table->string('hm_name', 45);
            $table->string('hm_contact_num', 45);
            $table->string('hm_whatsapp_num', 45);
            $table->string('emerg_num', 45);
            $table->string('teacher_count', 45);
            $table->string('non_teacher_count', 45);
            $table->string('medium', 45);
            $table->string('stu_count', 45);
            $table->string('class1', 45);
            $table->string('class2', 45);
            $table->string('class3', 45);
            $table->string('class4', 45);
            $table->string('class5', 45);
            $table->timestamp('created_on')->useCurrent();
            $table->timestamp('updated_on')->nullable()->useCurrentOnUpdate();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('spear');
    }
};