您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

m181226_131915_rename_columns_saturday_point_sale.php 780B

1234567891011121314151617181920
  1. <?php
  2. use yii\db\Migration;
  3. class m181226_131915_rename_columns_saturday_point_sale extends Migration {
  4. public function up() {
  5. $this->renameColumn('point_sale', 'delivery_saterday', 'delivery_saturday') ;
  6. $this->renameColumn('point_sale', 'infos_saterday', 'infos_saturday') ;
  7. $this->renameColumn('subscription', 'saterday', 'saturday') ;
  8. $this->renameColumn('product', 'saterday', 'saturday') ;
  9. }
  10. public function down() {
  11. $this->renameColumn('point_sale', 'delivery_saturday', 'delivery_saterday') ;
  12. $this->renameColumn('point_sale', 'infos_saturday', 'infos_saterday') ;
  13. $this->renameColumn('subscription', 'saturday', 'saterday') ;
  14. $this->renameColumn('product', 'saturday', 'saterday') ;
  15. }
  16. }