Fix 21_to_22 with if exists.

master
voussoir 2022-10-29 13:56:17 -07:00
parent b8e64056fb
commit cd8aad63b9
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 1 deletions

View File

@ -883,7 +883,7 @@ def upgrade_21_to_22(photodb):
m.go() m.go()
photodb.execute('DROP INDEX index_photos_override_filename') photodb.execute('DROP INDEX IF EXISTS index_photos_override_filename')
photodb.execute('CREATE INDEX IF NOT EXISTS index_photos_basename on photos(basename COLLATE NOCASE)') photodb.execute('CREATE INDEX IF NOT EXISTS index_photos_basename on photos(basename COLLATE NOCASE)')
def upgrade_all(data_directory): def upgrade_all(data_directory):