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

m181226_100720_rename_column_subscription_date_begin.php 335B

12345678910111213141516
  1. <?php
  2. use yii\db\Migration;
  3. class m181226_100720_rename_column_subscription_date_begin extends Migration
  4. {
  5. public function up()
  6. {
  7. $this->renameColumn('subscription', 'date_debin', 'date_begin');
  8. }
  9. public function down()
  10. {
  11. $this->renameColumn('subscription', 'date_begin', 'date_debin') ;
  12. }
  13. }