execute($sql); $sql="update qimall_mall set is_show_copyright = 1 where is_show_copyright = 0;"; $this->execute($sql); }catch (\Exception $e){ } } /** * {@inheritdoc} */ public function safeDown() { echo "M230113070014ChangeIsShowCopyrightDefaultQimallMall cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M230113070014ChangeIsShowCopyrightDefaultQimallMall cannot be reverted.\n"; return false; } */ }