<?php

use Phalcon\Mvc\Model\Migration;

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