import Fluent //struct CreateMatch: Migration { // func prepare(on database: Database) -> EventLoopFuture { // return database.schema("match") // .id() // .field("map", .string) // .field("win", .bool) // .field("date", .datetime) // .field("roundsWon", .int) // .field("roundsLost", .int) // // .create() // } // // func revert(on database: Database) -> EventLoopFuture { // return database.schema("matches").delete() // } //} struct AddCasual:Migration{ func prepare(on database: Database) -> EventLoopFuture { return database.schema("match") .field("competitive",.bool) .field("gameMode",.int) .update() } func revert(on database: Database) -> EventLoopFuture { return database.schema("match23es").delete() } } //struct AddCODGame2: Migration { // // // func prepare(on database: Database) -> EventLoopFuture { // return database.schema("match") // .field("codGame",.string) // .field("notes",.string) // .field("players",.string) // .update() // // } // // func revert(on database: Database) -> EventLoopFuture { // return database.schema("match23es").delete() // } //} //