From: Chris Sharp Date: Tue, 22 Nov 2016 01:49:13 +0000 (-0500) Subject: Perform the DB table creation within a transaction, for safety. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f6ca6dbc9e0816f387ac9f8e7d2072f4cb71bbcb;p=contrib%2Fpines%2Freport-creator.git Perform the DB table creation within a transaction, for safety. Signed-off-by: Chris Sharp --- diff --git a/sql/quick_reports_setup.sql b/sql/quick_reports_setup.sql index 4236a39..8d7fb7d 100644 --- a/sql/quick_reports_setup.sql +++ b/sql/quick_reports_setup.sql @@ -1,3 +1,4 @@ +BEGIN; CREATE SCHEMA quick_reports; CREATE TABLE quick_reports.template_types ( @@ -103,3 +104,4 @@ CREATE TABLE quick_reports.draft_reports ( ); INSERT INTO permission.permission_list (id,code,description) VALUES (DEFAULT, 'ADMIN_SIMPLE_REPORTS', 'Necessary for Admin of Quick Reports Add-on'); +COMMIT;