mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-07-13 17:21:35 +02:00
fix: missing filename column after migration
This commit is contained in:
@@ -887,7 +887,8 @@ class Library:
|
||||
suffix VARCHAR NOT NULL,
|
||||
date_created DATETIME,
|
||||
date_modified DATETIME,
|
||||
date_added DATETIME, filename TEXT NOT NULL DEFAULT '',
|
||||
date_added DATETIME,
|
||||
filename TEXT NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE (path)
|
||||
)
|
||||
@@ -897,8 +898,9 @@ class Library:
|
||||
# transfer data to new table
|
||||
session.execute(
|
||||
text("""
|
||||
INSERT INTO entries_new (id, path, suffix, date_created, date_modified, date_added)
|
||||
SELECT id, path, suffix, date_created, date_modified, date_added
|
||||
INSERT INTO entries_new (id, path, suffix, date_created, date_modified, date_added,
|
||||
filename)
|
||||
SELECT id, path, suffix, date_created, date_modified, date_added, filename
|
||||
FROM entries
|
||||
""")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user