Revert "Revert "Add avatar field constraint to not be NULL""

This reverts commit aafc22511b.
This commit is contained in:
Johannes Zellner
2021-07-07 18:50:09 +02:00
parent aafc22511b
commit be0c46ad8e
2 changed files with 7 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ CREATE TABLE IF NOT EXISTS users(
resetToken VARCHAR(128) DEFAULT "",
resetTokenCreationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
active BOOLEAN DEFAULT 1,
avatar MEDIUMBLOB,
avatar MEDIUMBLOB NOT NULL,
locationJson TEXT, // { locations: [{ ip, userAgent, city, country, ts }] }
INDEX creationTime_index (creationTime),