Skip to content

Commit

Permalink
Remove custom sql type from mysql token table
Browse files Browse the repository at this point in the history
See #57
  • Loading branch information
Alberto Coletta committed Jun 5, 2019
1 parent ebcb853 commit 0555df4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ class MySqlSlickAccessTokenAuthenticationDomain[F[_]: FutureLift[?[_], Future]](
def id = column[Int]("id", O.PrimaryKey, O.AutoInc)
def ref = column[String]("ref")
def token = column[String]("token", O.Length(255))
def expiresAt =
column[Timestamp]("expires_at", O.SqlType("timestamp not null default CURRENT_TIMESTAMP"))
def expiresAt = column[Timestamp]("expires_at")

def uniqueTokenIdx = index("unique_token_idx", token, unique = true)

Expand Down

0 comments on commit 0555df4

Please sign in to comment.