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 7c8c88c commit 7faf98d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/QueuesFluentDriver/JobModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class JobModel: Model {

/// The unique Job uuid
@ID(key: .id)
public var id: UUID?
var id: UUID?

/// The Job key
@Field(key: "key")
Expand Down
2 changes: 1 addition & 1 deletion Sources/QueuesFluentDriver/JobModelMigrate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public struct JobModelMigrate: Migration {
public func prepare(on database: Database) -> EventLoopFuture<Void> {
let model = FluentQueue.model
return database.schema(JobModel.schema)
.field(model.$id.key, .uuid, .identifier(auto: false))
.id()
.field(model.$key.key, .string, .required)
.field(model.$data.key, .json, .required)
.field(model.$state.key, .string, .required)
Expand Down
1 change: 0 additions & 1 deletion Sources/QueuesFluentDriver/PopQueries/MySQLPopQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ final class MySQLPop : PopQueryProtocol {
var id: UUID?
return database.execute(sql: select) { (row) -> Void in
id = try? row.decode(column: "\(FluentQueue.model.$id.key)", as: UUID.self)
print("••• columns: \(row.allColumns), id=\(id)")
}
.flatMap {
if (id != nil) {
Expand Down

0 comments on commit 7faf98d

Please sign in to comment.