Idea Summary
A more automatic way to generate supporting objects.
Apex is already able to generate create scripts for objects used by an application. But you have to select them manually.
It would be great if all objects (i.e. Tables, views, packages, etc..) used directly in the Apex app would be preselected, or better if the script would be automatically generated. One could always edit them later on.
Corresponding “drop scripts” for deinstallation could be autogenerated too.
Use Case
In development there are often extra tables, packages, etc that were once needed, but are no longer necessary for the application. Sorting them out before packaging can be quite some task.
Preferred Solution (Optional)
something like:
with (select object_name from user_objects where object_type in ('VIEW','TABLE', ….) my_objects
select my_objects.object_name from my_objects, APEX_APPLICATION_PAGE_REGIONS
where instr(region_source, object_name ) > 0