status-go/multiaccounts/migrations/sql
Jonathan Rainville 132ea05fc8
feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977)
* feat(accounts)_: Persist acceptance of Terms of Use & Privacy policy (#5766)

The original GH issue https://github.com/status-im/status-mobile/issues/21113
came from a request from the Legal team. We must show to Status v1 users the new
terms (Terms of Use & Privacy Policy) right after they upgrade to Status v2
from the stores.

The solution we use is to create a flag in the accounts table, named
hasAcceptedTerms. The flag will be set to true on the first account ever
created in v2 and we provide a native call in mobile/status.go#AcceptTerms,
which allows the client to persist the user's choice in case they are upgrading
(from v1 -> v2, or from a v2 older than this PR).

This solution is not the best because we should store the setting in a separate
table, not in the accounts table.

Related Mobile PR https://github.com/status-im/status-mobile/pull/21124

* fix(test)_: Compare addresses using uppercased strings

---------

Co-authored-by: Icaro Motta <icaro.ldm@gmail.com>
2024-10-23 09:53:25 -04:00
..
0001_accounts.down.sql Accounts data management (#1530) 2019-08-20 18:38:40 +03:00
0001_accounts.up.sql Replace address with keyUid in accounts db 2019-12-09 11:20:12 +02:00
1605007189_identity_images.down.sql Moved identity images db migration to multi-accounts 2020-12-17 14:10:00 +01:00
1605007189_identity_images.up.sql Refactor injecting multiaccounts into messenger and service 2020-12-17 14:10:00 +01:00
1606224181_drop_photo_path_from_accounts.down.sql Update to migration to handle change of photoPath to identicon 2020-12-17 14:10:00 +01:00
1606224181_drop_photo_path_from_accounts.up.sql Update to migration to handle change of photoPath to identicon 2020-12-17 14:10:00 +01:00
1648646095_image_clock.down.sql Sync profile picture 2022-04-21 19:50:31 +03:00
1648646095_image_clock.up.sql Sync profile picture 2022-04-21 19:50:31 +03:00
1649317600_add_color_hash.up.sql Populate colorHash and colorId (#2630) 2022-04-08 13:54:29 -04:00
1660238799_accounts_kdf.up.sql feat: make kdf iterations configurable when creating a multiaccount (#2796) 2022-09-27 16:27:20 -04:00
1679505708_add_customization_color.up.sql Add customization color 2023-03-24 14:22:29 +00:00
1687853321_add_customization_color_updated_at.up.sql Feat/sync customization color (#3702) 2023-07-18 21:35:06 +08:00
1719915420_add_appmetrics.up.sql feat(metrics)_: add centralized metrics 2024-07-11 10:05:31 +01:00
1724407149_add_has_accepted_terms_to_accounts.up.sql feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977) 2024-10-23 09:53:25 -04:00
doc.go chore: make generate with custom `-modtime` (#4896) 2024-03-08 09:25:17 +00:00