module Micrate

Defined in:

micrate.cr
micrate/cli.cr
micrate/db.cr
micrate/migration.cr
micrate/statement_builder.cr
micrate/version.cr

Constant Summary

VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.connection_url=(connection_url) #

[View source]
def self.create(name, dir, time) #

[View source]
def self.db_dir #

[View source]
def self.dbversion(db) #

[View source]
def self.down(db) #

[View source]
def self.extract_dbversion(rows) #

The most recent record for each migration specifies whether it has been applied or rolled back. The first version we find that has been applied is the current version.


[View source]
def self.migrate(all_migrations, current, target, db) #

[View source]
def self.migration_plan(all_versions, current, target, direction) #

[View source]
def self.migration_status(db) #

[View source]
def self.migrations_by_version #

[View source]
def self.migrations_dir #

[View source]
def self.previous_version(current, all_versions) #

[View source]
def self.redo(db) #

[View source]
def self.up(db) #

[View source]