Fix 21_to_22 with if exists.
This commit is contained in:
parent
b8e64056fb
commit
cd8aad63b9
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue