mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-23 18:36:16 +00:00
15 lines
404 B
Go
15 lines
404 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
|
|
}
|