Skip to content

Commit

Permalink
add unique key to "key" field
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanDoggie committed Apr 29, 2020
1 parent c10fc4f commit 4b47a0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Fluent/Fluent+Sessions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public final class SessionRecord: Model {
.id()
.field("key", .string, .required)
.field("data", .json, .required)
.unique(on: "key")
.create()
}

Expand Down

0 comments on commit 4b47a0d

Please sign in to comment.