Version 1.4¶
Upgrade procedure¶
This manual describes how to upgrade to version 1.4 from versions 1.2.29
Upgrade yeti-web package to 1.2.29¶
root@yeti:/# apt update
root@yeti:/# apt install yeti-web=1.2.29
Apply all migrations for version 1.2.29¶
root@yeti:/# yeti-db apply_all
root@yeti:/# yeti-db --cdr apply_all
Upgrade yeti-web package to 1.4.0¶
root@yeti:/# apt update
root@yeti:/# apt install yeti-web=1.4.0
Change database.yml to new format¶
production:
adapter: postgresql
encoding: unicode
database: yeti
pool: 5
username: yeti
password: somepassword
host: 127.0.0.1
schema_search_path: gui, public, switch, billing, class4, runtime_stats, sys, logs, data_import
port: 5432
min_messages: notice
secondbase:
production:
adapter: postgresql
encoding: unicode
database: cdr
pool: 5
username: yeti
password: somepassword
host: 127.0.0.1
schema_search_path: 'cdr, reports, billing'
port: 5432
min_messages: notice
Apply new migrations in new way¶
root@yeti:/# cd /home/yeti-web
root@yeti:/home/yeti-web# RAILS_ENV=production ./bin/bundle.sh exec rake db:migrate
root@yeti:/home/yeti-web# RAILS_ENV=production ./bin/bundle.sh exec rake db:second_base:migrate
Restart all components of yeti-web¶
root@yeti:/# systemctl restart yeti-web
root@yeti:/# systemctl restart yeti-cdr-billing@cdr_billing
root@yeti:/# systemctl restart yeti-delayed-job
Switch to new routing schema¶
Switch routing schema to ‘switch13’ at /etc/yeti/system.cfg on your yeti-management server and restart yeti-management server