- <?php
-
- use yii\db\Schema;
- use yii\db\Migration;
-
- class m161014_084709_table_user_boulangerie extends Migration
- {
- public function up()
- {
- $this->createTable('user_etablissement', [
- 'id_user' => Schema::TYPE_INTEGER . ' NOT NULL',
- 'id_etablissement' => Schema::TYPE_INTEGER . ' NOT NULL',
- 'PRIMARY KEY (`id_user`, `id_etablissement`)'
- ]);
- }
-
- public function down()
- {
- $this->dropTable('user_etablissement');
- }
- }
|