MCPcopy
hub / github.com/SigNoz/signoz / SQLMigration

Interface SQLMigration

pkg/sqlmigration/sqlmigration.go:12–22  ·  view source on GitHub ↗

SQLMigration is the interface for a single migration.

Source from the content-addressed store, hash-verified

10
11// SQLMigration is the interface for a single migration.
12type SQLMigration interface {
13 // Register registers the migration with the given migrations. Each migration needs to be registered
14 //in a dedicated `*.go` file so that the correct migration semantics can be detected.
15 Register(*migrate.Migrations) error
16
17 // Up runs the migration.
18 Up(context.Context, *bun.DB) error
19
20 // Down rolls back the migration.
21 Down(context.Context, *bun.DB) error
22}
23
24var (
25 OrgReference = "org"

Callers 8

RegisterMethod · 0.65
RegisterMethod · 0.65
RegisterMethod · 0.65
RegisterMethod · 0.65
RegisterMethod · 0.65
RegisterMethod · 0.65
RegisterMethod · 0.65
RegisterMethod · 0.65

Implementers 15

addAuthTokenpkg/sqlmigration/050_add_auth_token.go
updateUserInvitepkg/sqlmigration/043_update_user_invit
addUserDashboardPreferencepkg/sqlmigration/092_add_user_dashboar
addRoutePoliciespkg/sqlmigration/049_add_route_policy.
addRolepkg/sqlmigration/053_add_role.go
addDataMigrationspkg/sqlmigration/000_add_data_migratio
modifyOrgDomainpkg/sqlmigration/012_modify_org_domain
updateLicensepkg/sqlmigration/034_update_license.go
addPublicDashboardspkg/sqlmigration/052_add_public_dashbo
dropUserDeletedAtpkg/sqlmigration/076_drop_user_deleted
addFactorIndexespkg/sqlmigration/045_add_factor_indexe
createQuickFilterspkg/sqlmigration/030_create_quick_filt

Calls

no outgoing calls

Tested by

no test coverage detected