From 1eb44cc15a927cd8d0ba9e4254800ed227e490e5 Mon Sep 17 00:00:00 2001 From: Banana Date: Sun, 31 Jan 2021 18:55:51 +0100 Subject: [PATCH] cleanup --- TODO | 1 + upgrade/from-version-1.0.txt | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) 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; -- 2.39.5