Skip to content

Commit

Permalink
Feature string foreign key (#169)
Browse files Browse the repository at this point in the history
* remove unique in foreign
  • Loading branch information
itsumura-h authored Sep 9, 2021
1 parent 2a9d591 commit 365b5af
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/allographer/schema_builder/column.nim
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,13 @@ proc foreign*(self:Column, name:string):Column =
self.name = name
self.previousName = name
self.typ = rdbForeign
self.isUnique = true
self.isIndex = true
return self

proc strForeign*(self:Column, name:string, length=255):Column =
self.name = name
self.previousName = name
self.typ = rdbStrForeign
self.isUnique = true
self.isIndex = true
self.info = %*{"maxLength": length}
return self
Expand Down

0 comments on commit 365b5af

Please sign in to comment.