Skip to content

Commit

Permalink
Remove unused function (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-farries committed Jan 15, 2024
1 parent 61cc53a commit 82b7937
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,17 +401,6 @@ func (s *State) Status(ctx context.Context, schema string) (*Status, error) {
}, nil
}

// ReadSchema reads & returns the current schema from postgres
func ReadSchema(ctx context.Context, conn *sql.DB, stateSchema, schemaname string) (*schema.Schema, error) {
var res schema.Schema
err := conn.QueryRowContext(ctx, fmt.Sprintf("SELECT %[1]s.read_schema($1)", pq.QuoteIdentifier(stateSchema)), schemaname).Scan(&res)
if err != nil {
return nil, err
}

return &res, nil
}

// Start creates a new migration, storing its name and raw content
// this will effectively activate a new migration period, so `IsActiveMigrationPeriod` will return true
// until the migration is completed
Expand Down

0 comments on commit 82b7937

Please sign in to comment.