|
12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
-
- use yii\db\Migration;
- use yii\db\Schema;
-
- class m161021_073634_table_etablissement extends Migration
- {
- public function up()
- {
- $this->createTable('etablissement', [
- 'id' => 'pk',
- 'nom' => Schema::TYPE_STRING . ' NOT NULL',
- 'siret' => Schema::TYPE_STRING . ' NOT NULL',
- 'logo' => Schema::TYPE_STRING,
- 'photo' => Schema::TYPE_STRING,
- 'description' => Schema::TYPE_TEXT,
- 'code_postal' => Schema::TYPE_STRING,
- 'ville' => Schema::TYPE_STRING,
- ]);
- }
-
- public function down()
- {
- $this->dropTable('etablissement') ;
- }
-
- /*
- // Use safeUp/safeDown to run migration code within a transaction
- public function safeUp()
- {
- }
-
- public function safeDown()
- {
- }
- */
- }
|