Perform the DB table creation within a transaction, for safety.
authorChris Sharp <csharp@georgialibraries.org>
Tue, 22 Nov 2016 01:49:13 +0000 (20:49 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 22 Nov 2016 01:49:13 +0000 (20:49 -0500)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
sql/quick_reports_setup.sql

index 4236a39..8d7fb7d 100644 (file)
@@ -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;