this is my first post in this forum, so please be kind
I just started with Yii2 and it´s very cool so far. Everything works like a charm except the migration console tool.
When I use yii migration/create create_message I have a new file under console/migrations with a yii\db\Migration Object but the function up() is empty and I don´t know why?
When you create a migration it usually means you want to make some updates to your db that can be run later in other environments as well.
Thus, you have to enter your own command(s) into up() method that will make updates you need.
I suppose you used to some other approach before, as in Phalcon, for example, where creating a migration you’re getting a current state of your db, didn’t you?