2021-03-10 05:43:34 +00:00
|
|
|
package migrations
|
|
|
|
|
|
|
|
import (
|
2021-04-27 01:49:46 +00:00
|
|
|
"context"
|
2021-03-10 05:43:34 +00:00
|
|
|
"time"
|
|
|
|
|
2021-03-11 03:39:24 +00:00
|
|
|
"git.handmade.network/hmn/hmn/src/migration/types"
|
2021-04-27 03:55:17 +00:00
|
|
|
"git.handmade.network/hmn/hmn/src/oops"
|
2021-03-10 05:43:34 +00:00
|
|
|
"github.com/jackc/pgx/v4"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
registerMigration(%NAME%{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type %NAME% struct{}
|
|
|
|
|
|
|
|
func (m %NAME%) Version() types.MigrationVersion {
|
|
|
|
return types.MigrationVersion(%DATE%)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m %NAME%) Name() string {
|
|
|
|
return "%NAME%"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m %NAME%) Description() string {
|
|
|
|
return %DESCRIPTION%
|
|
|
|
}
|
|
|
|
|
2021-04-23 04:07:44 +00:00
|
|
|
func (m %NAME%) Up(ctx context.Context, tx pgx.Tx) error {
|
2021-03-10 05:43:34 +00:00
|
|
|
panic("Implement me")
|
|
|
|
}
|
|
|
|
|
2021-04-23 04:07:44 +00:00
|
|
|
func (m %NAME%) Down(ctx context.Context, tx pgx.Tx) error {
|
2021-03-10 05:43:34 +00:00
|
|
|
panic("Implement me")
|
|
|
|
}
|