-
Notifications
You must be signed in to change notification settings - Fork 274
feat: add db migration/patch tool #1908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
8337319
6633724
60e26a1
a83ee02
da2a1c3
689218e
b35cff0
7808432
f98c16a
748f42e
6e9e634
115dc01
891bb17
9358a34
3f5a860
20d80e3
15ffdfe
5870ee9
d84f3ed
3703cfe
6c4fb78
3e0ccde
38cd682
e12cb79
d192a72
e6c0456
d9d4faa
950a34c
6753bda
d343f40
65c8725
a45a96d
2667e0c
658b540
7303a8b
18b4ee5
df0350d
b30cdaa
938c37e
21e0dcd
4d1bf97
fd86199
87bfd25
1bdd518
174b8e3
bc9cb04
d762779
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package cmd | ||
|
|
||
| import ( | ||
| "github.com/spf13/cobra" | ||
| ) | ||
|
|
||
| // DatabaseCmd returns the database command with subcommands | ||
| func DatabaseCmd() *cobra.Command { | ||
| cmd := &cobra.Command{ | ||
| Use: "database", | ||
| Short: "Database management commands", | ||
| Long: `Commands for managing Cronos databases. | ||
|
|
||
| Available subcommands: | ||
| migrate - Migrate databases between different backend types | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this be
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I couldn't understand what do you mean here, can you explain more? I put |
||
| patch - Patch specific block heights into existing databases | ||
|
|
||
| Use "cronosd database [command] --help" for more information about a command.`, | ||
| Aliases: []string{"db"}, | ||
| } | ||
|
|
||
| // Add subcommands | ||
| cmd.AddCommand( | ||
| MigrateCmd(), | ||
| PatchCmd(), | ||
| ) | ||
|
|
||
| return cmd | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.