ubports / telegram-app

Unofficial Telegram App for Ubuntu Desktop & Mobile
GNU General Public License v3.0
55 stars 23 forks source link

Implement database upgrader facility #70

Closed Flohack74 closed 6 years ago

Flohack74 commented 7 years ago

For the upcoming API changes and some improvements we need to modify the local database when installing new versions. The basic idea is: Implement a system table with a column "db_version", and on every app startup check the version number. Then if the number is smaller than whats stored in the app, execute the SQL statements in order and every time update the db_version.

The app will bring all scripts in an include file for example.

Flohack74 commented 6 years ago

This was already hidden in the existing code...