update.txt 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. If you are updating from a previous version make sure every update info from
  2. the version your are updating from is done.
  3. ## version 2.x.x - Griffin Chapel
  4. + Add new config setting TIMEZONE to your config. See config.default.php for more details.
  5. + Add new config settings for using page screenshot with browserless.io. See config.default.php for more details.
  6. const COMPLETE_PAGE_SCREENSHOT_BROWSERLESS_API = "https://chrome.browserless.io/screenshot?token=";
  7. const COMPLETE_PAGE_SCREENSHOT_API_KEY = 'YOUR-API-KEY';
  8. const COMPLETE_PAGE_SCREEENSHOT_BROWSERLESS_TIMEOUT = 10000; # milliseconds
  9. const COMPLETE_PAGE_SCREEENSHOT_BROWSERLESS_IMAGE_QUALITY = 75; # quality for jpeg
  10. ## version 2.8.2 - Dragon Chapel
  11. + Add query debug setting to config file.
  12. See config.default.php for QUERY_DEBUG constant. Add it to your local config.php
  13. + Add log file path constant to config file.
  14. See config.default.php for LOGFILE constant. Add it to your local config.php
  15. + Update your tables with the following SQL statements. Replace #REPLACE_ME# with your current table prefix.
  16. ALTER TABLE `#REPLACE_ME#_link` ADD INDEX (`created`);
  17. ALTER TABLE `#REPLACE_ME#_link` ADD INDEX (`status`);
  18. ALTER TABLE `#REPLACE_ME#_categoryrelation` ADD INDEX (`categoryid`);
  19. ALTER TABLE `#REPLACE_ME#_tagrelation` ADD UNIQUE `tagid` (`linkid`, `tagid`);
  20. ALTER TABLE `#REPLACE_ME#_tagrelation` ADD INDEX (`linkid`);
  21. ALTER TABLE `#REPLACE_ME#_category` ADD INDEX (`name`);
  22. ALTER TABLE `#REPLACE_ME#_category` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
  23. ALTER TABLE `#REPLACE_ME#_categoryrelation` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
  24. ALTER TABLE `#REPLACE_ME#_link` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
  25. ALTER TABLE `#REPLACE_ME#_tag` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
  26. ALTER TABLE `#REPLACE_ME#_tagrelation` DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
  27. ALTER TABLE `#REPLACE_ME#_tag` CHANGE `name` `name` VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
  28. ALTER TABLE `#REPLACE_ME#_link` CHANGE `link` `link` MEDIUMTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
  29. ALTER TABLE `#REPLACE_ME#_link` CHANGE `description` `description` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
  30. ALTER TABLE `#REPLACE_ME#_link` CHANGE `title` `title` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
  31. ALTER TABLE `#REPLACE_ME#_link` CHANGE `image` `image` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
  32. ALTER TABLE `#REPLACE_ME#_link` CHANGE `hash` `hash` CHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
  33. ALTER TABLE `#REPLACE_ME#_link` CHANGE `search` `search` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
  34. ALTER TABLE `#REPLACE_ME#_category` CHANGE `name` `name` VARCHAR(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL;
  35. + Folder lib/MysqlDump and its contents can be removed.
  36. ## version 2.8.1 - Deathwind
  37. + Added debug setting into config. See config.default.php for DEBUG constant.
  38. Add it to your local config.php
  39. + Removed WKHTMLTOPDF_USE and WKHTMLTOPDF_COMMAND from config file.
  40. and replaced with COMPLETE_PAGE_SCREENSHOT and COMPLETE_PAGE_SCREENSHOT_COMMAND
  41. ## version 2.8 - Wastelands
  42. + Nothing.
  43. ## version 2.7 - Sacred Grove
  44. + New syntax in config file. Switched from define() to const syntax.
  45. Use config.default.php as a template to update your config.
  46. ## version 2.6 - Hypostyle
  47. + Update config file with the new language setting. See config.default and
  48. translation.txt for more information
  49. + Run update search index to use the URL within the search index for your existing data.
  50. ## version 2.5 - Winnowing Hall
  51. + Update config file with the two new constants. See config.default and
  52. snapshots-of-linked-webpage.txt for more information
  53. define('WKHTMLTOPDF_USE',false);
  54. define('WKHTMLTOPDF_COMMAND','/absolute/path/to/wkhtmltoimage');
  55. ## version 2.4 - Seven Portals (2020-02-16)
  56. + Run (after authentication) at /index.php?p=stats the "Search index update"
  57. to make the search work again correctly. At success, there is no confirmation.
  58. To validate you can now search for single words case-insensitive.
  59. + Update config file with two new settings. See config.default for more info
  60. define('EMAIL_JOB_PROTECT', false);
  61. define('EMAIL_JOB_PROTECT_SECRET', 'SOME_SECRET_STRING');
  62. + All files in webroot/asset/js/ EXCEPT the new editlink.js can be removed