<?php

use Phalcon\Mvc\Model\Migration;

class KorsupgahSurveyMigration_176 extends Migration
{
    public function up()
    {
        self::$connection->execute("
            CREATE TABLE jaga.korsupgah_survey (
                id serial PRIMARY KEY,
                id_periode INT NOT NULL,
                id_instansi INT NOT NULL,
                created_at timestamp(6) DEFAULT now(),
                updated_at timestamp(6) DEFAULT now(),
                deleted_at timestamp(6),
                created_by int,
                updated_by int	
            )");
    }

    public function down()
    {
        self::$connection->execute("
            DROP TABLE korsupgah_survey
        ");
    }
}
