Remove Gender Patron Statistical Category in DB Upgrade
authorJason Stephenson <jstephenson@cwmars.org>
Fri, 24 Mar 2023 18:52:56 +0000 (14:52 -0400)
committerJason Stephenson <jason@sigio.com>
Fri, 24 Mar 2023 18:52:56 +0000 (14:52 -0400)
Signed-off-by: Jason Stephenson <jstephenson@cwmars.org>
Open-ILS/src/sql/Pg/version-upgrade/cwmars-3.7.3-3.7.4-upgrade-db.sql

index 76c1c60..00f6352 100644 (file)
@@ -172,3 +172,17 @@ VALUES
 
 END
 $$;
+
+\qecho Remove Gender Patron Statistical Category
+BEGIN;
+
+DELETE FROM actor.stat_cat_entry_usr_map
+WHERE stat_cat = 1;
+
+DELETE FROM actor.stat_cat_entry
+WHERE stat_cat = 1;
+
+DELETE FROM actor.stat_cat
+WHERE id = 1;
+
+COMMIT;