mirror of
https://github.com/pressly/goose.git
synced 2025-05-31 11:42:04 +00:00
18 lines
222 B
Go
18 lines
222 B
Go
package gomigrations
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/pressly/goose/v3"
|
|
)
|
|
|
|
func init() {
|
|
goose.AddMigration(up003, nil)
|
|
}
|
|
|
|
func up003(tx *sql.Tx) error {
|
|
q := "DELETE FROM foo"
|
|
_, err := tx.Exec(q)
|
|
return err
|
|
}
|