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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 22 additions and 17 deletions

View file

@ -338,7 +338,7 @@ typedef $$LocalAssetEntityTableProcessedTableManager =
>;
i0.Index get idxLocalAssetChecksum => i0.Index(
'idx_local_asset_checksum',
'CREATE INDEX idx_local_asset_checksum ON local_asset_entity (checksum)',
'CREATE INDEX IF NOT EXISTS idx_local_asset_checksum ON local_asset_entity (checksum)',
);
class $LocalAssetEntityTable extends i3.LocalAssetEntity