hmn/migration/migrationTemplate.txt

35 lines
522 B
Plaintext

package migrations
import (
"time"
"git.handmade.network/hmn/hmn/migration/types"
"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%
}
func (m %NAME%) Up(tx pgx.Tx) error {
panic("Implement me")
}
func (m %NAME%) Down(tx pgx.Tx) error {
panic("Implement me")
}