# Migration.newFunction.

new(migration_name::String, content::String = "") :: Void
new(cmd_args::Dict{String,Any}, config::Configuration.Settings) :: Void

Creates a new default migration file and persists it to disk in the configured Genie migrations folder.

source

# Migration.migration_hashFunction.

migration_hash() :: String

Computes a unique hash for a migration identifier.

source

# Migration.migration_file_nameFunction.

migration_file_name(migration_name::String) :: String
migration_file_name(cmd_args::Dict{String,Any}, config::Configuration.Settings) :: String

Computes the name of a new migration file.

source

# Migration.migration_module_nameFunction.

migration_module_name(underscored_migration_name::String) :: String

Computes the name of the module of the migration based on the input from the user (migration name).

source

# Migration.last_upFunction.

last_up() :: Void

Migrates up the last migration.

source

# Migration.last_downFunction.

last_down() :: Void

Migrates down the last migration.

source

# Migration.up_by_module_nameFunction.

up_by_module_name(migration_module_name::String; force::Bool = false) :: Void

Runs up the migration corresponding to migration_module_name.

source

# Migration.down_by_module_nameFunction.

down_by_module_name(migration_module_name::String; force::Bool = false) :: Void

Runs down the migration corresponding to migration_module_name.

source

# Migration.migration_by_module_nameFunction.

migration_by_module_name(migration_module_name::String) :: Nullable{DatabaseMigration}

Computes the migration that corresponds to migration_module_name.

source

# Migration.all_migrationsFunction.

all_migrations() :: Tuple{Vector{String},Dict{String,DatabaseMigration}}

Returns the list of all the migrations.

source

# Migration.last_migrationFunction.

last_migration() :: DatabaseMigration

Returns the last created migration.

source

# Migration.run_migrationFunction.

run_migration(migration::DatabaseMigration, direction::Symbol; force = false) :: Void

Runs migration in up or down, per directon. If force is true, the migration is run regardless of its current status (already up or down).

source

# Migration.store_migration_statusFunction.

store_migration_status(migration::DatabaseMigration, direction::Symbol) :: Void

Persists the direction of the migration into the database.

source

# Migration.upped_migrationsFunction.

upped_migrations() :: Vector{String}

List of all migrations that are up.

source

# Migration.downed_migrationsFunction.

downed_migrations() :: Vector{String}

List of all migrations that are down.

source

# Migration.statusFunction.

status() :: Void

Prints a table that displays the direction of each migration.

source

# Migration.all_with_statusFunction.

all_with_status() :: Tuple{Vector{String},Dict{String,Dict{Symbol,Any}}}

Returns a list of all the migrations and their status.

source

# Migration.all_downFunction.

all_down() :: Void

Runs all migrations down.

source

# Migration.all_upFunction.

all_up() :: Void

Runs all migrations up.

source