execute($sql); } catch (\Exception $e) { \Yii::error('qimall_attachment表添加字段报错' . $e->getMessage()); } } /** * {@inheritdoc} */ public function safeDown() { echo "M220915035028AddOldNameColumnToQimallAttachment cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M220915035028AddOldNameColumnToQimallAttachment cannot be reverted.\n"; return false; } */ }