I was wondering if anyone knows where Designer adds information (in wich ci_ tables) whenever a table is shared from one application to another.
I need to write a script to load roles and its objects from the database to the repository.
I know that whenever a table is created, it is added in ci_table_definitions. If I want to insert it in a role, I need to associate it with a user in ci_table_implementations. In this table there is a reference to ci_table_definitions, but only tables owned by the current application or shared with it are able to be added to ci_table_implementations.
I have tested sharing a table and looking for where it was added in the repository, but I just can´t figure out.
I have also looked up at the documentation but it´s kind of poor.
Thanks in advance.