Fix missing default
This commit is contained in:
parent
ccbc99bbcc
commit
03728447ef
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import sys
|
||||||
def migration_0_to_1(db_path: str):
|
def migration_0_to_1(db_path: str):
|
||||||
db = sqlite3.connect(db_path, detect_types=sqlite3.PARSE_DECLTYPES)
|
db = sqlite3.connect(db_path, detect_types=sqlite3.PARSE_DECLTYPES)
|
||||||
db_cursor = db.cursor()
|
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.commit()
|
||||||
db.close()
|
db.close()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue