Files
database-pertani-web/database/migrations/2026_04_10_131504_update_jsonb_path.php
T

43 lines
1.0 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::table('map_lahan', function (Blueprint $table) {
$table->jsonb('path')->nullable()->change();
});
Schema::table('master_provinsi', function (Blueprint $table) {
$table->jsonb('path')->nullable()->change();
});
Schema::table('master_kabupaten_kota', function (Blueprint $table) {
$table->jsonb('path')->nullable()->change();
});
Schema::table('master_kecamatan', function (Blueprint $table) {
$table->jsonb('path')->nullable()->change();
});
Schema::table('master_desa_kelurahan', function (Blueprint $table) {
$table->jsonb('path')->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
}
};