123456789101112131415 |
- package migrate
- import (
- "context"
- "golang-fave/engine/sqlw"
- )
- func Migrate_000000016(ctx context.Context, db *sqlw.DB, host string) error {
- if _, err := db.Exec(ctx, `ALTER TABLE shop_products ADD COLUMN price_old float(8,2) NOT NULL DEFAULT '0.00' AFTER price;`); err != nil {
- return err
- }
- return nil
- }
|