Jeff Kandt
Member²
I'm trying the VCS plugin for the first time, after using PL/SQL Developer for many years, but I feel like I must be missing something...
We have several schemas/owners which contain objects for our application, all of which need to get stored in the same source repository (in our case TFS).
Those object names & types may conflict between schemas -- in other words there might be a "COMMON.pck" package in the "OWNER1" schema, and another different package called "COMMON.pck" in the "OWNER2" schema.
There's a regular PL/SQL Developer Preference for "always include owner prefix" which causes the owner to be prepended to the object name within the script itself, so the script always contains something like "CREATE OR REPLACE PACKAGE owner.object..."
But how can I distinguish the FILENAMES? Is there a way to convince either PL/SQL Developer or the VCS plugin to either 1) name all source files with the owner's prefix ("OWNER1.COMMON.pck" vs "OWNER2.COMMON.pck") or 2) Add objects into source control under a separate directory for each schema ("/OWNER1/COMMON.pck" vs "/OWNER2/COMMON.pck").
I suppose I could require developers to open separate VCS projects for each schema they will be modifying objects in, where each project specifies the appropriate schema-specific directory within the source control system, but this seems like a huge inconvenience since we're often working in multiple schemas at once. And how would I ever enforce this? Can I require that a given VCS project will allow only objects from a specific schema to be checked into it?
We have several schemas/owners which contain objects for our application, all of which need to get stored in the same source repository (in our case TFS).
Those object names & types may conflict between schemas -- in other words there might be a "COMMON.pck" package in the "OWNER1" schema, and another different package called "COMMON.pck" in the "OWNER2" schema.
There's a regular PL/SQL Developer Preference for "always include owner prefix" which causes the owner to be prepended to the object name within the script itself, so the script always contains something like "CREATE OR REPLACE PACKAGE owner.object..."
But how can I distinguish the FILENAMES? Is there a way to convince either PL/SQL Developer or the VCS plugin to either 1) name all source files with the owner's prefix ("OWNER1.COMMON.pck" vs "OWNER2.COMMON.pck") or 2) Add objects into source control under a separate directory for each schema ("/OWNER1/COMMON.pck" vs "/OWNER2/COMMON.pck").
I suppose I could require developers to open separate VCS projects for each schema they will be modifying objects in, where each project specifies the appropriate schema-specific directory within the source control system, but this seems like a huge inconvenience since we're often working in multiple schemas at once. And how would I ever enforce this? Can I require that a given VCS project will allow only objects from a specific schema to be checked into it?