Yimaru-BackEnd/db/migrations/000072_seed_ethiopia_regions_field_options.up.sql
Yared Yemane f7d4b5c3fb Seed country and ethiopia_regions field options for dropdowns.
Add ISO-style country codes and Ethiopian regional states to initial and follow-up migrations.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 09:45:39 -07:00

18 lines
1.1 KiB
SQL

INSERT INTO field_options (field_key, code, label, display_order, status) VALUES
('ethiopia_regions', 'ADDIS_ABABA', 'Addis Ababa', 1, 'ACTIVE'),
('ethiopia_regions', 'DIRE_DAWA', 'Dire Dawa', 2, 'ACTIVE'),
('ethiopia_regions', 'TIGRAY', 'Tigray', 3, 'ACTIVE'),
('ethiopia_regions', 'AFAR', 'Afar', 4, 'ACTIVE'),
('ethiopia_regions', 'AMHARA', 'Amhara', 5, 'ACTIVE'),
('ethiopia_regions', 'OROMIA', 'Oromia', 6, 'ACTIVE'),
('ethiopia_regions', 'SOMALI', 'Somali', 7, 'ACTIVE'),
('ethiopia_regions', 'BENISHANGUL_GUMUZ', 'Benishangul-Gumuz', 8, 'ACTIVE'),
('ethiopia_regions', 'GAMBELA', 'Gambela', 9, 'ACTIVE'),
('ethiopia_regions', 'HARARI', 'Harari', 10, 'ACTIVE'),
('ethiopia_regions', 'SIDAMA', 'Sidama', 11, 'ACTIVE'),
('ethiopia_regions', 'SOUTH_ETHIOPIA', 'South Ethiopia', 12, 'ACTIVE'),
('ethiopia_regions', 'SOUTH_WEST_ETHIOPIA', 'South West Ethiopia', 13, 'ACTIVE'),
('ethiopia_regions', 'CENTRAL_ETHIOPIA', 'Central Ethiopia', 14, 'ACTIVE'),
('ethiopia_regions', 'OTHER', 'Other', 99, 'ACTIVE')
ON CONFLICT (field_key, code) DO NOTHING;