SQLMigration is the interface for a single migration.
| 10 | |
| 11 | // SQLMigration is the interface for a single migration. |
| 12 | type 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 | |
| 24 | var ( |
| 25 | OrgReference = "org" |
no outgoing calls
no test coverage detected