Skip to content

Commit

Permalink
#7 and #9 - Move column_id filtering to the config.json file.
Browse files Browse the repository at this point in the history
  • Loading branch information
martindsouza committed Oct 10, 2015
1 parent 72966bf commit b12370d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -113,6 +113,18 @@ Example:
...
```

## Filter Examples
The following is a list of filters that you can either at to a `filters` option or a `filterGroup`. _Note: the filters are already escaped for JSON use. If testing in a regexp tester ensure to unescape._

Filter | Description
------------- | -------------
`^(.(?!page_id$))*_id$` | Exclude all id columns except for `page_id`
`.+\\..+_updated_.*` | All columns that contain the name `_updated_`
`.+\\.(items|buttons|display_sequence)` | Exclude all columns with ..
`apex_application_templates.reference_count` |



# Known Issues

## ORA-00600 Error
Expand Down
1 change: 1 addition & 0 deletions config/config_sample.json
Expand Up @@ -8,6 +8,7 @@
},
"prod" : "giffy/giffy@prod.oraopensource.com:11522/xe"
},
"filters" : ["^(.(?!page_id$))*_id$"],
"filterGroups" : {
"updateInfo" : [".+\\..+_updated_.*"]
}
Expand Down
5 changes: 0 additions & 5 deletions source/apex-diff.sql
Expand Up @@ -105,11 +105,6 @@ order by %ORDER_BY%) "%APEX_VIEW_NAME%"';
-- Columns
and atc.table_name = upper(ad.apex_view_name)
and atc.owner = apex_application.g_flow_schema_owner
-- Remove ID columns as it won't help when comparing apps from different workspaces
and (1=2
or atc.column_name in ('PAGE_ID') -- safe list
or not regexp_like(atc.column_name, '(_id)$','i')
)
and atc.column_name not in (
'WORKSPACE',
'WORKSPACE_DISPLAY_NAME',
Expand Down

0 comments on commit b12370d

Please sign in to comment.