module

Xerp::Store::Migrations

Constants

CURRENT_VERSION = 7

Class methods

apply_migration(db : DB::Database, version : Int32) : Nil

Applies a specific migration version.

Source
get_version(db : DB::Database) : Int32

Returns the current schema version.

Source
migrate!(db : DB::Database) : Nil

Runs all pending migrations on the database.

Source
set_version(db : DB::Database, version : Int32) : Nil

Sets the schema version.

Source