π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Renumber push registration migration to avoid version collision
AmanRajSinghMouryaf3b5d9d85872
diff --git a/server/migrations/150_push_notification_registration.down.sql b/server/migrations/151_push_notification_registration.down.sqlsimilarity index 100%rename from server/migrations/150_push_notification_registration.down.sqlrename to server/migrations/151_push_notification_registration.down.sqldiff --git a/server/migrations/150_push_notification_registration.up.sql b/server/migrations/151_push_notification_registration.up.sqlsimilarity index 100%rename from server/migrations/150_push_notification_registration.up.sqlrename to server/migrations/151_push_notification_registration.up.sqldiff --git a/server/pkg/repo/push_test.go b/server/pkg/repo/push_test.goindex 09b4245bba..498456dbd7 100644--- a/server/pkg/repo/push_test.go+++ b/server/pkg/repo/push_test.go@@ -163,7 +163,7 @@ func TestPushPlatformRegistrationMigration(t *testing.T) {_, err = tx.Exec(`CREATE TEMP TABLE push_tokens (fcm_token TEXT) ON COMMIT DROP;INSERT INTO push_tokens VALUES ('legacy')`)require.NoError(t, err)- up, err := os.ReadFile("migrations/150_push_notification_registration.up.sql")+ up, err := os.ReadFile("migrations/151_push_notification_registration.up.sql")require.NoError(t, err)_, err = tx.Exec(string(up))require.NoError(t, err)@@ -172,7 +172,7 @@ func TestPushPlatformRegistrationMigration(t *testing.T) {var count intrequire.NoError(t, tx.QueryRow(`SELECT count(*) FROM push_tokens WHERE platform='ios'`).Scan(&count))require.Equal(t, 2, count)- down, err := os.ReadFile("migrations/150_push_notification_registration.down.sql")+ down, err := os.ReadFile("migrations/151_push_notification_registration.down.sql")require.NoError(t, err)_, err = tx.Exec(string(down))require.NoError(t, err)