<?php

use Phalcon\Mvc\Model\Migration;

class KorsupgahAnswerAttachmentMigration_181 extends Migration
{
    public function up()
    {
        self::$connection->execute("
            CREATE TABLE jaga.korsupgah_answer_attachment (
                id serial PRIMARY KEY,
                id_attachment INT NOT NULL,	
                id_answer INT NOT NULL,
                tipe 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_answer_attachment
        ");
    }
}
