From 6cd1f0018d21378846617805f33d668a94ed43e7 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 24 Jun 2013 12:33:58 +0200 Subject: [PATCH] Bug 7368: Followup for columns names in userflags.sql Content-Type: text/plain; charset=utf-8 An insert statement should contain the column names to avoid confusion and future problems with table definition changes. I have updated the English default file. Will send updates for the other languages in connection with replacing inserts by updates for the additional languages (where possible). For userflags this will be the case. Test plan: Do an install (English). Or run this file from command line. Signed-off-by: Marcel de Rooy --- installer/data/mysql/en/mandatory/userflags.sql | 39 ++++++++++++----------- 1 files changed, 20 insertions(+), 19 deletions(-) diff --git a/installer/data/mysql/en/mandatory/userflags.sql b/installer/data/mysql/en/mandatory/userflags.sql index 0714ea4..c00db34 100644 --- a/installer/data/mysql/en/mandatory/userflags.sql +++ b/installer/data/mysql/en/mandatory/userflags.sql @@ -1,19 +1,20 @@ -INSERT INTO `userflags` VALUES(0,'superlibrarian','Access to all librarian functions',0); -INSERT INTO `userflags` VALUES(1,'circulate','Check out and check in items',0); -INSERT INTO `userflags` VALUES(2,'catalogue','Required for staff login. Staff access, allows viewing of catalogue in staff client.',0); -INSERT INTO `userflags` VALUES(3,'parameters','Manage Koha system settings (Administration panel)',0); -INSERT INTO `userflags` VALUES(4,'borrowers','Add or modify patrons',0); -INSERT INTO `userflags` VALUES(5,'permissions','Set user permissions',0); -INSERT INTO `userflags` VALUES(6,'reserveforothers','Place and modify holds for patrons',0); -INSERT INTO `userflags` VALUES(7,'borrow','Borrow books',1); -INSERT INTO `userflags` VALUES(9,'editcatalogue','Edit Catalog (Modify bibliographic/holdings data)',0); -INSERT INTO `userflags` VALUES(10,'updatecharges','Manage patrons fines and fees',0); -INSERT INTO `userflags` VALUES(11,'acquisition','Acquisition and/or suggestion management',0); -INSERT INTO `userflags` VALUES(12,'management','Set library management parameters (deprecated)',0); -INSERT INTO `userflags` VALUES(13,'tools','Use all tools (expand for granular tools permissions)',0); -INSERT INTO `userflags` VALUES(14,'editauthorities','Edit Authorities',0); -INSERT INTO `userflags` VALUES(15,'serials','Manage serial subscriptions',0); -INSERT INTO `userflags` VALUES(16,'reports','Allow access to the reports module',0); -INSERT INTO `userflags` VALUES(17,'staffaccess','Allow staff members to modify permissions for other staff members',0); -INSERT INTO `userflags` VALUES(18,'coursereserves','Course Reserves',0); -INSERT INTO `userflags` VALUES(19, 'plugins', 'Koha plugins', '0'); +INSERT INTO userflags (bit, flag, flagdesc, defaulton) VALUES +(0,'superlibrarian','Access to all librarian functions',0), +(1,'circulate','Check out and check in items',0), +(2,'catalogue','Required for staff login. Staff access, allows viewing of catalogue in staff client.',0), +(3,'parameters','Manage Koha system settings (Administration panel)',0), +(4,'borrowers','Add or modify patrons',0), +(5,'permissions','Set user permissions',0), +(6,'reserveforothers','Place and modify holds for patrons',0), +(7,'borrow','Borrow books',1), +(9,'editcatalogue','Edit Catalog (Modify bibliographic/holdings data)',0), +(10,'updatecharges','Manage patrons fines and fees',0), +(11,'acquisition','Acquisition and/or suggestion management',0), +(12,'management','Set library management parameters (deprecated)',0), +(13,'tools','Use all tools (expand for granular tools permissions)',0), +(14,'editauthorities','Edit Authorities',0), +(15,'serials','Manage serial subscriptions',0), +(16,'reports','Allow access to the reports module',0), +(17,'staffaccess','Allow staff members to modify permissions for other staff members',0), +(18,'coursereserves','Course Reserves',0), +(19, 'plugins', 'Koha plugins', '0'); -- 1.7.7.6