v3

package
v5.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator struct {
	SQL *sqlx.DB
}

Migrator represents the database migrator that should be used to migrate from v2 of the database to v3

func NewMigrator

func NewMigrator(db *postgresql.Database) *Migrator

func (*Migrator) Migrate

func (db *Migrator) Migrate() error

Migrate implements database.Migrator

func (*Migrator) PrepareMigration

func (db *Migrator) PrepareMigration() error

PrepareMigration prepares the database for the migration by renaming the old tables and creating the new ones

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL