Skip to content

Commit 8623b4f

Browse files
committed
set expires to text not null
1 parent 7059834 commit 8623b4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function initDatabase() {
3232
)',
3333
'CREATE TABLE IF NOT EXISTS jti (
3434
jti VARCHAR(255) NOT NULL PRIMARY KEY,
35-
expires TEXT
35+
expires TEXT NOT NULL
3636
)',
3737
'CREATE TABLE IF NOT EXISTS users (
3838
user_id VARCHAR(255) NOT NULL PRIMARY KEY,
@@ -43,7 +43,7 @@ function initDatabase() {
4343
'CREATE TABLE IF NOT EXISTS ipAttempts (
4444
ip VARCHAR(255) NOT NULL,
4545
type VARCHAR(255) NOT NULL,
46-
expires NOT NULL
46+
expires TEXT NOT NULL
4747
)',
4848
];
4949

0 commit comments

Comments
 (0)