As part of v4.2.0 the migrations have been cleaned up. This was done to make it possible to build os2display/admin from a clean db. To upgrade from v4.1.0 => v4.2.0 do the following. This will cleanup the migrations table and set the correct migration point before migration to the newest version.
git fetch
git checkout v4.2.0
composer install
php app/console doctrine:query:sql "TRUNCATE TABLE migration_versions"
php app/console doctrine:migrations:version --add 20160622153459 --no-interaction
php app/console doctrine:migrations:version --add 20160629145821 --no-interaction
php app/console doctrine:migrations:migrate
nano app/config/parameters.yml:
- locale: da
- version: v4.2.0
php app/console cache:clear --env=prod
php app/console ik:templates:load
php app/console ik:reindex
The reindex is necessary because the groups field has to be indexed to be searchable.
git fetch git checkout v4.0.0
Templates not in default_templates should be added to the web/templates/ folder of admin.
cd web/templates git clone [email protected]:aakb/itk_templates.git cd itk_templates git checkout v1.0.0 cd .. git clone [email protected]:aakb/dokk1_templates.git cd dokk1_templates git checkout v1.0.0 cd .. git clone [email protected]:aroskanalen/mso_templates.git cd mso_templates git checkout v1.0.0 cd .. git clone [email protected]:aroskanalen/aarhus_templates.git cd aarhus_templates git checkout v1.0.0 cd .. git clone [email protected]:aroskanalen/mbu_templates.git cd mbu_templates git checkout v1.0.0 cd .. cd ../..
composer install app/console doctrine:migrations:migrate app/console ik:templates:load
Update the version tag in app/config/parameters.yml.
app/console cache:clear --env=prod
Upgrade search-node to latest version.
Search node
- Should be updated to newest version.
Steps
- Change release versions in configs (admin/app/config/parameters.yml and screen/app/config.js).
- app/console ik:templates:load (To get the latest version of the templates to the screens).
- Add parameter to screen/app/config.js:
"fallback_image": null
- If need for other fallback_image, add a fallback image to screen/assets/images/fallback_override.png and set the parameter above to:
"fallback_image": "assets/images/fallback_override.png"
Steps
- Change release versions in configs (admin/app/config/parameters.yml and screen/app/config.js).
Steps
- Change version in configs (admin/app/config/parameters.yml and screen/app/config.js).
- app/console ik:templates:load (To get the latest version of the templates to the screens).
- Symfony 2.6 -> 2.7 upgrade
- Slide and screen templates can be selected in the UI.
Steps
- Copy the list with templates from parameters.yml
- composer install
- app/console cache:clear
- app/console doctrine:schema:update --force
- app/console ik:templates:load
- app/console cache:clear
- Login to the site as administrator and select the templates that should be available for the site.
- Update parameters.yml with the following lines
version: [RELEASE_VERSION] itk_log_version: 1 itk_log_error_callback: /api/error itk_log_log_to_console: false itk_log_log_level: all
- Update app/config.js needs to have the new log lines added
"version": "[RELEASE_VERSION]", "itkLog": { "version": "1", "errorCallback": "https://admin-[client name].aroskanalen.dk/api/error", "logToConsole": false, "logLevel": "error" }
- Node modules upgrade (update.sh)
Steps
- ./update.sh
- redis-cli -> select [DB] -> FLUSHALL
- Restart the supervisor service.
- Push content in admin app/console ik:push --force
- No updates required-