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

Automatic Data Migration - Phase 2 #44

Open
NathanWolf opened this issue Feb 14, 2011 · 0 comments
Open

Automatic Data Migration - Phase 2 #44

NathanWolf opened this issue Feb 14, 2011 · 0 comments

Comments

@NathanWolf
Copy link
Owner

Phase 2 data migration will cover cases that Persistence can't handle in a completely automatic way. The idea is to put the onus on the dev to create migration scripts, which Persistence can manage and auto-apply for admins.

Persistence will maintain a special MigrationStep global entity for this, which tracks each migration script that's been applied.

Admins will drop a script in the Persistence folder with the server shut down (during a plugin upgrade). On startup, Persistence will execute this script, mark it as having been completed. and then move the physical file to a separate "completed" folder.

There needs to be some way to uniquely identify migration scripts- this gets complex, since they need to be globally unique, across all plugins and all changes. We made need to have Persistence auto-generate a template or something.

The actual id could either be the filename, or embedded in a comment on the first line of the script.

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