class Micrate::Migration

Defined in:

micrate/migration.cr

Constant Summary

SQL_CMD_PREFIX = "-- +micrate "

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(version : Int64, name : String, source : String) #

[View source]

Class Method Detail

def self.from_file(file_name) #

[View source]
def self.from_version(version) #

[View source]

Instance Method Detail

def ends_with_semicolon(s) #

[View source]
def name : String #

[View source]
def source : String #

[View source]
def statements(direction) #

Algorithm ported from Goose

Complex statements cannot be resolved by just splitting the script by semicolons. In this cases we allow using StatementBegin and StatementEnd directives as hints.


[View source]
def version : Int64 #

[View source]