Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Init = &gormigrate.Migration{ ID: "20240624-init", Migrate: func(tx *gorm.DB) error { return tx.AutoMigrate( &models.Cert{}, &models.CertDNS{}, &models.CertUser{}, &models.Cron{}, &models.Database{}, &models.Monitor{}, &models.Plugin{}, &models.Setting{}, &models.Task{}, &models.User{}, &models.Website{}, ) }, Rollback: func(tx *gorm.DB) error { return tx.Migrator().DropTable( &models.Cert{}, &models.CertDNS{}, &models.CertUser{}, &models.Cron{}, &models.Database{}, &models.Monitor{}, &models.Plugin{}, &models.Setting{}, &models.Task{}, &models.User{}, &models.Website{}, ) }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.