petani lahan tanaman update
This commit is contained in:
@@ -24,7 +24,7 @@ return new class extends Migration
|
||||
$table->integer('jumlah_tanaman')->nullable();
|
||||
|
||||
$table->string('kondisi_tanaman')->nullable();
|
||||
$table->string('hama_tanaman')->nullable();
|
||||
$table->string('serangan_hama')->nullable();
|
||||
$table->string('penyakit_tanaman')->nullable();
|
||||
$table->string('keparahan_serangan')->nullable();
|
||||
|
||||
@@ -35,10 +35,6 @@ return new class extends Migration
|
||||
Schema::table('petani', function (Blueprint $table) {
|
||||
$table->foreignId('profile_id')->nullable()->constrained('profiles')->onDelete('set null');
|
||||
});
|
||||
|
||||
Schema::table('map_petani', function (Blueprint $table) {
|
||||
$table->foreignId('petani_id')->nullable()->constrained('petani')->onDelete('set null');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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_tanaman', function (Blueprint $table) {
|
||||
$table->foreignId('petani_id')->nullable()->constrained('petani')->onDelete('set null');
|
||||
|
||||
$table->float('umur_tanaman', 8)->nullable();
|
||||
|
||||
$table->string('serangan_hama')->nullable();
|
||||
$table->string('penyakit_tanaman')->nullable();
|
||||
$table->string('keparahan_serangan')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user