db->schema->getTableSchema('qimall_order_reserve', true)->getColumn('attr_id')) { $this->execute("ALTER TABLE `qimall_order_reserve` ADD COLUMN `attr_id` INT(11) NOT NULL DEFAULT '0';"); } } /** * {@inheritdoc} */ public function safeDown() { echo "M240726015927ReserveOrderAddAttrId cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M240726015927ReserveOrderAddAttrId cannot be reverted.\n"; return false; } */ }