Add detail_sertifikat column to pemilik_jaminan table
This migration introduces a new nullable string column named detail_sertifikat to the pemilik_jaminan table. It allows adding certificate details for each pemilik jaminan. The down method ensures this column is dropped if the migration is rolled back.
This commit is contained in:
@@ -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('pemilik_jaminan', function (Blueprint $table) {
|
||||||
|
$table->string('detail_sertifikat')->nullable()->after('nama_pemilik');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('pemilik_jaminan', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('detail_sertifikat');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user