LP1672775 Action/Trigger purge script
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Mar 2017 15:46:06 +0000 (11:46 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 16 Mar 2017 15:46:06 +0000 (11:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/support-scripts/purge_at_events.srfsh [new file with mode: 0755]

diff --git a/Open-ILS/src/support-scripts/purge_at_events.srfsh b/Open-ILS/src/support-scripts/purge_at_events.srfsh
new file mode 100755 (executable)
index 0000000..f14b287
--- /dev/null
@@ -0,0 +1,7 @@
+#!/openils/bin/srfsh
+open open-ils.cstore
+request open-ils.cstore open-ils.cstore.transaction.begin
+request open-ils.cstore open-ils.cstore.json_query {"from":["action_trigger.purge_events"]}
+request open-ils.cstore open-ils.cstore.transaction.commit
+close open-ils.cstore
+