aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-18 09:52:46 +0100
committerlonkaars <l.leblansch@gmail.com>2021-03-18 09:52:46 +0100
commitebc8cff3b4f15242ebed2bacf3811606171c1a38 (patch)
tree7c7c2c3f19d780dace5b2020a6b05df380526eaa
parent8c5618c497045a87cd2d9c663e695aeab95d24d7 (diff)
remove avatar column from users table
-rw-r--r--api/auth/signup.py2
-rw-r--r--database/init_db.sql1
2 files changed, 1 insertions, 2 deletions
diff --git a/api/auth/signup.py b/api/auth/signup.py
index 210ba94..0cd7628 100644
--- a/api/auth/signup.py
+++ b/api/auth/signup.py
@@ -48,7 +48,7 @@ def index():
password_hash = passwords.password_hash(password)
registered = int( time.time() * 1000 )
- cursor.execute("insert into users values (?, ?, ?, NULL, NULL, ?, ?, \"[]\", FALSE, \"user\", \"{}\", NULL, \"online\") ",
+ cursor.execute("insert into users values (?, ?, ?, NULL, NULL, ?, ?, \"[]\", FALSE, \"user\", \"{}\", \"online\") ",
(user_id, username, email, password_hash, registered))
connection.commit()
diff --git a/database/init_db.sql b/database/init_db.sql
index d05af6e..cd52e2e 100644
--- a/database/init_db.sql
+++ b/database/init_db.sql
@@ -12,7 +12,6 @@ create table if not exists users (
verified_email boolean not null,
type text not null,
preferences text not null,
- avatar text,
presence text
);