Skip to content

Commit

Permalink
use jsonb instead of json (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 authored Dec 13, 2019
1 parent 5d9b4ec commit 438031d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/FluentPostgresDriver/PostgresConverterDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ struct PostgresConverterDelegate: SQLConverterDelegate {
return SQLRaw("TIMESTAMPTZ")
case .double:
return SQLRaw("DOUBLE PRECISION")
case .json:
return SQLRaw("JSONB")
default:
return nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ final class FluentPostgresDriverTests: XCTestCase {
}
}

try? EventMigration().revert(on: self.db).wait()
try EventMigration().prepare(on: self.db).wait()
defer { try! EventMigration().revert(on: self.db).wait() }

Expand Down

0 comments on commit 438031d

Please sign in to comment.