Skip to content

Testing method support #7

@glerchundi

Description

@glerchundi

What do you think about adding a method that executes just after the migration step and before increasing the current migration version? Mainly to be sure that everything worked as expected.

Something like:

&migrator.Migration{
	Name: "my migration",
	Func: func(tx *sql.Tx) error {
		// add migration logic here.
	},
	TestFunc: func(tx *sql.Tx) error {
		// add testing logic here.
        },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions