fixed issue with calculating dates, added api for posting a game to the server
This commit is contained in:
@@ -18,15 +18,20 @@ import Fluent
|
||||
// }
|
||||
//}
|
||||
|
||||
struct AddCODGame: Migration {
|
||||
struct AddCODGame2: Migration {
|
||||
|
||||
|
||||
func prepare(on database: Database) -> EventLoopFuture<Void> {
|
||||
return database.schema("match").field("codGame",.string).create()
|
||||
}
|
||||
return database.schema("match")
|
||||
.field("codGame",.string)
|
||||
.field("notes",.string)
|
||||
.field("players",.string)
|
||||
.update()
|
||||
|
||||
}
|
||||
|
||||
func revert(on database: Database) -> EventLoopFuture<Void> {
|
||||
return database.schema("matches").delete()
|
||||
return database.schema("match23es").delete()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user