mirror of
https://github.com/xataio/pgroll.git
synced 2024-09-11 05:45:48 +03:00
Remove unused function (#228)
This commit is contained in:
parent
61cc53ab88
commit
82b7937d77
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user