# README
Notes
- Node operators do not always run their migrations with
super user priviledges so you cannot use
CREATE EXTENSION
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
New returns a new Gormigrate.
No description provided by the author
# Constants
MaxIndividualMigrationTime is the maximum amount of time a single migration is allowed to take before declaring it a failure.
# Variables
DefaultOptions can be used if you don't want to think about options.
ErrMigrationIDDoesNotExist is returned when migrating or rolling back to a migration ID that does not exist in the list of migrations.
ErrMissingID is returned when the ID od migration is equal to "".
ErrNoMigrationDefined is returned when no migration is defined.
ErrNoRunMigration is returned when any run migration was found while running RollbackLast.
ErrRollbackImpossible is returned when trying to rollback a migration that has no rollback function.
ErrUnknownPastMigration is returned if a migration exists in the DB that doesn't exist in the code.
No description provided by the author
# Structs
DuplicatedIDError is returned when more than one migration have the same ID.
Gormigrate represents a collection of all migrations of a database schema.
Copy this here to avoid a direct job.Job reference which could change and break the migration.
Migration represents a database migration (a modification to be made on the database).
Options define options for all migrations.
ReservedIDError is returned when a migration is using a reserved ID.
# Type aliases
InitSchemaFunc is the func signature for initializing the schema.
MigrateFunc is the func signature for migrating.
RollbackFunc is the func signature for rollbacking.