gorm/internal/migrations/migrate.go
2025-08-21 05:32:26 +07:00

18 lines
316 B
Go

package migrations
import "fmt"
func MigrateAll() {
fmt.Println("Running migrations...")
UpUser()
// Add other migrations here
fmt.Println("Migrations completed!")
}
func RollbackAll() {
fmt.Println("Rolling back migrations...")
DownUser()
// Add other rollbacks here
fmt.Println("Rollback completed!")
}