a6c03a091e
Moved from gov-agreg/src/pages/achizitii/* to root (drop prefix). - 22 pages migrated, 127 files total - All internal links: /achizitii/X → /X (176 occurrences fixed) - AchizitiiLayout subnav rewritten: /X paths, top-right link to vreaudigital.ro hub - BaseLayout new (vreau.digital branding, OG tags, site URL) - astro.config.mjs: site https://vreau.digital, server output (was static) - docker-compose: port 5096 (vreaudigital is 5095), container vreau-digital - deploy.sh: paths /opt/vreau-digital, log /var/log/vreau-digital-deploy.log Backend shared with gov-agreg: - PostgreSQL satra (same schemas: seap, firms, anaf, anre, ...) - Photon, Martin tiles - Infisical /vreaudigital path (DATABASE_URL etc. shared) build: PASS (npx astro check 0 errors, npm run build 5s vite + 10s server)
16 lines
755 B
SQL
16 lines
755 B
SQL
-- 027_afir_tip_fond.sql
|
|
-- Augment fonduri.afir_plati with tip_fond discriminator to host both FEADR
|
|
-- (project-based development funds) and FEGA (per-hectare direct payments
|
|
-- to farmers) in the same fact table. Schema is near-identical between the
|
|
-- two; only specific columns are populated per fund (e.g. fega_op vs feadr_op).
|
|
--
|
|
-- Backwards compatible: existing 1.04M rows (2023+2024 FEADR) get tip_fond='FEADR'.
|
|
|
|
ALTER TABLE fonduri.afir_plati
|
|
ADD COLUMN IF NOT EXISTS tip_fond text NOT NULL DEFAULT 'FEADR';
|
|
|
|
-- Backfill any rows that were inserted before column existed
|
|
UPDATE fonduri.afir_plati SET tip_fond = 'FEADR' WHERE tip_fond IS NULL;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_afir_plati_tip_fond ON fonduri.afir_plati(tip_fond, source_year);
|