From: Banana Date: Sun, 31 Jan 2021 17:55:51 +0000 (+0100) Subject: cleanup X-Git-Tag: 1.1~17 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=1eb44cc15a927cd8d0ba9e4254800ed227e490e5;p=bibliotheca-php.git cleanup --- diff --git a/TODO b/TODO index 3fa8dee..ec8b20d 100644 --- a/TODO +++ b/TODO @@ -10,3 +10,4 @@ * Field management: Web interface * minimal theme * Automatic upgrade from DB changes +* PHP 7 syntax ans specifications diff --git a/upgrade/from-version-1.0.txt b/upgrade/from-version-1.0.txt index 2396841..22b14f5 100644 --- a/upgrade/from-version-1.0.txt +++ b/upgrade/from-version-1.0.txt @@ -11,10 +11,10 @@ See too-imdbweb.txt documentation for more information. # DB changes. Run each line against your bibliotheca DB. # Replace #REPLACEME# with your table prefix. Default is bib -UPDATE `#REPLACEME#_menu` SET `rights` = 'rw-rw----' WHERE `bib_menu`.`id` = 10; -UPDATE `#REPLACEME#_menu` SET `group` = '2' WHERE `bib_menu`.`id` = 10; +UPDATE `#REPLACEME#_menu` SET `rights` = 'rw-rw----' WHERE `#REPLACEME#_menu`.`id` = 10; +UPDATE `#REPLACEME#_menu` SET `group` = '2' WHERE `#REPLACEME#_menu`.`id` = 10; INSERT INTO `#REPLACEME#_menu` (`id`, `text`, `action`, `icon`, `owner`, `group`, `rights`, `position`, `category`) VALUES (NULL, 'Profile', 'profile', 'user', '1', '2', 'rw-rw----', '5', 'manage'); -DELETE FROM `#REPLACEME#_menu` WHERE `bib_menu`.`id` = 13; +DELETE FROM `#REPLACEME#_menu` WHERE `#REPLACEME#_menu`.`id` = 13; INSERT INTO `#REPLACEME#_menu` (`id`, `text`, `action`, `icon`, `owner`, `group`, `rights`, `position`, `category`) VALUES (NULL, 'Groups', 'managegroups', 'users', '1', '1', 'rw-------', '5', 'manage'); -UPDATE `#REPLACEME#_menu` SET `position` = '6' WHERE `bib_menu`.`id` = 16; -UPDATE `#REPLACEME#_menu` SET `group` = '2', `rights` = 'rw-rw----' WHERE `bib_menu`.`id` = 14; +UPDATE `#REPLACEME#_menu` SET `position` = '6' WHERE `#REPLACEME#_menu`.`id` = 16; +UPDATE `#REPLACEME#_menu` SET `group` = '2', `rights` = 'rw-rw----' WHERE `#REPLACEME#_menu`.`id` = 14;