This commit is contained in:
Mateusz779 2023-04-13 11:57:50 +02:00
parent e1a8e765ce
commit 139192199e

2
db.py
View File

@ -31,7 +31,7 @@ def connect():
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);""")
cur.execute("""
CREATE TABLE auth_tokens (
CREATE TABLE IF NOT EXISTS auth_tokens (
id SERIAL PRIMARY KEY,
user_id INTEGER NOT NULL REFERENCES users(id),
token VARCHAR(64) NOT NULL,