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.

m190205_160337_produit_don_distrib.php 848B

1 jaar geleden
1 jaar geleden
1 jaar geleden
123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use yii\db\Migration;
  3. class m190205_160337_produit_don_distrib extends Migration {
  4. public function up() {
  5. /*$this->insert('product', [
  6. 'name' => 'Don',
  7. 'description' => 'Don à la plateforme distrib',
  8. 'recipe' => '',
  9. 'active' => 1,
  10. 'photo' => null,
  11. 'price' => 1,
  12. 'weight' => null,
  13. 'monday' => 1,
  14. 'tuesday' => 1,
  15. 'wednesday' => 1,
  16. 'thursday' => 1,
  17. 'friday' => 1,
  18. 'saturday' => 1,
  19. 'sunday' => 1,
  20. 'quantity_max' => null,
  21. 'id_producer' => 0,
  22. 'sale_mode' => 'unit',
  23. 'order' => 1000,
  24. ]);*/
  25. }
  26. public function down() {
  27. //$this->delete('product', 'name = \'Don\' AND id_producer = 0') ;
  28. }
  29. }