Penghapusan menu Pengajuan Aktivitas yg sudah tidak terpakai
This commit is contained in:
@@ -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
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('verifikator.pagu_riwayats', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('pagu_id');
|
||||
$table->integer('unit_pembayaran_id');
|
||||
$table->integer('tahun');
|
||||
$table->unsignedTinyInteger('semester');
|
||||
$table->string('jenis', 20);
|
||||
$table->decimal('jumlah', 20, 2);
|
||||
$table->decimal('saldo_sebelum', 20, 2);
|
||||
$table->decimal('saldo_sesudah', 20, 2);
|
||||
$table->string('keterangan')->nullable();
|
||||
$table->string('created_by_nip')->nullable();
|
||||
$table->string('created_by_nama')->nullable();
|
||||
$table->timestamps();
|
||||
$table->index(['pagu_id', 'semester']);
|
||||
$table->index(['unit_pembayaran_id', 'tahun']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('verifikator.pagu_riwayats');
|
||||
}
|
||||
};
|
||||
@@ -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
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::dropIfExists('verifikator.pengajuan_aktivitas');
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::create('verifikator.pengajuan_aktivitas', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nip')->nullable();
|
||||
$table->string('periode')->nullable();
|
||||
$table->date('tanggal')->nullable();
|
||||
$table->time('jam_masuk')->nullable();
|
||||
$table->time('jam_pulang')->nullable();
|
||||
$table->time('total_waktu')->nullable();
|
||||
$table->decimal('poin')->nullable()->default(0);
|
||||
$table->string('keterangan')->nullable();
|
||||
$table->string('status')->nullable();
|
||||
$table->string('file')->nullable();
|
||||
$table->timestamp('created_at')->nullable();
|
||||
$table->timestamp('updated_at')->nullable();
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->integer('id_aktivitas')->nullable();
|
||||
});
|
||||
}
|
||||
};
|
||||
+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
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('verifikator.periodes', function (Blueprint $table) {
|
||||
$table->dropColumn([
|
||||
'tmt_verifikasi_pengajuan_aktivitas',
|
||||
'tst_verifikasi_pengajuan_aktivitas',
|
||||
'status_verifikasi_pengajuan_aktivitas',
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('verifikator.periodes', function (Blueprint $table) {
|
||||
$table->timestamp('tmt_verifikasi_pengajuan_aktivitas')->nullable();
|
||||
$table->timestamp('tst_verifikasi_pengajuan_aktivitas')->nullable();
|
||||
$table->boolean('status_verifikasi_pengajuan_aktivitas')->nullable();
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user