An open API service indexing awesome lists of open source software.

https://github.com/shantaramk/databasemigration

Database migration is required whenever there is a change in existing database in new version of the app.
https://github.com/shantaramk/databasemigration

database-migrations ios migration sqlite3 sqlite3-database swift

Last synced: about 1 year ago
JSON representation

Database migration is required whenever there is a change in existing database in new version of the app.

Awesome Lists containing this project

README

          

# DatabaseMigration
# DatabaseMigration
Database migration is required whenever there is a change in existing database in new version of the app.

How to use

DATABASEHELPER.initializeDatabase(Database.fileName)
DATABASEHELPER.migrateToVersion(version: 1)
print("DB Key:", DATABASEHELPER.getSecretKeyFromKeyChain())

What to do

Name the .sql file with the database change version number included.

e.g. migration-1.sql , migration-2.sql …

Keep all previous .sql files intact.