BEGIN;

DROP INDEX IF EXISTS idx_recording_stocks_project_flock_kandang_id;

ALTER TABLE recording_stocks
    DROP CONSTRAINT IF EXISTS fk_recording_stocks_project_flock_kandang_id;

ALTER TABLE recording_stocks
    DROP COLUMN IF EXISTS project_flock_kandang_id;

ALTER TABLE house_depreciation_standards
    DROP CONSTRAINT IF EXISTS chk_house_depreciation_standards_standard_week_positive;

ALTER TABLE house_depreciation_standards
    DROP COLUMN IF EXISTS standard_week;

COMMIT;
