mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 06:42:01 +08:00

### Summary feat(.): initialize all factories #### Related Issues / PR's Removed all redundant commits of https://github.com/SigNoz/signoz/pull/6843 Closes https://github.com/SigNoz/signoz/pull/6782
14 lines
403 B
Go
14 lines
403 B
Go
package sqlmigrator
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// SQLMigrator is the interface for the SQLMigrator.
|
|
type SQLMigrator interface {
|
|
// Migrate migrates the database. Migrate acquires a lock on the database and runs the migrations.
|
|
Migrate(context.Context) error
|
|
// Rollback rolls back the database. Rollback acquires a lock on the database and rolls back the migrations.
|
|
Rollback(context.Context) error
|
|
}
|