Changed sqlcipher_codec_ctx_migrate to use VFS xDelete instead of standard library remove
This commit is contained in:
parent
df092f0a7a
commit
87c389ce04
|
@ -1165,7 +1165,7 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
|
|||
pDb->pBt = 0;
|
||||
pDb->pSchema = 0;
|
||||
sqlite3ResetAllSchemasOfConnection(db);
|
||||
remove(migrated_db_filename);
|
||||
db->pVfs->xDelete(db->pVfs, migrated_db_filename, 0);
|
||||
sqlite3_free(migrated_db_filename);
|
||||
} else {
|
||||
CODEC_TRACE(("*** migration failure** \n\n"));
|
||||
|
|
Loading…
Reference in New Issue