From a86a2ec5c6cc483a33f9b2415def3eb071a48571 Mon Sep 17 00:00:00 2001 From: Edvard Date: Wed, 12 Dec 2018 12:13:23 +0100 Subject: [PATCH] Improve checked header column detection --- pkg/transformers/shared/repository.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/transformers/shared/repository.go b/pkg/transformers/shared/repository.go index 65b4f938..129da6e9 100644 --- a/pkg/transformers/shared/repository.go +++ b/pkg/transformers/shared/repository.go @@ -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 {