<?php

use Phalcon\Db\Column;
use Phalcon\Db\Index;
use Phalcon\Db\Reference;
use Phalcon\Mvc\Model\Migration;

/**
 * Class RolesMigration_211
 */
class DiskusiLaporMigration_155 extends Migration
{
    /**
     * Run the migrations
     *
     * @return void
     */
    public function up()
    {
        self::$connection->execute("
            CREATE TABLE jaga.diskusi_lapor(
                id serial primary key,
                id_diskusi int not null,
                id_komentar int,
                id_kategori int not null,
                id_user int not null,
                isi text,
                status int not null,
                created_at timestamp(6) DEFAULT now(),
                updated_at timestamp(6) DEFAULT now(),
                deleted_at timestamp(6)
            );
        ");

    }

    /**
     * Reverse the migrations
     *
     * @return void
     */
    public function down()
    {
        self::$connection->execute('DROP TABLE jaga.diskusi_lapor');
    }

}
