v2

package
v0.0.0-...-fdde37d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddCalculateLostForDisputeGameTable = gormigrate.Migration{
	ID: "v2",
	Migrate: func(tx *gorm.DB) error {
		type DisputeGame struct {
			CalculateLost bool `json:"calculate_lost" gorm:"type:tinyint(1);notnull;default:0"`
		}
		return tx.Table("dispute_game").AutoMigrate(&DisputeGame{})
	},
	Rollback: func(db *gorm.DB) error {
		return db.Migrator().DropColumn("dispute_game", "calculate_lost")
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL