Fix 21_to_22 with if exists.

This commit is contained in:
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

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):