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

m201126_090613_option_dashboard_date_start_end.php 608B

123456789101112131415161718192021
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. class m201126_090613_option_dashboard_date_start_end extends Migration
  5. {
  6. public function safeUp()
  7. {
  8. $this->addColumn('producer', 'option_dashboard_date_start', Schema::TYPE_DATE);
  9. $this->addColumn('producer', 'option_dashboard_date_end', Schema::TYPE_DATE);
  10. }
  11. public function safeDown()
  12. {
  13. $this->dropColumn('producer', 'option_dashboard_date_start');
  14. $this->dropColumn('producer', 'option_dashboard_date_end');
  15. return false;
  16. }
  17. }