Skip to content

Commit

Permalink
remove unique in foreign (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsumura-h authored Sep 9, 2021
1 parent 365b5af commit 322bbae
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ proc foreignColumnGenerator*(name:string, isDefault:bool, default:int):string =

proc strForeignColumnGenerator*(name:string, maxLength:int, isDefault:bool, default:string):string =
result = &"`{name}` VARCHAR({maxLength})"
result.add(" UNIQUE")
if isDefault:
result.add(&" DEFAULT {default}")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ proc foreignColumnGenerator*(name:string, isDefault:bool, default:int):string =

proc strForeignColumnGenerator*(name:string, maxLength:int, isDefault:bool, default:string):string =
result = &"\"{name}\" VARCHAR({maxLength})"
result.add(" UNIQUE")
if isDefault:
result.add(&" DEFAULT {default}")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ proc foreignColumnGenerator*(name:string, isDefault:bool, default:int):string =

proc strForeignColumnGenerator*(name:string, isDefault:bool, default:string):string =
result = &"'{name}' VARCHAR"
result.add(" UNIQUE")
if isDefault:
result.add(&" DEFAULT {default}")

Expand Down

0 comments on commit 322bbae

Please sign in to comment.