您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

m150318_155827_table_points_vente.php 387B

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. }