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_155827_table_points_vente.php 387B

8 years ago
1234567891011121314151617181920212223
  1. <?php
  2. use yii\db\Schema;
  3. use yii\db\Migration;
  4. class m150318_155827_table_points_vente extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->createTable('point_vente', [
  9. 'id' => 'pk',
  10. 'nom' => Schema::TYPE_STRING . ' NOT NULL',
  11. 'adresse' => Schema::TYPE_TEXT,
  12. ]);
  13. }
  14. public function down()
  15. {
  16. $this->dropTable('point_vente');
  17. }
  18. }