|
1234567891011121314151617181920212223242526272829303132 |
- <?php
-
- use yii\db\Schema;
- use yii\db\Migration;
-
- class m161012_074719_infos_boulanger extends Migration
- {
- public function up()
- {
- $this->addColumn('user', 'id_etablissement', Schema::TYPE_INTEGER) ;
- //$this->addColumn('user', 'nom_magasin', Schema::TYPE_STRING) ;
- //$this->addColumn('user', 'siret', Schema::TYPE_STRING) ;
- }
-
- public function down()
- {
- $this->dropColumn('user', 'id_etablissement') ;
- //$this->dropColumn('user', 'nom_magasin') ;
- //$this->dropColumn('user', 'siret') ;
- }
-
- /*
- // Use safeUp/safeDown to run migration code within a transaction
- public function safeUp()
- {
- }
-
- public function safeDown()
- {
- }
- */
- }
|