speed update, new table for cached stats
This commit is contained in:
@@ -9,6 +9,7 @@ struct CreateStatistics: Migration {
|
||||
.field("title", .string)
|
||||
.field("wins", .int)
|
||||
.field("losses", .int)
|
||||
|
||||
.create()
|
||||
}
|
||||
|
||||
@@ -19,6 +20,22 @@ struct CreateStatistics: Migration {
|
||||
}
|
||||
|
||||
|
||||
struct AddCodTrackerId: Migration {
|
||||
// Prepares the database for storing Galaxy models.
|
||||
func prepare(on database: Database) -> EventLoopFuture<Void> {
|
||||
database.schema("statistics")
|
||||
|
||||
.field("cod_tracker_id", .string)
|
||||
.update()
|
||||
}
|
||||
|
||||
// Optionally reverts the changes made in the prepare method.
|
||||
func revert(on database: Database) -> EventLoopFuture<Void> {
|
||||
database.schema("statistics").delete()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//struct CreateMatch: Migration {
|
||||
// func prepare(on database: Database) -> EventLoopFuture<Void> {
|
||||
|
||||
Reference in New Issue
Block a user