execute($sql); $sql = "ALTER TABLE `authors` ADD `show` INT UNSIGNED DEFAULT 0 COMMENT 'показывать страницу' AFTER `active`;COMMIT;"; $this->execute($sql); } /** * {@inheritdoc} */ public function safeDown() { echo "m230609_070938_author_ext cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "m230609_070938_author_ext cannot be reverted.\n"; return false; } */ }