Pārlūkot izejas kodu

[backend] Migration champs configuration Tiller

refactoring
Guillaume Bourgeois pirms 5 gadiem
vecāks
revīzija
f5b5a8630f
1 mainītis faili ar 21 papildinājumiem un 0 dzēšanām
  1. +21
    -0
      console/migrations/m191218_142414_tiller.php

+ 21
- 0
console/migrations/m191218_142414_tiller.php Parādīt failu

@@ -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') ;
}
}

Notiek ielāde…
Atcelt
Saglabāt