<?php

use Phalcon\Mvc\Model\Migration;

class StranasSurveyAnswerCommentMigration_180 extends Migration
{
    public function up()
    {
        self::$connection->execute('
        CREATE TABLE jaga.stranas_survey_answer_comment (
            id serial PRIMARY KEY,
            id_answer int NOT NULL,
            content text 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 IF EXISTS jaga.stranas_survey_answer_comment;
        ");
    }
}
