New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define schema for javers related tables #398
Comments
Agreed but schema support have to be implemented in polyJdbc first |
It could be nice to provide some configuration as well in order to tune table name. Christophe |
has there been any progress on this case? We just need to expose a setter method for private String schema property in SchemaInspectorImpl. |
no progress yet. Dont think that someone from core team will take this issue soon. If you need this feature - contribute |
see also https://github.com/polyjdbc/polyjdbc |
… to create and use tables in a defined Schema. As part of the change, the static table and sequence names in the FixedSchemaFactory class have been made private and access to them is made available through static getters (which check if a schema was defined). The JaversSchemaManager has been modified to check for the javers tables if a schema has been defined. If no schema has been defined, this resposibility to handed over to PolyJDBC.
We have decided to contribute :) and we have created a pull request for you to consider. Let us know if you have any questions or you would like further clarifications. |
I can't accept this, see #433 (review) |
This is a good one... It's not quite nice to use public schema for auditing.. kinda security failure, no? Or I didn't get it? |
security failure? I'm affraid that you are missing that JaVers doesn't write to public schema. It writes to a default schema, for most databases it means schema of a current db user |
Oh, now I get it! Thanks for explaining. |
* '398' of https://github.com/ianagius/javers: javers#398 added withSchema() to SqlRepositoryBuilder to enable users to create and use tables in a defined Schema.
done & released in 2.4.0 |
How to configure the schema? I could not find anywhere on the docs page |
Perfect, thanks! |
At the moment, JaVers is creating tables in the public schema. It would be great to be able to define the schema where these tables are created,
The text was updated successfully, but these errors were encountered: