[open-ils-commits] [GIT] Evergreen ILS branch master updated. 95a203d055bf2452e58621b396e54d45cccc44a0

Evergreen Git git at git.evergreen-ils.org
Wed Mar 28 16:43:19 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  95a203d055bf2452e58621b396e54d45cccc44a0 (commit)
      from  6ef8711978cb37e3d3b09ce5737daec551d8947d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 95a203d055bf2452e58621b396e54d45cccc44a0
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Wed Mar 28 16:43:15 2012 -0400

    remove XXXX script
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.custom_toolbars.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.custom_toolbars.sql
deleted file mode 100644
index 63c7a61..0000000
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.custom_toolbars.sql
+++ /dev/null
@@ -1,56 +0,0 @@
-
-CREATE TABLE actor.toolbar (
-    id          BIGSERIAL   PRIMARY KEY,
-    ws          INT         REFERENCES actor.workstation (id) ON DELETE CASCADE,
-    org         INT         REFERENCES actor.org_unit (id) ON DELETE CASCADE,
-    usr         INT         REFERENCES actor.usr (id) ON DELETE CASCADE,
-    label       TEXT        NOT NULL,
-    layout      TEXT        NOT NULL,
-    CONSTRAINT only_one_type CHECK (
-        (ws IS NOT NULL AND COALESCE(org,usr) IS NULL) OR
-        (org IS NOT NULL AND COALESCE(ws,usr) IS NULL) OR
-        (usr IS NOT NULL AND COALESCE(org,ws) IS NULL)
-    ),
-    CONSTRAINT layout_must_be_json CHECK ( is_json(layout) )
-);
-CREATE UNIQUE INDEX label_once_per_ws ON actor.toolbar (ws, label) WHERE ws IS NOT NULL;
-CREATE UNIQUE INDEX label_once_per_org ON actor.toolbar (org, label) WHERE org IS NOT NULL;
-CREATE UNIQUE INDEX label_once_per_usr ON actor.toolbar (usr, label) WHERE usr IS NOT NULL;
-
--- this one unrelated to toolbars but is a gap in the upgrade scripts
-INSERT INTO permission.perm_list ( id, code, description )
-    SELECT
-        522,
-        'IMPORT_AUTHORITY_MARC',
-        oils_i18n_gettext(
-            522,
-            'Allows a user to create new authority records',
-            'ppl',
-            'description'
-        )
-    WHERE NOT EXISTS (
-        SELECT 1
-        FROM permission.perm_list
-        WHERE
-            id = 522
-    );
-
-INSERT INTO permission.perm_list ( id, code, description ) VALUES (
-    523,
-    'ADMIN_TOOLBAR',
-    oils_i18n_gettext(
-        523,
-        'Allows a user to create, edit, and delete custom toolbars',
-        'ppl',
-        'description'
-    )
-);
-
--- Don't want to assume stock perm groups in an upgrade script, but here for ease of testing
--- INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) SELECT pgt.id, perm.id, aout.depth, FALSE FROM permission.grp_tree pgt, permission.perm_list perm, actor.org_unit_type aout WHERE pgt.name = 'Staff' AND aout.name = 'Branch' AND perm.code = 'ADMIN_TOOLBAR';
-
-INSERT INTO actor.toolbar(org,label,layout) VALUES
-    ( 1, 'circ', '["circ_checkout","circ_checkin","toolbarseparator.1","search_opac","copy_status","toolbarseparator.2","patron_search","patron_register","toolbarspacer.3","hotkeys_toggle"]' ),
-    ( 1, 'cat', '["circ_checkin","toolbarseparator.1","search_opac","copy_status","toolbarseparator.2","create_marc","authority_manage","retrieve_last_record","toolbarspacer.3","hotkeys_toggle"]' );
-
--- delete from permission.grp_perm_map where perm in (select id from permission.perm_list where code ~ 'TOOLBAR'); delete from permission.perm_list where code ~ 'TOOLBAR'; drop table actor.toolbar ;

-----------------------------------------------------------------------

Summary of changes:
 .../sql/Pg/upgrade/XXXX.schema.custom_toolbars.sql |   56 --------------------
 1 files changed, 0 insertions(+), 56 deletions(-)
 delete mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.schema.custom_toolbars.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list