Allow raw sql in create_table (used for foreign keys).
This commit is contained in:
@@ -349,6 +349,7 @@ constraint_sql(Constraint) ->
|
||||
unique -> "UNIQUE";
|
||||
not_null -> "NOT NULL";
|
||||
{default, DefaultValue} -> ["DEFAULT ", value_to_sql(DefaultValue)];
|
||||
{raw, S} when is_list(S) -> S;
|
||||
_ when is_list(Constraint) -> map_intersperse(fun constraint_sql/1, Constraint, " ")
|
||||
end.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user