<?php

use Phalcon\Mvc\Model\Migration;

class IndikatorKomponenPancekMigration_384 extends Migration
{
    public function up()
    {
        $this->down();

        $sql = file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'pancek_indikator_insert.sql');
        self::$connection->execute($sql);

        $sql = file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'pancek_komponen_indikator_insert.sql');
        self::$connection->execute($sql);
    }

    public function down()
    {
        self::$connection->execute('
            TRUNCATE TABLE jaga.pancek_indikator RESTART IDENTITY;
            TRUNCATE TABLE jaga.pancek_komponen_indikator RESTART IDENTITY;
        ');
    }
}
