forked from cerc-io/ipld-eth-server
Improve checked header column detection
This commit is contained in:
parent
4e089c363e
commit
a86a2ec5c6
@ -60,8 +60,7 @@ func (_ Repository) GetCheckedColumnNames(db *postgres.DB) ([]string, error) {
|
|||||||
`SELECT column_name FROM information_schema.columns
|
`SELECT column_name FROM information_schema.columns
|
||||||
WHERE table_schema = 'public'
|
WHERE table_schema = 'public'
|
||||||
AND table_name = 'checked_headers'
|
AND table_name = 'checked_headers'
|
||||||
AND column_name != 'id'
|
AND column_name ~ '_checked';`
|
||||||
AND column_name != 'header_id';`
|
|
||||||
|
|
||||||
err := db.Select(&queryResult, columnNamesQuery)
|
err := db.Select(&queryResult, columnNamesQuery)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user