make loginLocationsJson mediumtext

it seems we overflow atleast in the demo cloudron
TEXT – 64KB (65,535 characters)
MEDIUMTEXT – 16MB (16,777,215 characters)
This commit is contained in:
Girish Ramakrishnan
2021-08-20 10:30:14 -07:00
parent a4b5219706
commit aa6b845c9c
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ CREATE TABLE IF NOT EXISTS users(
resetTokenCreationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
active BOOLEAN DEFAULT 1,
avatar MEDIUMBLOB NOT NULL,
locationJson TEXT, // { locations: [{ ip, userAgent, city, country, ts }] }
loginLocationsJson MEDIUMTEXT, // { locations: [{ ip, userAgent, city, country, ts }] }
INDEX creationTime_index (creationTime),
PRIMARY KEY(id));