Make create script idempotent

main
Jeffrey Elkner 2 years ago
parent efe3323075
commit a633665f32

@ -1,8 +1,8 @@
BEGIN TRANSACTION; BEGIN TRANSACTION;
DROP TABLE IF EXISTS "author"; DROP TABLE IF EXISTS "quotecategory" CASCADE;
DROP TABLE IF EXISTS "quote"; DROP TABLE IF EXISTS "author" CASCADE;
DROP TABLE IF EXISTS "category"; DROP TABLE IF EXISTS "quote" CASCADE;
DROP TABLE IF EXISTS "quotecategory"; DROP TABLE IF EXISTS "category" CASCADE;
CREATE TABLE author( CREATE TABLE author(
aid SERIAL PRIMARY KEY, aid SERIAL PRIMARY KEY,
fname TEXT, fname TEXT,

Loading…
Cancel
Save