You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
780B

  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. }