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
|
||||
WHERE table_schema = 'public'
|
||||
AND table_name = 'checked_headers'
|
||||
AND column_name != 'id'
|
||||
AND column_name != 'header_id';`
|
||||
AND column_name ~ '_checked';`
|
||||
|
||||
err := db.Select(&queryResult, columnNamesQuery)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user