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

m221013_085349_producer_add_field_latest_version.php 509B

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