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.

29 line
632B

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