You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\mysql\Schema;
  4. class m191218_142414_tiller extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->addColumn('producer', 'tiller', Schema::TYPE_BOOLEAN) ;
  9. $this->addColumn('producer', 'tiller_provider_token', Schema::TYPE_STRING) ;
  10. $this->addColumn('producer', 'tiller_restaurant_token', Schema::TYPE_STRING) ;
  11. }
  12. public function down()
  13. {
  14. $this->dropColumn('producer', 'tiller') ;
  15. $this->dropColumn('producer', 'tiller_provider_token') ;
  16. $this->dropColumn('producer', 'tiller_restaurant_token') ;
  17. }
  18. }