Skip to content

Commit

Permalink
Vymazanie related objektov a oprava sekvencii
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Dec 14, 2024
1 parent 6384de7 commit 5efc6b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data_migration/delete_all.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ DELETE FROM public.competition_eventregistration;
DELETE FROM public.competition_publication;
DELETE FROM public.competition_problem;
DELETE FROM public.competition_series;
DELETE FROM public.competition_registrationlink;
DELETE FROM public.competition_semester_late_tags;
DELETE FROM public.competition_semester;
DELETE FROM public.competition_event;
DELETE FROM public.competition_registrationlink;

DELETE FROM public.cms_flatpage;
DELETE FROM public.cms_post_sites;
Expand Down
7 changes: 6 additions & 1 deletion data_migration/update_sequences.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
SELECT setval('competition_event_id_seq', 200, true);
SELECT setval('competition_series_id_seq', 160, true);
SELECT setval('competition_problem_id_seq', 1000, true);
SELECT setval('competition_publication_id_seq', 350, true);
SELECT setval('competition_publication_id_seq', 350, true);

SELECT setval('cms_flatpage_id_seq',20,true);
SELECT setval('cms_post_id_seq',10,true);
SELECT setval('cms_post_sites_id_seq',30,true);
SELECT setval('cms_postlink_id_seq',20,true);

0 comments on commit 5efc6b1

Please sign in to comment.