Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
m-barthelemy committed Apr 6, 2020
1 parent 7faf98d commit fdca2df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Sources/QueuesFluentDriver/JobModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ class JobModel: Model {


init(id: UUID, key: String, data: JobData? = nil) {
print("•••••• new job id=\(id)")
self.id = id
self.key = key
self.data = data
//self.data = data
self.state = .initial
}
}
2 changes: 1 addition & 1 deletion Sources/QueuesFluentDriver/JobModelMigrate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct JobModelMigrate: Migration {
return database.schema(JobModel.schema)
.id()
.field(model.$key.key, .string, .required)
.field(model.$data.key, .json, .required)
.field(model.$data.key, .json) //, .required)
.field(model.$state.key, .string, .required)
.field(model.$createdAt.path.first!, .datetime)
.field(model.$updatedAt.path.first!, .datetime)
Expand Down

0 comments on commit fdca2df

Please sign in to comment.