-
Notifications
You must be signed in to change notification settings - Fork 196
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
Issue database needs a migration script. #968
Comments
@karlcow Do we need a DB migration script? I'd just add the domain stuff to the existing dump issues to db-script and run it for a new sync from GitHub..or something like that. |
I suggest this (to get us started): Write a script that
Timing-wise I suppose this needs to run during deployment of a new version that relies on an updated DB schema. |
@hallvors this is exactly a migration script. So yes we need it. Plus to avoid the maintenance pain for @miketaylr who at this time manage the deployment.
The proposed script above by @hallvors needs to switch step 1. and 2. Or more exactly Once webcompat.com is stopped.
Notes:
This is not necessary simple. The good news is that for now because of the way the DB is aka readonly for webcompat.com features. It will not break the system. |
This is the dump-to-db script: https://github.com/webcompat/issue_parser/blob/master/dump_webcompat_to_db.py |
BTW, what's the point of "pausing" the site? Issues might also get filed on GitHub (through the GitHub UI, not ours) while the script is running, you can't pause GitHub.. The chance of that happening is low I guess, but you're not guaranteed a perfect duplication even if you leave the site running. |
Setting "outreachy-project" given its relationship with #865. |
When we restart the project, when we change the schema, etc. We need to be able to keep the data and reinstantiate the databse.
This issue blocks #865
The text was updated successfully, but these errors were encountered: