Files
ntspi-app/database/migrations/2025_03_11_235609_drop_students_table.php
T
2026-03-20 21:47:02 +05:00

33 lines
732 B
PHP
Executable File

<?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::dropIfExists('students');
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::create('students', function (Blueprint $table) {
$table->id();
$table->string('department');
$table->string('position');
$table->double('fraction');
$table->integer('salary');
$table->string('notice');
$table->timestamps();
});
}
};