adjust migration for seed and depresiasi

This commit is contained in:
giovanni
2026-06-04 12:28:35 +07:00
parent a51e5302c3
commit 37de931b37
21 changed files with 74 additions and 0 deletions
@@ -0,0 +1,8 @@
-- Hapus baris kurva custom dari house_depreciation_standards.
-- Exact match pada array (IDs di-sort, sama persis dengan yang di-insert).
DELETE FROM house_depreciation_standards
WHERE project_flock_ids = ARRAY[18]::bigint[]
AND effective_date = DATE '2026-06-03';
-- Recompute snapshot depresiasi.
DELETE FROM farm_depreciation_snapshots WHERE project_flock_id IN (18);