|
123456789101112131415161718192021 |
- <?php
-
- use yii\db\Schema;
- use yii\db\Migration;
-
- class m150403_141443_add_champs_user extends Migration
- {
- public function up()
- {
- $this->addColumn('user', 'nom', Schema::TYPE_STRING) ;
- $this->addColumn('user', 'prenom', Schema::TYPE_STRING) ;
- $this->addColumn('user', 'telephone', Schema::TYPE_STRING) ;
- }
-
- public function down()
- {
- $this->dropColumn('user', 'nom') ;
- $this->dropColumn('user', 'prenom') ;
- $this->dropColumn('user', 'telephone') ;
- }
- }
|