Removes _checked from column name query

This commit is contained in:
Andrew J Yao 2019-07-29 14:49:51 -07:00
parent f2547b5a42
commit dc8d52a58d
2 changed files with 6 additions and 5 deletions

View File

@ -76,7 +76,8 @@ func 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 ~ '_checked';`
AND column_name <> 'id'
AND column_name <> 'header_id';`
err := db.Select(&queryResult, columnNamesQuery)
if err != nil {

View File

@ -295,9 +295,9 @@ var _ = Describe("Repository", func() {
func getExpectedColumnNames() []string {
return []string{
"column_1_checked",
"column_2_checked",
"column_3_checked",
"column_4_checked",
"column_1",
"column_2",
"column_3",
"column_4",
}
}