hama dan penyakit lahan

This commit is contained in:
2026-07-22 13:56:55 +07:00
parent 12f8d0bbda
commit 696c7dede8
10 changed files with 323 additions and 37 deletions
@@ -0,0 +1,37 @@
<?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('jenis_hama')->nullable();
$table->jsonb('jenis_penyakit')->nullable();
});
Schema::table('map_tanaman', function (Blueprint $table) {
$table->jsonb('jenis_hama')->nullable();
$table->jsonb('jenis_penyakit')->nullable();
});
}
public function down(): void
{
Schema::table('map_lahan', function (Blueprint $table) {
$table->dropColumn('jenis_hama');
$table->dropColumn('jenis_penyakit');
});
Schema::table('map_tanaman', function (Blueprint $table) {
$table->dropColumn('jenis_hama');
$table->dropColumn('jenis_penyakit');
});
}
};