diff options
author | sanine-a <sanine.not@pm.me> | 2023-05-10 14:15:30 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-05-10 14:15:30 -0500 |
commit | c4dbe6328640f8ac43518a642e77dec061bfdd03 (patch) | |
tree | d432f0c0522d946e9b42f39c8960a3b37f4af37d /db | |
parent | fd994ce631ce7244157f81678574e6bc420d0fcc (diff) |
add hacky command parser
Diffstat (limited to 'db')
-rw-r--r-- | db/db.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -119,7 +119,7 @@ func (p *Phlox) Create(filename string) error { insert into config values("hostaddress", "localhost:3333"); insert into config values("loginpage", ""); - create table users (userid integer not null primary key, username string, passwordhash string, salt string); + create table users (userid integer not null primary key, username string unique, passwordhash string, salt string); create table sessions (sessionid string not null primary key, userid integer, created string, modified string, foreign key(userid) references users(userid)); create table endpoints (endpointid integer not null primary key, name string, path string, address string); `) |