token-validator: add suffixip and version in db
This commit is contained in:
parent
daa0e00619
commit
28d5aa8fca
3 changed files with 167 additions and 1 deletions
|
|
@ -123,6 +123,8 @@ CREATE TABLE IF NOT EXISTS student_tunnel_tokens(
|
|||
id_student INTEGER NOT NULL,
|
||||
time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
pubkey BLOB(50) DEFAULT NULL,
|
||||
suffixip INTEGER NOT NULL,
|
||||
version INTEGER NOT NULL,
|
||||
FOREIGN KEY(id_student) REFERENCES students(id_student)
|
||||
) DEFAULT CHARACTER SET = utf8 COLLATE = utf8_bin;
|
||||
`); err != nil {
|
||||
|
|
|
|||
Reference in a new issue