Merge branch 'staging' into feature/senior-officer

This commit is contained in:
majid76
2024-11-28 11:25:20 +07:00
39 changed files with 3810 additions and 2292 deletions

View File

@@ -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('penawaran_email_tender_log', function (Blueprint $table) {
$table->text('error_message')->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('penawaran_email_tender_log', function (Blueprint $table) {
$table->text('error_message')->change();
});
}
};

View File

@@ -0,0 +1,47 @@
<?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('persetujuan_penawaran', function (Blueprint $table) {
$table->string('nomor_proposal_penawaran')->nullable()->change();
$table->date('tanggal_proposal_penawaran')->nullable()->change();
$table->string('biaya_final')->nullable()->change();
$table->renameColumn('sls_resume', 'sla_resume');
$table->datetime('sla_resume')->nullable()->change();
$table->datetime('sla_final')->nullable()->change();
$table->string('catatan')->nullable()->change();
$table->string('attachment')->nullable()->change();
$table->foreignId('region_id')->nullable()->change();
$table->boolean('status')->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down()
: void
{
Schema::table('persetujuan_penawaran', function (Blueprint $table) {
$table->string('nomor_proposal_penawaran')->nullable(false)->change();
$table->date('tanggal_proposal_penawaran')->nullable(false)->change();
$table->string('biaya_final')->nullable(false)->change();
$table->renameColumn('sla_resume', 'sls_resume');
$table->datetime('sls_resume')->nullable(false)->change();
$table->datetime('sla_final')->nullable(false)->change();
$table->string('catatan')->nullable(false)->change();
$table->string('attachment')->nullable(false)->change();
$table->foreignId('region_id')->nullable(false)->change();
$table->boolean('status')->nullable(false)->change();
});
}
};

View File

@@ -0,0 +1,30 @@
<?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('persetujuan_penawaran', function (Blueprint $table) {
$table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('persetujuan_penawaran', function (Blueprint $table) {
$table->dropColumn('created_by');
$table->dropColumn('updated_by');
});
}
};

View File

@@ -0,0 +1,44 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdatePersetujuanPenawaranTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('persetujuan_penawaran', function (Blueprint $table) {
// Drop the existing attachment column
$table->dropForeign(['region_id']);
$table->dropColumn('attachment');
// Add new columns for file attachments
$table->string('file_persetujuan_penawaran')->nullable();
$table->string('surat_representasi')->nullable();
$table->string('bukti_bayar')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('persetujuan_penawaran', function (Blueprint $table) {
// Reverse the changes
$table->string('attachment')->nullable();
$table->dropColumn('file_persetujuan_penawaran');
$table->dropColumn('surat_representasi');
$table->dropColumn('bukti_bayar');
});
}
}