Revert "Add avatar field constraint to not be NULL"

This reverts commit ba86802fc0.
This commit is contained in:
Johannes Zellner
2021-07-07 18:41:34 +02:00
parent 38d8bad1e1
commit aafc22511b
2 changed files with 3 additions and 7 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 NOT NULL,
avatar MEDIUMBLOB,
locationJson TEXT, // { locations: [{ ip, userAgent, city, country, ts }] }
INDEX creationTime_index (creationTime),