Sfoglia il codice sorgente

[backend] Migration champs configuration Tiller

refactoring
parent
commit
f5b5a8630f
1 ha cambiato i file con 21 aggiunte e 0 eliminazioni
  1. +21
    -0
      console/migrations/m191218_142414_tiller.php

+ 21
- 0
console/migrations/m191218_142414_tiller.php Vedi File

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

use yii\db\Migration;
use yii\db\mysql\Schema;

class m191218_142414_tiller extends Migration
{
public function up()
{
$this->addColumn('tiller', 'tiller', Schema::TYPE_BOOLEAN) ;
$this->addColumn('tiller', 'tiller_provider_token', Schema::TYPE_STRING) ;
$this->addColumn('tiller', 'tiller_restaurant_token', Schema::TYPE_STRING) ;
}

public function down()
{
$this->dropColumn('tiller', 'tiller') ;
$this->dropColumn('tiller', 'tiller_provider_token') ;
$this->dropColumn('tiller', 'tiller_restaurant_token') ;
}
}

Loading…
Annulla
Salva