-
Notifications
You must be signed in to change notification settings - Fork 5
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
constraint that there is only one prefix set to active #210
Comments
Ideas for implementation:
https://stackoverflow.com/questions/28166915/postgresql-constraint-only-one-row-can-have-flag-set |
I deem it smarter to keep it as is and allow multitenancy in a second step |
When would you want to have several prefixes active at the same time? |
When you want to allow multitenancy (i.e. to store all cadastres on one database), you need to alter the system with which you choose the prefix |
As I remember from a past discussion, we would want an option on the plugin to select and change the oidprefix on the fly. It would actually be possible but for one user only, as soon as multiple users would edit data simultaneously it would fail since the setting is yet in the database.
If
|
|
To not corrupt generate_oid we should add a constraint or conditiion that checks whether more than one prefix is set to active. I don't know yet how to formulate that - but maybe the best way is that you have to set all to inactive before you can set another one to active.
The text was updated successfully, but these errors were encountered: