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.

m150403_141443_add_champs_user.php 502B

8 yıl önce
123456789101112131415161718192021
  1. <?php
  2. use yii\db\Schema;
  3. use yii\db\Migration;
  4. class m150403_141443_add_champs_user extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->addColumn('user', 'nom', Schema::TYPE_STRING) ;
  9. $this->addColumn('user', 'prenom', Schema::TYPE_STRING) ;
  10. $this->addColumn('user', 'telephone', Schema::TYPE_STRING) ;
  11. }
  12. public function down()
  13. {
  14. $this->dropColumn('user', 'nom') ;
  15. $this->dropColumn('user', 'prenom') ;
  16. $this->dropColumn('user', 'telephone') ;
  17. }
  18. }