revised approve system and some minor fixes
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?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::table('form_up_country', function (Blueprint $table) {
|
||||
$table->integer('approved_allowance')->after('total')->nullable();
|
||||
$table->integer('approved_transport_dalkot')->after('approved_allowance')->nullable();
|
||||
$table->integer('approved_transport_ankot')->after('approved_transport_dalkot')->nullable();
|
||||
$table->integer('approved_hotel')->after('approved_transport_ankot')->nullable();
|
||||
$table->integer('approved_total')->after('approved_hotel')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('form_up_country', function (Blueprint $table) {
|
||||
$table->dropColumn('approved_allowance');
|
||||
$table->dropColumn('approved_transport_dalkot');
|
||||
$table->dropColumn('approved_transport_ankot');
|
||||
$table->dropColumn('approved_hotel');
|
||||
$table->dropColumn('approved_total');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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::table('form_vehicle_running_cost', function (Blueprint $table) {
|
||||
$table->integer('approved_total')->after('total')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('form_vehicle_running_cost', function (Blueprint $table) {
|
||||
$table->dropColumn('approved_total');
|
||||
});
|
||||
}
|
||||
};
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
<?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::table('form_entertainment_presentation', function (Blueprint $table) {
|
||||
$table->integer('approved_total')->after('total')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('form_entertainment_presentation', function (Blueprint $table) {
|
||||
$table->dropColumn('approved_total');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,34 @@
|
||||
<?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::table('form_meeting_seminar', function (Blueprint $table) {
|
||||
$table->integer('approved_allowance')->after('total')->nullable();
|
||||
$table->integer('approved_transport_ankot')->after('approved_allowance')->nullable();
|
||||
$table->integer('approved_hotel')->after('approved_transport_ankot')->nullable();
|
||||
$table->integer('approved_total')->after('approved_hotel')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('form_meeting_seminar', function (Blueprint $table) {
|
||||
$table->dropColumn('approved_allowance');
|
||||
$table->dropColumn('approved_transport_ankot');
|
||||
$table->dropColumn('approved_hotel');
|
||||
$table->dropColumn('approved_total');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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::table('form_others', function (Blueprint $table) {
|
||||
$table->integer('approved_total')->after('total')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('form_others', function (Blueprint $table) {
|
||||
$table->dropColumn('approved_total');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user