Fixed event-dialog

This commit is contained in:
cdricms
2025-02-13 11:16:09 +01:00
parent c62fbcf85c
commit c65f3839db
3 changed files with 43 additions and 79 deletions

View File

@@ -0,0 +1,23 @@
package migrations
import (
"context"
"fmt"
"fr.latosa-escrima/core/models"
"github.com/uptrace/bun"
)
func init() {
Migrations.MustRegister(func(ctx context.Context, db *bun.DB) error {
fmt.Print(" [up migration] ")
_, err := db.NewDropColumn().
Model((*models.Event)(nil)).
ColumnExpr("status").
Exec(ctx)
return err
}, func(ctx context.Context, db *bun.DB) error {
fmt.Print(" [down migration] ")
return nil
})
}