diff --git a/README.md b/README.md index 0093ab4..0574d99 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/config/config_sample.json b/config/config_sample.json index f8f126e..be980ed 100644 --- a/config/config_sample.json +++ b/config/config_sample.json @@ -8,6 +8,7 @@ }, "prod" : "giffy/giffy@prod.oraopensource.com:11522/xe" }, + "filters" : ["^(.(?!page_id$))*_id$"], "filterGroups" : { "updateInfo" : [".+\\..+_updated_.*"] } diff --git a/source/apex-diff.sql b/source/apex-diff.sql index 75b2d36..9f0285e 100644 --- a/source/apex-diff.sql +++ b/source/apex-diff.sql @@ -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',