fix: use create if not exists clause for indexes (#20728)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2025-08-07 03:27:33 +05:30
committed by GitHub
parent 9c8c52874a
commit f1c494ef97
10 changed files with 22 additions and 17 deletions

View File

@@ -701,7 +701,7 @@ typedef $$RemoteExifEntityTableProcessedTableManager =
>;
i0.Index get idxLatLng => i0.Index(
'idx_lat_lng',
'CREATE INDEX idx_lat_lng ON remote_exif_entity (latitude, longitude)',
'CREATE INDEX IF NOT EXISTS idx_lat_lng ON remote_exif_entity (latitude, longitude)',
);
class $RemoteExifEntityTable extends i2.RemoteExifEntity