OFTQUEST / supabase_migration /02_data_tracks.sql
Nicolasmed26's picture
Deploy MedMembers OFT 2026
12f0507 verified
Raw History Blame Contribute Delete
3.53 kB
-- Inserir trilhas
INSERT INTO tracks (id, name, question_count) VALUES (1, 'CATARATA', 538) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (2, 'CIRURGIA REFRATIVA', 112) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (3, 'CÓRNEA, CONJUNTIVA E ESCLERA', 644) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (4, 'CÓRNEA_CONJUNTIVA_E_ESCLERA', 101) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (5, 'EMBRIOLOGIA', 38) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (6, 'ESTRABISMO', 428) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (7, 'GENÉTICA OCULAR', 39) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (8, 'GLAUCOMA', 629) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (9, 'LENTES DE CONTATO', 96) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (10, 'NEUROFTALMOLOGIA', 377) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (11, 'NÃO CLASSIFICADA', 174) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (12, 'OUTROS', 13) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (13, 'PATOLOGIA OCULAR', 26) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (14, 'PLÁSTICA OCULAR E SISTEMA LACRIMAL', 543) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (15, 'REFRAÇÃO', 415) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (16, 'RETINA', 697) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (17, 'RETINA 360', 683) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (18, 'TUMORES INTRAOCULARES', 202) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (19, 'UVEÍTE', 445) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (20, 'VISÃO SUBNORMAL', 87) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (21, 'ÓPTICA', 280) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
INSERT INTO tracks (id, name, question_count) VALUES (22, 'ÓRBITA', 303) ON CONFLICT (name) DO UPDATE SET question_count = EXCLUDED.question_count;
-- Resetar sequence
SELECT setval('tracks_id_seq', 22);