Skip to content

Commit

Permalink
Remove per-device token migration added in #89
Browse files Browse the repository at this point in the history
This is causing cyclic import pain. Remove it, rather than port it to
the newer migration infrastructure.

This means that users must run the migration before upgrading to the
any version which includes this change.
  • Loading branch information
David Robertson committed Sep 19, 2023
1 parent 3a451cb commit 80ed88f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 544 deletions.
7 changes: 0 additions & 7 deletions cmd/syncv3/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"context"
"flag"
"fmt"
"log"
Expand Down Expand Up @@ -85,7 +84,6 @@ func defaulting(in, dft string) string {
}

func main() {
ctx := context.Background()
fmt.Printf("Sync v3 [%s] (%s)\n", version, GitCommit)
sync2.ProxyVersion = version
syncv3.Version = fmt.Sprintf("%s (%s)", version, GitCommit)
Expand Down Expand Up @@ -190,11 +188,6 @@ func main() {
}
}

err := sync2.MigrateDeviceIDs(ctx, args[EnvServer], args[EnvDB], args[EnvSecret], true)
if err != nil {
panic(err)
}

maxConnsInt, err := strconv.Atoi(args[EnvMaxConns])
if err != nil {
panic("invalid value for " + EnvMaxConns + ": " + args[EnvMaxConns])
Expand Down
32 changes: 0 additions & 32 deletions cmd/testmigration/main.go

This file was deleted.

Loading

0 comments on commit 80ed88f

Please sign in to comment.