<?php

use Phalcon\Mvc\Model\Migration;

class AlterTableAttachmentsMigration_539 extends Migration {
    public function up()
    {
        self::$connection->execute("
            ALTER TABLE jaga.attachments
                ADD COLUMN IF NOT EXISTS presigned_url text,
                ADD COLUMN IF NOT EXISTS presigned_exp timestamp without time zone;
        ");
    }

    public function down()
    {
        self::$connection->execute("
            ALTER TABLE jaga.attachments
                DROP COLUMN IF EXISTS presigned_url,
                DROP COLUMN IF EXISTS presigned_exp;
        ");
    }
}
