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

33 行
832B

  1. <?php
  2. use yii\db\Schema;
  3. use yii\db\Migration;
  4. class m161113_155900_systeme_paiement extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->addColumn('etablissement', 'date_creation', Schema::TYPE_DATETIME.' NOT NULL DEFAULT CURRENT_TIMESTAMP') ;
  9. $this->addColumn('etablissement', 'date_paiement', Schema::TYPE_DATETIME) ;
  10. $this->addColumn('etablissement', 'gratuit', Schema::TYPE_BOOLEAN.' DEFAULT 0') ;
  11. }
  12. public function down()
  13. {
  14. $this->dropColumn('etablissement', 'date_creation') ;
  15. $this->dropColumn('etablissement', 'date_paiement') ;
  16. $this->dropColumn('etablissement', 'gratuit') ;
  17. }
  18. /*
  19. // Use safeUp/safeDown to run migration code within a transaction
  20. public function safeUp()
  21. {
  22. }
  23. public function safeDown()
  24. {
  25. }
  26. */
  27. }