ekosistem basis data tambah field enum

This commit is contained in:
2026-05-06 15:51:59 +07:00
parent 9605ae7502
commit 61d8c41c63
9 changed files with 209 additions and 10 deletions
@@ -16,6 +16,8 @@ return new class extends Migration
$table->string('relasi_tabel')->nullable();
$table->string('relasi_kolom_id')->nullable();
$table->string('relasi_kolom_label')->nullable();
$table->jsonb('enum_opsi')->nullable();
});
DB::statement("alter table public.ekosistem_basis_data_kolom drop constraint ekosistem_basis_data_kolom_tipe_check;");
@@ -29,12 +31,14 @@ return new class extends Migration
'date'::character varying,
'datetime'::character varying,
'text'::character varying,
'foreign_key'::character varying
'foreign_key'::character varying,
'enum'::character varying
])::text[])))
");
Schema::table('ekosistem_basis_data_value', function (Blueprint $table) {
$table->integer('value_relasi')->nullable();
$table->string('value_enum')->nullable();
});
Schema::table('ekosistem_petani_cpm', function (Blueprint $table) {