<?php

use Phalcon\Mvc\Model\Migration;

class KorsupgahTemplateTargetMigration_176 extends Migration
{
    public function up()
    {
        self::$connection->execute("
           CREATE TABLE jaga.korsupgah_template_target (
                id serial PRIMARY KEY,
                id_template INT NOT NULL,
                id_target 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_template_target
        ");
    }
}
