mattermost-mobile-upstream/docs/database/app_database
Carlos Garcia fcb09f586f
server DB migration to add persistence flag needed by ephemeral mode … (#9740)
* server DB migration to add persistence flag needed by ephemeral mode feature

When Mobile Ephemeral Mode is enabled by an admin, database persistence using
SQLite for a particular server is not always the case.

If Zero Persistence mode is setup by an admin, the app won't persist anything
on a disk backed database.
If Offline wiping is setup for a particular server then, when the app is considered
to be offline after a certain period of time the server databased is completely wiped.

To accommodate these two local persistence new  modes and make the UI react accordingly,
 a new flag is now added to the app database (since server database may not exist) with different
enumerated values depending on server mandated settings.

* Update types/database/models/app/servers.ts

Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>

* adds test for updating the persistence flag

---------

Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
2026-05-12 20:50:03 +02:00
..
app-database-v1.pdf Gekidou - Updated App Database Diagrams/Schema/Models (#6133) 2022-04-07 09:56:40 -04:00
app-database-v1.png Gekidou - Updated App Database Diagrams/Schema/Models (#6133) 2022-04-07 09:56:40 -04:00
app-database-v1.rtf Gekidou - Updated App Database Diagrams/Schema/Models (#6133) 2022-04-07 09:56:40 -04:00
app-database-v1.sql Gekidou - Updated App Database Diagrams/Schema/Models (#6133) 2022-04-07 09:56:40 -04:00
app-database.md server DB migration to add persistence flag needed by ephemeral mode … (#9740) 2026-05-12 20:50:03 +02:00