Explorar el Código

Mettre à jour le titre du site

master
keun hace 8 años
padre
commit
5cd1cfa167
Se han modificado 2 ficheros con 32 adiciones y 3 borrados
  1. +1
    -3
      console/migrations/m161014_084709_table_user_boulangerie.php
  2. +31
    -0
      console/migrations/m161020_072119_champs_boulangerie.php

+ 1
- 3
console/migrations/m161014_084709_table_user_boulangerie.php Ver fichero

@@ -7,13 +7,11 @@ class m161014_084709_table_user_boulangerie extends Migration
{
public function up()
{
$this->createTable('user_boulangerie', [
'id' => 'pk',
'id_user' => Schema::TYPE_INTEGER . ' NOT NULL',
'id_boulangerie' => Schema::TYPE_INTEGER . ' NOT NULL',
'PRIMARY KEY (`id_user`, `id_boulangerie`)'
]);

}

public function down()

+ 31
- 0
console/migrations/m161020_072119_champs_boulangerie.php Ver fichero

@@ -0,0 +1,31 @@
<?php

use yii\db\Migration;

class m161020_072119_champs_boulangerie extends Migration
{
public function up()
{
$this->addColumn('user', 'logo', Schema::TYPE_STRING) ;
$this->addColumn('user', 'photo', Schema::TYPE_STRING) ;
$this->addColumn('user', 'description', Schema::TYPE_TEXT) ;
}

public function down()
{
$this->dropColumn('user', 'logo');
$this->dropColumn('user', 'photo');
$this->dropColumn('user', 'description');
}

/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}

public function safeDown()
{
}
*/
}

Cargando…
Cancelar
Guardar