prep for casual tracking
This commit is contained in:
@@ -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()
|
||||
// }
|
||||
//}
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user