hmn/src/migration/migrationTemplate.txt

36 lines
579 B
Plaintext
Raw Normal View History

package migrations
import (
2021-04-27 01:49:46 +00:00
"context"
"time"
2021-03-11 03:39:24 +00:00
"git.handmade.network/hmn/hmn/src/migration/types"
2023-01-02 21:52:41 +00:00
"github.com/jackc/pgx/v5"
)
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 {
panic("Implement me")
}
2021-04-23 04:07:44 +00:00
func (m %NAME%) Down(ctx context.Context, tx pgx.Tx) error {
panic("Implement me")
}