|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
-
-
-
- use yii\db\Schema;
- use yii\db\Migration;
-
- class m161113_155900_systeme_paiement extends Migration
- {
- public function up()
- {
- $this->addColumn('etablissement', 'date_creation', Schema::TYPE_DATETIME.' NOT NULL DEFAULT CURRENT_TIMESTAMP') ;
- $this->addColumn('etablissement', 'date_paiement', Schema::TYPE_DATETIME) ;
- $this->addColumn('etablissement', 'gratuit', Schema::TYPE_BOOLEAN.' DEFAULT 0') ;
- }
-
- public function down()
- {
- $this->dropColumn('etablissement', 'date_creation') ;
- $this->dropColumn('etablissement', 'date_paiement') ;
- $this->dropColumn('etablissement', 'gratuit') ;
- }
-
-
-
- }
|