Skip to content

Commit

Permalink
Merge pull request #33 from vapor/fluent-17
Browse files Browse the repository at this point in the history
fluent updates
  • Loading branch information
tanner0101 authored Mar 15, 2017
2 parents 85ffe07 + 5e9bd94 commit dbc0154
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion Sources/FluentMySQL/MySQLDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ extension MySQL.Connection: Fluent.Connection {
public func schema(_ schema: Schema) throws {
let serializer = MySQLSerializer(sql: schema.sql)
let (statement, values) = serializer.serialize()

try mysql(statement, values)
}

Expand Down
4 changes: 3 additions & 1 deletion Sources/FluentMySQL/MySQLSerializer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ public final class MySQLSerializer: GeneralSQLSerializer {
return "DOUBLE"
case .bool:
return "TINYINT(1) UNSIGNED"
case .data:
case .bytes:
return "BLOB"
case .date:
return "DATETIME"
case .custom(let type):
return type
}
Expand Down
3 changes: 2 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ machine:
- mysql
test:
override:
- eval "$(curl -sL swift.vapor.sh/ci-3.1)"
- sudo sed -i 's/-fabi-version=2 -fno-omit-frame-pointer/ /g' /usr/lib/x86_64-linux-gnu/pkgconfig/mysqlclient.pc;
- eval "$(curl -sL swift.vapor.sh/ci-3.1)"

0 comments on commit dbc0154

Please sign in to comment.