Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
FOREIGN_KEY return Pair<String, SqlType>
Browse files Browse the repository at this point in the history
  • Loading branch information
deva666 authored and yanex committed Oct 6, 2016
1 parent ae4cd16 commit 6d2d012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anko/library/static/sqlite/src/sqlTypes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ val TEXT: SqlType = SqlTypeImpl("TEXT")

val BLOB: SqlType = SqlTypeImpl("BLOB")

fun FOREIGN_KEY(columnName: String, referenceTable: String, referenceColumn: String): SqlType {
return SqlTypeImpl("FOREIGN KEY($columnName) REFERENCES $referenceTable($referenceColumn)")
fun FOREIGN_KEY(columnName: String, referenceTable: String, referenceColumn: String): Pair<String, SqlType> {
return "" to SqlTypeImpl("FOREIGN KEY($columnName) REFERENCES $referenceTable($referenceColumn)")
}

val PRIMARY_KEY: SqlTypeModifier = SqlTypeModifierImpl("PRIMARY KEY")
Expand Down

0 comments on commit 6d2d012

Please sign in to comment.