Skip to content

Commit

Permalink
Bugfix e5386cf
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel-s committed Jul 26, 2016
1 parent 99364f4 commit a1d7f67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Database/Design/Ampersand/Prototype/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ plug2TableSpec plug
(BinSQL{}, _) -> []
(TblSQL{}, primFld) ->
case attUse primFld of
PrimaryKey _ -> ["PRIMARY KEY (`" <> (show . attName) primFld <> "`)" ]
PrimaryKey _ -> ["PRIMARY KEY (" <> (show . attName) primFld <> ")" ]
ForeignKey c -> fatal 195 ("ForeignKey "<>name c<>"not expected here!")
PlainAttr -> []
, tsEngn = dbEngine
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Design/Ampersand/Prototype/PHP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ plug2TableSpec plug
(BinSQL{}, _) -> []
(_, primAtt) ->
case attUse primAtt of
PrimaryKey _ -> [ "PRIMARY KEY (`"<>Text.pack (attName primAtt)<>"`)"]
PrimaryKey _ -> [ "PRIMARY KEY ("<>Text.pack (attName primAtt)<>")"]
ForeignKey c -> fatal 195 ("ForeignKey "<>name c<>"not expected here!")
PlainAttr -> []
, "InnoDB DEFAULT CHARACTER SET UTF8 DEFAULT COLLATE UTF8_BIN")
Expand Down

0 comments on commit a1d7f67

Please sign in to comment.