<?php

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

/**
 * Class ProdukMigration_139
 */
class ProdukMigration_139 extends Migration
{

    /**
     * Run the migrations
     *
     * @return void
     */
    public function up()
    {
        self::$connection->execute(
            'ALTER TABLE jaga.produk rename column id TO id_index;'
        );

        self::$connection->execute(
            'ALTER TABLE jaga.produk rename column uuid TO id'
        );
    }

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

    }

}
