Refactor data insertion via Drizzle
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
INSERT INTO "worldTravelCountryRegions" (id, name, country_code)
|
||||
VALUES
|
||||
('ZA-EC', 'Eastern Cape', 'za'),
|
||||
('ZA-FS', 'Free State', 'za'),
|
||||
('ZA-GP', 'Gauteng', 'za'),
|
||||
('ZA-KZN', 'KwaZulu-Natal', 'za'),
|
||||
('ZA-LP', 'Limpopo', 'za'),
|
||||
('ZA-MP', 'Mpumalanga', 'za'),
|
||||
('ZA-NW', 'North West', 'za'),
|
||||
('ZA-NC', 'Northern Cape', 'za'),
|
||||
('ZA-WC', 'Western Cape', 'za')
|
||||
-- INSERT INTO "worldTravelCountryRegions" (id, name, country_code)
|
||||
-- VALUES
|
||||
-- ('ZA-EC', 'Eastern Cape', 'za'),
|
||||
-- ('ZA-FS', 'Free State', 'za'),
|
||||
-- ('ZA-GP', 'Gauteng', 'za'),
|
||||
-- ('ZA-KZN', 'KwaZulu-Natal', 'za'),
|
||||
-- ('ZA-LP', 'Limpopo', 'za'),
|
||||
-- ('ZA-MP', 'Mpumalanga', 'za'),
|
||||
-- ('ZA-NW', 'North West', 'za'),
|
||||
-- ('ZA-NC', 'Northern Cape', 'za'),
|
||||
-- ('ZA-WC', 'Western Cape', 'za')
|
||||
|
||||
ON CONFLICT (id) DO NOTHING;
|
||||
-- ON CONFLICT (id) DO NOTHING;
|
||||
|
||||
Reference in New Issue
Block a user