<?php

use Phalcon\Mvc\Model\Migration;

class AlterTableKorsupgahPeriodeMigration_509 extends Migration {
    public function up() {
        self::$connection->execute("
            ALTER TABLE jaga.korsupgah_periode
                ADD COLUMN IF NOT EXISTS pic_verif_started_at timestamp(6) without time zone,
                ADD COLUMN IF NOT EXISTS pic_verif_ended_at timestamp(6) without time zone;
        ");
    }

    public function down() {
        self::$connection->execute("
            ALTER TABLE jaga.korsupgah_periode
                DROP COLUMN IF EXISTS pic_verif_started_at,
                DROP COLUMN IF EXISTS pic_verif_ended_at;
        ");
    }
}