mattermost-mobile-upstream/app/database/models/app
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
..
global.ts Clean todos (#6897) 2023-01-12 14:25:39 +01:00
index.ts [Gekidou] Typings & PostMetadata structure (#5542) 2021-07-15 11:49:02 -04:00
info.ts Ensure no unresolved types in the definition files (#6521) 2022-08-05 14:36:19 +02:00
servers.ts server DB migration to add persistence flag needed by ephemeral mode … (#9740) 2026-05-12 20:50:03 +02:00