Skip to content
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

Store metadata on "up" migrations #13

Open
patricknelson opened this issue Aug 13, 2021 · 0 comments
Open

Store metadata on "up" migrations #13

patricknelson opened this issue Aug 13, 2021 · 0 comments

Comments

@patricknelson
Copy link
Owner

patricknelson commented Aug 13, 2021

Add new feature to store serialized metadata which is intended to be updated during up migrations. This will better facilitate down migrations so that information on what was changed can potentially be referenced when reversing said migrations.

Ideally the data here would be small. Best not to rely on the metadata field to retain the original values, but to only retain metadata about the values that were changed (e.g. which objects were updated).

Example: In creating a migration to convert a field of some (but not all) DataObject's, you may want to retain a list of all the ID's that were identified for change in the up migration that would otherwise not be possible to identify after the up migration has completed running. This makes it possible in the down migration to know how to reverse.

TODO: Determine storage limit. See MySQL datatype storage requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant