Skip to content

Commit

Permalink
Update from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Jan 20, 2020
1 parent 376cc2e commit 0932895
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/schemaherokubectlcli/get_migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func GetMigrationsCmd() *cobra.Command {

rows = append(rows, []string{
migration.Name,
"??",
"<Database Unknown>",
migration.Spec.TableName,
timestampToAge(migration.Status.PlannedAt),
timestampToAge(migration.Status.ExecutedAt),
Expand Down
13 changes: 0 additions & 13 deletions pkg/cli/schemaherokubectlcli/get_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,6 @@ func GetTablesCmd() *cobra.Command {
for _, table := range matchingTables {
status := "Current"

// if len(table.Status.Plans) == 0 {
// status = "Planning"
// continue
// }

// for _, plan := range table.Status.Plans {
// if plan.ExecutedAt == 0 && plan.RejectedAt == 0 && plan.ApprovedAt == 0 {
// status = "Pending"
// } else if plan.PlannedAt == 0 {
// status = "Planning"
// }
// }

fmt.Fprintln(w, fmt.Sprintf("%s\t%s\t%s", table.Name, table.Spec.Database, status))
}
w.Flush()
Expand Down

0 comments on commit 0932895

Please sign in to comment.