db = 'db'; parent::init(); } public function safeUp() { $tableOptions = 'ENGINE=InnoDB'; $this->createTable( '{{%reaction_button}}', [ 'id'=> $this->primaryKey()->unsigned(), 'counter'=> $this->text()->notNull()->comment('Счётчики json'), 'type'=> $this->string(32)->notNull()->comment('Метка для разных разделов'), ],$tableOptions ); } public function safeDown() { $this->dropTable('{{%reaction_button}}'); } }