<?php

use Phalcon\Mvc\Model\Migration;

class ApiTokenMigration_440 extends Migration {
    public function up()
    {
        $this->down();

        self::$connection->execute("
            CREATE TABLE jaga.api_token (
              api_name varchar(255),
              token text,
              created_at timestamp without time zone NOT NULL DEFAULT now()
            );
        ");
    }

    public function down()
    {
        self::$connection->execute("
            DROP TABLE IF EXISTS jaga.api_token;
        ");
    }
}
