TomDog wrote:
Otis wrote:
What would a good strategy be in this case, according to you? Some rules the user can define which determine what to do with the schema name? Say I have 3 schemas in the oracle catalog and no groups in the project. How would it be easy for the user to define which schema the new table will be added to?
Firstly I would like it to treat single schema as a special case with everything going to that schema as that's easy.
Agreed, if there's 1 schema already, it should add the table to that one, not yet another one.
For the more general case: If the entity was mapped to another DB (as in my case SQL Server) use that schema, if not I don't know.
Perhaps don't even try and instead stick with status quo but add ability for the Catalog explorer to move tables and sequences etc between schemas.
Moving them is a problem, as that could mean you want them to move in the DB as well (e.g. the table already exists), which is problematic, as that's not doable with simple DDL SQL without dropping the original table.
We're thinking about marking a schema as the default target. So if you have e.g. 3 schemas, mark 1 as the default target, and all tables which are created from ungrouped entities are placed in that schema. That would give more control over it.
Move could be done only till the schema is exported as ddl sql. So the table is still marked as 'created by the designer'.
We'll try to add the 'pick the single schema if there's just 1' change to v5.3 as it feels like a bug. the other changes will move to v5.4