Skip to content

Can't upgrade sink schema if using yaml source and metric configs #1114

@0xgouda

Description

@0xgouda

Describe the bug
One can't only specify --sink= option in the config upgrade command to upgrade the sink db only (the case where you are using yaml files for metrics and sources)

To Reproduce
Steps to reproduce the behavior:

  1. Run ./pgwatch --sink=[your-sink-db-conn-str] config upgrade
  2. Observe the help message stating missing --sources and --metrics flags

Expected behavior
The pgwatch config upgrade command should tolerate passing the --sink alone.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingconfigConfiguration store relatedgood first issueGood for newcomers

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions