(→0.8.5 - 0.8.6) |
(→0.8.5 - 0.8.6) |
||
| Line 2: | Line 2: | ||
== 0.8.5 - 0.8.6 == | == 0.8.5 - 0.8.6 == | ||
| - | Backup all configuration files and database before | + | Backup all configuration files and database before upgrading. |
If you have logger plugin installed update the templates by giving following commands after upgrade: | If you have logger plugin installed update the templates by giving following commands after upgrade: | ||
| Line 10: | Line 10: | ||
Upgrade also the latest meego-ai-flasher. | Upgrade also the latest meego-ai-flasher. | ||
| - | === | + | === Updating the database === |
If you want to keep your old log database, add new (user_defined_id) column to the log_messages table. Run database command line interface for OTS database. By default OTS uses sqlite database at /opt/ots/ots.sqlite. | If you want to keep your old log database, add new (user_defined_id) column to the log_messages table. Run database command line interface for OTS database. By default OTS uses sqlite database at /opt/ots/ots.sqlite. | ||
| Line 16: | Line 16: | ||
Add new column to the log_messages table by executing following command: | Add new column to the log_messages table by executing following command: | ||
ALTER TABLE log_messages ADD COLUMN user_defined_id varchar(255) NOT NULL DEFAULT <nowiki>''</nowiki>; | ALTER TABLE log_messages ADD COLUMN user_defined_id varchar(255) NOT NULL DEFAULT <nowiki>''</nowiki>; | ||
| + | |||
| + | If there's no need to keep the old database you can remove the database file (/opt/ots/ots.sqlite) and generate a new one using [[Quality/QA-tools/OTS/Plugins/Django#Create.2Fupdate_databases|the instructions]]. | ||
== 0.8.4 - 0.8.5 == | == 0.8.4 - 0.8.5 == | ||
Contents |
Backup all configuration files and database before upgrading.
If you have logger plugin installed update the templates by giving following commands after upgrade:
sudo cp -r /usr/share/ots/django/* /var/www/ sudo cp -r /usr/share/ots/plugin/* /var/www/
Upgrade also the latest meego-ai-flasher.
If you want to keep your old log database, add new (user_defined_id) column to the log_messages table. Run database command line interface for OTS database. By default OTS uses sqlite database at /opt/ots/ots.sqlite.
sudo sqlite3 /opt/ots/ots.sqlite
Add new column to the log_messages table by executing following command:
ALTER TABLE log_messages ADD COLUMN user_defined_id varchar(255) NOT NULL DEFAULT '';
If there's no need to keep the old database you can remove the database file (/opt/ots/ots.sqlite) and generate a new one using the instructions.
See migration document.