Merge pull request #124 from vulcanize/refactor-mcd-configs

Removes _checked from column name query
This commit is contained in:
Andrew J Yao 2019-07-30 18:18:42 -07:00 committed by GitHub
commit 65e762f80b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",
}
}