prep for casual tracking

This commit is contained in:
Michael Simard
2021-08-01 10:38:53 -05:00
parent 1614c57268
commit 7aeff143d2
5 changed files with 56 additions and 8 deletions

View File

@@ -18,14 +18,14 @@ import Fluent
// }
//}
struct AddCODGame2: Migration {
struct AddCasual:Migration{
func prepare(on database: Database) -> EventLoopFuture<Void> {
return database.schema("match")
.field("codGame",.string)
.field("notes",.string)
.field("players",.string)
.field("competitive",.bool)
.field("gameMode",.int)
.update()
}
@@ -35,3 +35,21 @@ struct AddCODGame2: Migration {
}
}
//struct AddCODGame2: Migration {
//
//
// func prepare(on database: Database) -> EventLoopFuture<Void> {
// return database.schema("match")
// .field("codGame",.string)
// .field("notes",.string)
// .field("players",.string)
// .update()
//
// }
//
// func revert(on database: Database) -> EventLoopFuture<Void> {
// return database.schema("match23es").delete()
// }
//}
//