SearchLight.Migration.new_table - Function
newtable(migration_name::String, resource::String) :: String

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

source


SearchLight.Migration.newtable - Function
newtable(migration_name::String, resource::String) :: String

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

source


new - Keyword
new, or new{A,B,...}

Special function available to inner constructors which creates a new object of the type. The form new{A,B,...} explicitly specifies values of parameters for parametric types. See the manual section on Inner Constructor Methods for more information.

source


SearchLight.Migration.migration_hash - Function
migration_hash() :: String

Computes a unique hash for a migration identifier.

source


SearchLight.Migration.migration_file_name - Function
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


SearchLight.Migration.migration_module_name - Function
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


SearchLight.Migration.last_up - Function
last_up(; force = false) :: Nothing

Migrates up the last migration. If force is true, the migration will be executed even if it's already up.

source


SearchLight.Migration.lastup - Function
last_up(; force = false) :: Nothing

Migrates up the last migration. If force is true, the migration will be executed even if it's already up.

source


SearchLight.Migration.last_down - Function
last_down() :: Nothing

Migrates down the last migration. If force is true, the migration will be executed even if it's already down.

source


SearchLight.Migration.lastdown - Function
last_down() :: Nothing

Migrates down the last migration. If force is true, the migration will be executed even if it's already down.

source


SearchLight.Migration.up - Function
up(migration_module_name::String; force::Bool = false) :: Nothing
up_by_module_name(migration_module_name::String; force::Bool = false) :: Nothing

Runs up the migration corresponding to migration_module_name.

source


SearchLight.Migration.down - Function
down(migration_module_name::String; force::Bool = false) :: Nothing
down_by_module_name(migration_module_name::String; force::Bool = false) :: Nothing

Runs down the migration corresponding to migration_module_name.

source


SearchLight.Migration.migration_by_module_name - Function
migration_by_module_name(migration_module_name::String) :: Union{Nothing,DatabaseMigration}

Computes the migration that corresponds to migration_module_name.

source


SearchLight.Migration.all_migrations - Function
all_migrations() :: Tuple{Vector{String},Dict{String,DatabaseMigration}}

Returns the list of all the migrations.

source


SearchLight.Migration.all - Function
all_migrations() :: Tuple{Vector{String},Dict{String,DatabaseMigration}}

Returns the list of all the migrations.

source


SearchLight.Migration.last_migration - Function
last_migration() :: DatabaseMigration

Returns the last created migration.

source


SearchLight.Migration.last - Function
last_migration() :: DatabaseMigration

Returns the last created migration.

source


SearchLight.Migration.run_migration - Function
run_migration(migration::DatabaseMigration, direction::Symbol; force = false) :: Nothing

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

run_migration(migration_name::AbstractString, direction::Symbol; force = false) :: Nothing

Runs the migration corresponding to migration_name in direction. If force is true, the migration is run regardless of its current status (already up or down).

##Arguments

  • migration_name::AbstractString: The migration module name.
  • direction::Symbol: The direction of the migration. Must be :up or :down.
  • force::Bool: If true, the migration is run regardless of its current status (already up or `down).

source


SearchLight.Migration.store_migration_status - Function
store_migration_status(migration::DatabaseMigration, direction::Symbol) :: Nothing

Persists the direction of the migration into the database.

source


SearchLight.Migration.upped_migrations - Function
upped_migrations() :: Vector{String}

List of all migrations that are up.

source


SearchLight.Migration.downed_migrations - Function
downed_migrations() :: Vector{String}

List of all migrations that are down.

source


SearchLight.Migration.status - Function
status() :: Nothing

Prints a table that displays the direction of each migration.

source


SearchLight.Migration.all_with_status - Function
all_with_status() :: Tuple{Vector{String},Dict{String,Dict{Symbol,Any}}}

Returns a list of all the migrations and their status.

source


SearchLight.Migration.all_down!! - Function
all_down!!() :: Nothing

Runs all migrations down.

source


SearchLight.Migration.all_up!! - Function
all_up!!() :: Nothing

Runs all migrations up.

source



Genie