mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 00:17:32 +00:00

# Which Problems Are Solved 1. there was no embedded database to run tests against 2. there were no tests for postgres/migrate 3. there was no test setup for repository which starts a client for the embedded database # How the Problems Are Solved 1. postgres/embedded package was added 2. tests were added 3. TestMain was added incl. an example test # Additional Changes none # Additional Context closes #9934 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
10 lines
210 B
Go
10 lines
210 B
Go
package database
|
|
|
|
import "context"
|
|
|
|
type Migrator interface {
|
|
// Migrate executes migrations to setup the database.
|
|
// The method can be called once per running Zitadel.
|
|
Migrate(ctx context.Context) error
|
|
}
|