version 2.x - Dragon Chapel ()
+ Added LOGFILE and QUERY_DEBUG const to config.php. See update.txt for more details
+ Updated DB table charsets. Needs manuall DB updates. See update.txt file.
* Fixed URL handling at creation
+ Improved DB queries.
+ Add top 5 tag or category relation stats in the tag and category overview
- + Update license to GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
+ + Updated license to GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
+ Updated error logging and try/catch for mysql
+ Updated from https://github.com/druidfi/mysqldump-php to https://github.com/ifsnop/mysqldump-php since develop
resumed. Version mysqldump-php v2.11
DROP TABLE IF EXISTS `#REPLACE_ME#_category`;
CREATE TABLE `#REPLACE_ME#_category` (
`id` int NOT NULL,
- `name` varchar(128) COLLATE utf8mb4_bin NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT;
+ `name` varchar(128) COLLATE utf8mb4_unicode_520_ci NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
CREATE TABLE `#REPLACE_ME#_categoryrelation` (
`linkid` int NOT NULL,
`categoryid` int NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
DROP TABLE IF EXISTS `#REPLACE_ME#_link`;
CREATE TABLE `#REPLACE_ME#_link` (
`id` int NOT NULL,
- `link` mediumtext COLLATE utf8mb4_bin NOT NULL,
+ `link` mediumtext COLLATE utf8mb4_unicode_520_ci NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`status` int NOT NULL,
- `description` varchar(255) COLLATE utf8mb4_bin NOT NULL,
- `title` varchar(255) COLLATE utf8mb4_bin NOT NULL,
- `image` varchar(255) COLLATE utf8mb4_bin NOT NULL,
- `hash` char(32) COLLATE utf8mb4_bin NOT NULL,
- `search` text COLLATE utf8mb4_bin NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT;
+ `description` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
+ `title` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
+ `image` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
+ `hash` char(32) COLLATE utf8mb4_unicode_520_ci NOT NULL,
+ `search` text COLLATE utf8mb4_unicode_520_ci NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
DROP TABLE IF EXISTS `#REPLACE_ME#_tag`;
CREATE TABLE `#REPLACE_ME#_tag` (
`id` int NOT NULL,
- `name` varchar(64) COLLATE utf8mb4_bin NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT;
+ `name` varchar(64) COLLATE utf8mb4_unicode_520_ci NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
CREATE TABLE `#REPLACE_ME#_tagrelation` (
`linkid` int NOT NULL,
`tagid` int NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
+ Add log file path constant to config file.
See config.default.php for LOGFILE constant. Add it to your local config.php
+ Update your tables with the following SQL statements. Replace #REPLACE_ME# with your current table prefix.
+
ALTER TABLE `#REPLACE_ME#_link` ADD INDEX (`created`);
ALTER TABLE `#REPLACE_ME#_link` ADD INDEX (`status`);
ALTER TABLE `#REPLACE_ME#_categoryrelation` ADD INDEX (`categoryid`);
ALTER TABLE `#REPLACE_ME#_tagrelation` ADD INDEX (`linkid`);
ALTER TABLE `#REPLACE_ME#_category` ADD INDEX (`name`);
+ALTER TABLE `#REPLACE_ME#_category` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
+ALTER TABLE `#REPLACE_ME#_categoryrelation` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
+ALTER TABLE `#REPLACE_ME#_link` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
+ALTER TABLE `#REPLACE_ME#_tag` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
+ALTER TABLE `#REPLACE_ME#_tagrelation` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
+ALTER TABLE `#REPLACE_ME#_tag` CHANGE `name` `name` VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
+ALTER TABLE `#REPLACE_ME#_link` CHANGE `link` `link` MEDIUMTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
+ALTER TABLE `#REPLACE_ME#_link` CHANGE `description` `description` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
+ALTER TABLE `#REPLACE_ME#_link` CHANGE `title` `title` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
+ALTER TABLE `#REPLACE_ME#_link` CHANGE `image` `image` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
+ALTER TABLE `#REPLACE_ME#_link` CHANGE `hash` `hash` CHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
+ALTER TABLE `#REPLACE_ME#_link` CHANGE `search` `search` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
+ALTER TABLE `#REPLACE_ME#_category` CHANGE `name` `name` VARCHAR(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
+
## version 2.8.1 - Deathwind
+ Added debug setting into config. See config.default.php for DEBUG constant.
Add it to your local config.php