{"modulePath":"github.com/dNote/dnote","version":"v0.6.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package migrate\n\nPackage migrate provides migration logic for both sqlite and legacy JSON-based notes used until v0.4.x releases\n\n## Constants\n\n```go\nconst (\n\t// LocalMode is a local migration mode\n\tLocalMode = iota\n\t// RemoteMode is a remote migration mode\n\tRemoteMode\n)\n```\n\n## Variables\n\n```go\nvar LocalSequence = []migration{\n\tlm1,\n\tlm2,\n\tlm3,\n\tlm4,\n\tlm5,\n\tlm6,\n\tlm7,\n\tlm8,\n\tlm9,\n}\n```\nLocalSequence is a list of local migrations to be run\n\n```go\nvar RemoteSequence = []migration{\n\trm1,\n}\n```\nRemoteSequence is a list of remote migrations to be run\n\n## Functions\n\n```go\nfunc Legacy(ctx infra.DnoteCtx) error\n```\nLegacy performs migration on JSON-based dnote if necessary\n\n```go\nfunc Run(ctx infra.DnoteCtx, migrations []migration, mode int) error\n```\nRun performs unrun migrations\n\n","path":"github.com/dNote/dnote/migrate","name":"migrate","synopsis":"Package migrate provides migration logic for both sqlite and legacy JSON-based notes used until v0.4.x releases","isRedistributable":true}
