<?php

$config['sql_migration_table_exists'] = 'SELECT EXISTS (
                SELECT 1
                FROM   information_schema.tables
                WHERE  table_schema = \'public\'
                AND    table_name = \'migrations\'
                                          );';
$config['sql_create_migration_table'] = '
            CREATE TABLE "migrations" (
            "version" character varying NOT NULL,
             "apply_time" timestamptz NOT NULL DEFAULT now());
            ';

$config['sql_check_migration_is_done'] = 'SELECT * FROM migrations WHERE version = \'%s\'';

$config['sql_set_migration_as_completed'] = 'INSERT INTO migrations ("version") VALUES (\'%s\')';