<?php

use Phalcon\Mvc\Model\Migration;

class StranasBobotMigration_210 extends Migration
{
    public function up()
    {
        self::$connection->execute("ALTER TABLE jaga.stranas_fokus ADD COLUMN presentase_bobot INT");
        self::$connection->execute("ALTER TABLE jaga.stranas_aksi ADD COLUMN presentase_bobot INT");
        self::$connection->execute("ALTER TABLE jaga.stranas_subaksi ADD COLUMN presentase_bobot INT");
        self::$connection->execute("ALTER TABLE jaga.stranas_ukuran_keberhasilan ADD COLUMN presentase_bobot INT");
        self::$connection->execute("ALTER TABLE jaga.stranas_target ADD COLUMN presentase_bobot INT");
    }

    public function down()
    {
        self::$connection->execute("ALTER TABLE jaga.stranas_fokus DROP COLUMN presentase_bobot");
        self::$connection->execute("ALTER TABLE jaga.stranas_aksi DROP COLUMN presentase_bobot");
        self::$connection->execute("ALTER TABLE jaga.stranas_subaksi DROP COLUMN presentase_bobot");
        self::$connection->execute("ALTER TABLE jaga.stranas_ukuran_keberhasilan DROP COLUMN presentase_bobot");
        self::$connection->execute("ALTER TABLE jaga.stranas_target DROP COLUMN presentase_bobot");
    }

}