To release 173 version of the engine, we wrote a simple script to upgrade SQL database.

How can upgrade from 110,120,121… 150, etc.?
 
So step by step:
 
1. Make a backup of your old database and move it along with the site on the local host. (Experiments over existing sites are not welcome)
 
2. Downloading Seditio 173 and unpack on the local host.
 
  • Replace all PHP files in directories, including all subdirectories.
    • /system/
    • /skins/ (If you make changes in the skin file, do not do the replacement, see section 5),
    • /plugins/
    • /datas/
  • Replace all PHP files in the root directory of the site — root /
 
3. Go to the folder/datas/ and rename config.default.php in config.php
 
4. Open the config.php and set up a connection to your «old» local database.
 
Mode until a better set as bbcode (in case you have had your bbcode) ie
 
$cfg['textmode'] = 'bbcode';
 
5. Go to the folder /docs/upgrade/ and find there upgrade-seditio1xx-to-seditio173.zip, unpack and place it in the root of the site file: upgrade-seditio1xx-to-seditio173.php
 
6. Next, open the browser http://name_your_site/upgrade-seditio1xx-to-seditio173.php
 
In the first step you will be asked convert your base in UTF-8, if you have it already in UTF-8 (from v130) then you can skip this step and go to the next.
Upgrade script will automatically determine the current version of SQL databases and line up the steps of the upgrade to PHP scripts. Ie This updater can be used successfully and to update for example Seditio 110 to version 150, 170, 171, etc. (Theoretically)
 
Attention! Upgrade script itself will disable all of your old plug-ins, if the version of SQL database < 171!
 
7. Once you hopefully successfully, update the structure and content of SQL database can begin adding new tags to the TPL files and approbation old plugins.
 
Attention! Tpl files if you do not have skin in the UTF-8 then you need to convert them. This can be done using the editor Notepad ++ or PSPad and etc. Exactly the same procedure is necessary to and from your old plugins, especially with lang files!
 
New tags have appeared between versions can be found here. However, the best option would be to take any default skin of the 173 release and compare the presence of tags in your tpl files. Do not forget to also update the lang files and your old skin.
 
After the above steps, you must make sure that the site works fine in BBCode mode that all BBCode tags work. If you are making changes in BBCode parsing, you need to change the standard rules of parsing through the tool «Parser management». Once you have a full compliance in the site you will be to move to HTML mode!
 
$cfg['textmode'] = 'html';

 

==============================================================

 

К релизу 173 версии движка мы написали простой сценарий апгрейда SQL базы.

Как же обновится с версий 110,120,121… 150 и т.д.?

 

Итак по шагам:

1. Делаем бэкап вашей старой базы, и переносим его вместе с сайтом на локальный хост.(эксперименты над действующими сайтами не приветствуются)

2. Скачиваем Seditio 173 и распаковываем на локальном хосте.

  • Заменяем все PHP файлы в каталогах, включая все подкаталоги.
    • /system/
    • /skins/ (если вы делали изменения в файлах скина, замену не делайте, см. п.5),
    • /plugins/,
    • /datas/
  • Заменяем все PHP файлы в корневом каталоге сайта — root /

3. Идём в папку /datas/ и переименовываем config.default.php в config.php

4. Открываем config.php и настраиваем подключение к вашей «старой» локальной базе.

Режим работы лучше пока установить как bbcode (на случай, если у вас были свои bbcode) т.е.

$cfg['textmode'] = 'bbcode';

5. Идём в папку /docs/upgrade/ и находим там upgrade-seditio1xx-to-seditio173.zip, распаковывыем и помещаем в корень сайта файл: upgrade-seditio1xx-to-seditio173.php

6. Далее открываем в браузере http://имя_вашего_сайта/upgrade-seditio1xx-to-seditio173.php

На первом шаге вам будет предложено отконвертнуть базу в UTF-8, если она у вас уже в кодировке UTF-8 (начиная с v130) то можете пропустить этот шаг и перейти к следующему.

Сценарий обновления автоматически определит текущую версию SQL базы и выстроит шаги обновления до версии PHP скриптов. Т.е. данный модуль обновления можно успешно использовать и для обновления к примеру Seditio 110 до версии 150, 170, 171 и т.д. (теоретически)

Внимание! Сценарий обновления самостоятельно отключит всё ваши старые плагины, если версия SQL базы < 171!

7. После того как вы, надеемся успешно, обновили структуру и содержимое SQL базы можно приступить к добавлению новых тегов в TPL файлы и опробации старых плагинов.

Внимание! Если tpl файлы скина у вас не в кодировке UTF-8 то вам необходимо их конвертировать. Это можно сделать при помощи редактора Notepad++ или PSPad и д.р. Точно такую же процеду необходимо провести и с вашими старыми плагинами, в особенности с lang файлами!

Новые теги появившиеся от версии к версии можно посмотреть тут. Однако самым оптимальным вариантом будет взять любой скин по-умолчанию из 173 релиза и сравнить наличие тегов в ваших tpl файлах. Не забудьте также обновить и lang файлы вашего старого скина.

После проведения вышеуказанных действий вам нужно убедится, что сайт нормально работает в BBCode режиме, что все BBCode теги парсются. Если вы самостоятельно вносили изменения в BBCode парсинг, то Вам необходимо изменить стандартные правила парсинга через инструмент "Parser management". Как только вы добьётесь полного соответствия в работе сайта можно будет переходить на HTML режим!

$cfg['textmode'] = 'html';

Ratings: