|
123456789101112131415161718192021222324 |
- <?php
-
- use yii\db\Schema;
- use yii\db\Migration;
-
- class m150318_161325_production extends Migration
- {
- public function up()
- {
-
- $this->createTable('production', [
- 'id' => 'pk',
- 'date' => Schema::TYPE_DATE . ' NOT NULL',
- 'actif' => Schema::TYPE_BOOLEAN .' DEFAULT 0',
- ]);
-
- }
-
- public function down()
- {
- $this->dropTable('production');
- }
-
- }
|