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.

m150318_161325_production.php 398B

123456789101112131415161718192021222324
  1. <?php
  2. use yii\db\Schema;
  3. use yii\db\Migration;
  4. class m150318_161325_production extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->createTable('production', [
  9. 'id' => 'pk',
  10. 'date' => Schema::TYPE_DATE . ' NOT NULL',
  11. 'actif' => Schema::TYPE_BOOLEAN .' DEFAULT 0',
  12. ]);
  13. }
  14. public function down()
  15. {
  16. $this->dropTable('production');
  17. }
  18. }