<?php

use Phalcon\Db\Column;
use Phalcon\Db\Index;
use Phalcon\Db\Reference;
use Phalcon\Mvc\Model\Migration;

class AppVersionMigration_142 extends Migration
{
  /**
   * Define the table structure
   *
   * @return void
   */
  public function morph()
  {

  }

  /**
   * Run the migrations
   *
   * @return void
   */
  public function up()
  {
    self::$connection->execute(
      'ALTER TABLE jaga.app_version ALTER COLUMN artefact type varchar(100);'
    );

    $this->batchInsert('app_version', [
      'artefact',
      'app_ver',
      'recommend_upgrade',
      'force_upgrade'
    ]);
  }

  /**
   * Reverse the migrations
   *
   * @return void
   */
  public function down()
  {

  }

}
