mirror of
https://github.com/pressly/goose.git
synced 2025-09-04 19:37:19 +00:00
21 lines
326 B
Go
21 lines
326 B
Go
package gomigrations
|
|
|
|
import (
|
|
"context"
|
|
"database/sql"
|
|
|
|
"github.com/pressly/goose/v3"
|
|
)
|
|
|
|
func init() {
|
|
goose.AddMigrationContext(up009, down009)
|
|
}
|
|
|
|
func up009(ctx context.Context, tx *sql.Tx) error {
|
|
return createTable(tx, "echo")
|
|
}
|
|
|
|
func down009(ctx context.Context, tx *sql.Tx) error {
|
|
return dropTable(tx, "echo")
|
|
}
|