Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 3.29 KB

UPGRADING.md

File metadata and controls

77 lines (59 loc) · 3.29 KB

Upgrading

to 5.10

  • Twig Debug mode (tbd)
  • set PHP_CS_FIXER_IGNORE_ENV=1 in testing container
  • adjust Makefile
    • add config .php-cs-fixer.php
    • liniting without path option in command
  • adjust Codeception configurations
    • rename log to output
    • move bootstrap to root section (codeception.yml)
    • rename class_name to actor (suite.yml(s))
    • adjust XDEBUG_MODE=develop,coverage
    • remove JSON and TAP loggers
    • disable yii2-debug module, see yiisoft/yii2-debug#372 (comment)

to 5.9

  • set XDEBUG_MODE=develop,coverage in tests

5.4/5.5 to 5.6

  • upgrade "wikimedia/composer-merge-plugin": "~2.0"
  • add "ap": { "type": "composer", "url": "https://asset-packagist.org" } to repositories section in composer.json
  • disable fxp/asset-plugin eg. "enabled": false
  • make sure you have a Public role, which is a child of Default and Guest (dmstr/yii2-web:>=1.1.1)

5.3 to 5.4

  • set ENV COMPOSER=/app/composer.json or ENV COMPOSER=/app/project/composer.json in project Dockerfile
  • adjust merge path "src/composer.phd5.json" in project composer.json
  • adjust config path src/config/ to config/ eg. in tests
  • adjust bower and npm aliases/path in config and composer.json
    • "npm-asset-library": "../vendor/npm-asset"
    • "bower-asset-library": "../vendor/bower-asset"
  • register empty register_shutdown_function for unit and functional tests, see also
    • tests/codeception/mock_register_shutdown_function.php
    • tests/codeception/functional/_bootstrap.php
    • tests/codeception/unit/_bootstrap.php
  • default value for APP_ADMIN_EMAIL removed, must be set in project
  • image startup command has been changed from forego to supervisord
  • update namespaces for RbacMigration, which has been extracted into separate package dmstr/yii2-rbac-migration
  • make sure to assign FileflyDefault to Editor and FileflyAdmin to Master

5.2 to 5.3

  • upgrade "wikimedia/composer-merge-plugin": "^1.4.1" when using phd5-template
  • update helper function E2eTester::login with updated CSS selectors

5.1 to 5.2

  • Move param yii.migrations to MigrateController migrationPath

5.0 to 5.1

  • added host-volume for src/ in test stack
  • added setting app.assets > settingsAssetList
    • use dmstr\modules\prototype\assets\DbAsset for LESS Themes
    • see thomaspark/bootswatch#573 in case of variable @path is undefined
  • added application configuration parameter backend.iframe.name for Backend toolbar
  • local filesystem fs has been renamed to fsLocal
  • removed default configuration for guide and help (update backend tests)
  • remove RUN cp src/app.env-dist src/app.env in Dockerfile [phd5-template]
  • remove manual setting of PHP_USER_ID (correct value is applied on the base-image according to the Docker image OS)
  • use environment variables with prefix i.e. DB_ENV_...

5.0.0-beta to 5.0

  • add "wikimedia/composer-merge-plugin": "~1.3.1"; must be a local package (not global)
  • remove "romka-chev/yii2-swiper": "^2.0", due to composer conflicts with asset-plugin
  • MYSQL_ROOT_PASSWORD has been deprecated, use DB_ENV_MYSQL_ROOT_PASSWORD
  • add APP_AUDIT_DISABLE_ALL_ACTIONS=1

4.1.0 to 5.0.0-beta

Not supported