Migration error

Hello, busy learning Yii2 from this link: TutsPlus

I am using windows 10 and Wamp.

When I try to do migrate/up I get this error:

PHP Fatal Error ‘yii\base\ErrorException’ with message ‘Class ‘Schema’ not found’

Can someone please help?

Add the following line on top of the migration class.




use yii\db\Schema;



Thank you, I will try that