Small fixes in init.sql and create drop.sql

This commit is contained in:
2024-12-27 11:09:53 +01:00
parent 1cff219347
commit ca5fccb809
4 changed files with 67 additions and 34 deletions

7
sql/drop.sql Normal file
View File

@ -0,0 +1,7 @@
DROP TABLE IF EXISTS votes;
DROP TABLE IF EXISTS voters;
DROP TABLE IF EXISTS choices;
DROP TABLE IF EXISTS elections;
DROP TRIGGER IF EXISTS prevent_created_at_update_election;
DROP TRIGGER IF EXISTS prevent_created_at_update_votes;
DROP TRIGGER IF EXISTS enforce_max_voters;