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.

18 lines
445B

  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. use common\models\DeveloppementPriorite ;
  5. class m171227_090138_champs_priorite_developpement extends Migration {
  6. public function up() {
  7. $this->addColumn('developpement_priorite','priorite',Schema::TYPE_STRING.' DEFAULT \''.DeveloppementPriorite::PRIORITE_NORMALE.'\'');
  8. }
  9. public function down() {
  10. $this->dropColumn('developpement_priorite','priorite');
  11. }
  12. }