stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.67k stars 1.56k forks source link

Migrating swift 3 to 5, old db in app not reading #949

Closed gouravgupta72 closed 3 years ago

gouravgupta72 commented 5 years ago

Issues are used to track bugs and feature requests. Need help or have a general question? Ask on Stack Overflow (tag SQLite.swift).

Build Information

General guidelines

We are migrating from swift 3 to swift 5, for fresh install it's working, but if a user already has an app and we want to fetch data it is giving us an error that this is not a database file. While the same file is getting open in SQL reader.

ghost commented 4 years ago

@gouravgupta72 @stephencelis

I am using Xcode 11.3.1 and pod file as SQLite.swift/SQLCipher (0.12.2)

My Old version application was using 0.11.4.

For the new upgraded version of application for which I am working on, I have changed the SQLIte.swift/SQLCipher version as 0.12.2. But as mentioned in this issue decription #949 when doing upgrade, I am facing Database deletion error ---> file is not a database (code: 26)

Can you please let me know if you have any suggestions please?

jberkel commented 3 years ago

sorry this is out of scope, and impossible to debug without more information.