status-go/protocol/pushnotificationserver
Andrea Maria Piana 6f088bb5c5 Fix communities migration
In some instances the communities migration would be skipped but not
marked as `dirty`.

This commit addresses the issue by:
- Making sure that if dirty is set the migration is not skipped but
replayed
- If the version is on the communities migration and dirty is false, we
check for the presence of the communities table. If not present we
replay the communities migration.
- Make community_id field in user_messages nullable

It also removes all the `down` migration, as we can't use them
effectively, as explained in the README.md added.
2021-01-08 08:43:16 +01:00
..
migrations Fix communities migration 2021-01-08 08:43:16 +01:00
errors.go Polish up and address review feedback 2020-07-27 08:51:28 +02:00
gorush.go Show correct text in case of mentions 2020-09-09 21:22:15 +02:00
gorush_test.go Show correct text in case of mentions 2020-09-09 21:22:15 +02:00
persistence.go handle notifications at-most-once 2020-08-27 18:54:29 +02:00
persistence_test.go handle notifications at-most-once 2020-08-27 18:54:29 +02:00
server.go Add tests for send notification & review feedback 2020-09-09 21:22:34 +02:00
server_test.go Add tests for send notification & review feedback 2020-09-09 21:22:34 +02:00