-
Notifications
You must be signed in to change notification settings - Fork 341
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
RDBMS schema management #490
Comments
Stale issue message |
@skamensky IIRC you and Denis were chatting about you potentially handling this one. Is this still the case/what's the progress on it? |
Yes, I was working on this. As of now these things are either handled or have workarounds. I think you added most of the implementation mentioned in the description of the issue.
My changes can be found in this commit: I'm currently putting all contributions on the side since I'm in the weeds implementing Corteza instead of extending it. |
Tomaž to revisit this and make plan on what needs to be done |
I'll hop onto it today |
Issue #932 makes the current version a bit more robust; tasks outlined here will build on it to provide solid model manipulation. For now, this will be a wall of text here. When we get to it, we'll split it into separate issues. TodoAllow model attribute changesCurrently, when a model is registered in DAL, the attribute can't change. Adding and removing attributes is already implemented, but changing the codec and type is not. The core logic for interacting with the database is stored in The core DAL logic for handling and managing models is stored in These modifications require work both on the database layer (to do storage def. modifications) and on the DAL side (to update registries). Allow model attribute codec changesWhen the codec changes, we need to first update all of the values for that attribute. Note: a lot of this processing can be done concurrently.
Allow model attribute type changesWhen the type changes, we have these options:
Verify the flowsA lot of checks for verifying compatibility are done in the DAL service layer as well as in the DB layer.
Meta bits
|
Stale issue message |
Lost gem from a while back; to be reviewed and potentially incorporate bits and pieces into the already existing DAL schema alterations |
Allow integrators to manipulate RDBMS schema (make, change and remove database tables) when fields are added, changed or removed on a Compose module.
DAL package (
pkg/dal
) can already produce a diff between the two models.Implementation (
store/adapters/rdbms/dal/connection.go
) already has placeholders:The text was updated successfully, but these errors were encountered: