Created
February 21, 2014 14:14
-
-
Save BitPuffin/9135002 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc setup*(db: TDbConn) = | |
db.Exec(sql(""" | |
create table if not exists $#( | |
id $#, | |
email $# unique not null, | |
password $#, | |
username $# unique not null, | |
firstname $# not null, | |
lastname $# not null | |
) | |
""" % [tableName, TId, TEmail, TPassword, TUserName, TFirstName, TLastName])) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment