39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
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('tbl_promotion_demotions', function (Blueprint $table) {
|
||
|
$table->tinyInteger('promotion_demotion_id')->unsigned()->autoIncrement();
|
||
|
$table->string('title')->nullable();
|
||
|
$table->string('alias')->nullable();
|
||
|
$table->unsignedBigInteger('employee_id')->nullable();
|
||
|
$table->unsignedBigInteger('old_designation_id')->nullable();
|
||
|
$table->unsignedBigInteger('new_designation_id')->nullable();
|
||
|
$table->unsignedBigInteger('type')->nullable();
|
||
|
$table->unsignedBigInteger('status')->nullable();
|
||
|
$table->date('date')->nullable();
|
||
|
$table->mediumText('description')->nullable();
|
||
|
$table->mediumText('remarks')->nullable();
|
||
|
$table->unsignedBigInteger('createdBy')->nullable();
|
||
|
$table->unsignedBigInteger('updatedBy')->nullable();
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('tbl_promotion_demotions');
|
||
|
}
|
||
|
};
|