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.

31 satır
774B

  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. /**
  5. * Class m230905_091112_add_columns_dolibarr
  6. */
  7. class m230905_091112_add_columns_dolibarr extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $this->addColumn('producer', 'dolibarr_socid', Schema::TYPE_INTEGER);
  15. $this->addColumn('producer', 'dolibarr_product_id', Schema::TYPE_INTEGER);
  16. $this->addColumn('producer_price_range', 'dolibarr_product_id', Schema::TYPE_INTEGER);
  17. }
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function safeDown()
  22. {
  23. $this->dropColumn('producer', 'dolibarr_socid');
  24. $this->dropColumn('producer', 'dolibarr_product_id');
  25. $this->dropColumn('producer_price_range', 'dolibarr_product_id');
  26. }
  27. }