Improve checked header column detection

This commit is contained in:
Edvard 2018-12-12 12:13:23 +01:00
parent 4e089c363e
commit a86a2ec5c6

View File

@ -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 {