Moutinho
Moutinho

Reputation: 349

Yii2 Upgrade version step by step

Im trying upgrade from version Yii 2.0.13 to the last version (2.0.23), but step by step, now need upgrade to 2.0.14 and next to 2.0.15 etc.. I follow the instructions in documentation and use this command, but the app upgrade automatically to the last version 2.0.23

composer require "yiisoft/yii2:~2.0.14" --update-with-dependencies

Upvotes: 1

Views: 2183

Answers (2)

rob006
rob006

Reputation: 22174

You don't need to upgrade step by step, you can upgrade Yii directly from 2.0.13 to 2.0.23. You need to follow all upgrade instructions for all versions between 2.0.13 and 2.0.23, but no need to install all versions between - you can install 2.0.23 directly and make all necessary upgrade changes in one step. This usually gives you less work and possible problems.

Upvotes: 1

disembarkedone
disembarkedone

Reputation: 51

you have "~" before "2.0.14" which tells composer to use a newer version up to but not including 3.0

do

composer require "yiisoft/yii2:2.0.14" --update-with-dependencies

instead

source: https://getcomposer.org/doc/articles/versions.md

Upvotes: 1

Related Questions