Fix missing default

This commit is contained in:
Gergely Hegedis 2023-03-27 20:15:01 +03:00 committed by GitHub
parent ccbc99bbcc
commit 03728447ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,10 +4,10 @@ import sys
def migration_0_to_1(db_path: str):
db = sqlite3.connect(db_path, detect_types=sqlite3.PARSE_DECLTYPES)
db_cursor = db.cursor()
db_cursor.execute("ALTER TABLE session ADD media_token TEXT NOT NULL;")
db_cursor.execute("ALTER TABLE session ADD media_token TEXT NOT NULL DEFAULT '';")
db.commit()
db.close()
if __name__ == "__main__":
print(sys.argv[1])
#migration_0_to_1(sys.argv[1])
#migration_0_to_1(sys.argv[1])