tern_core

Module migration

Source

Structs§

  • An AppliedMigration is the information about a migration that completed successfully and it is also a row in the schema history table.
  • Name/version derived from the migration source filename.
  • The Migrations derived from the files in the source directory that need to be applied.
  • A SQL query.

Traits§

  • The “executor” type for the database backend ultimately responsible for issuing migration and schema history queries.
  • A single migration in a migration set.
  • The context in which a migration run occurs.
  • A type that is used to collect a MigrationSet – migrations that are not applied yet – which is used as the input to runner commands.
  • A helper trait for Migration.
  • A type that has a library of “administrative” queries that are needed during a migration run.