fix out-of-sync id sequence
authorChris Sharp <csharp@georgialibraries.org>
Sun, 9 Sep 2018 16:32:27 +0000 (12:32 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 30 Jan 2019 14:18:14 +0000 (09:18 -0500)
Open-ILS/src/sql/Pg/version-upgrade/pines-pre-3.2-upgrade.sql

index 19228cc..465d1fe 100644 (file)
@@ -13,4 +13,6 @@ $f$ LANGUAGE PLPERLU;
 
 drop view reporter.copy_statistics_view;
 
+select setval('action_trigger.event_definition_id_seq', ((select max(id) from action_trigger.event_definition) + 1));
+
 commit;