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

[Q] Did the database change between version 0.9.6 and 1.2.0? #323

Closed
itinneed2022 opened this issue Jun 29, 2022 · 5 comments
Closed

[Q] Did the database change between version 0.9.6 and 1.2.0? #323

itinneed2022 opened this issue Jun 29, 2022 · 5 comments

Comments

@itinneed2022
Copy link

I'm trying to migrate an older database and its tables to a 1.2.0 setup. Reading through the documentation (1.1.10 and back) is taking awhile. So its probably quicker to ask: Is it possible to migrate an older setup's database to the newest version?

@deniszh
Copy link
Member

deniszh commented Jun 30, 2022

Should be possible. Just apply migrations, see https://graphite.readthedocs.io/en/latest/releases/1_1_1.html#upgrading

@itinneed2022
Copy link
Author

@deniszh How would that work with a mysql database? Running the migrations with:
PYTHONPATH=/opt/graphite/webapp django-admin.py migrate
--noinput --settings=graphite.settings --fake-initial

Threw an error:
django.db.utils.OperationalError: (1050, "Table 'dashboard_dashboard' already exists")

@deniszh
Copy link
Member

deniszh commented Jun 30, 2022

MySQL should be the same. --fake-initial should fix issue with existing tables, so, not sure why that's happening :(

@itinneed2022
Copy link
Author

@deniszh well it hasn't seemed to stop the graphite app from working so I guess I'll see what happens.

@stale
Copy link

stale bot commented Sep 20, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 20, 2022
@stale stale bot closed this as completed Oct 1, 2022
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

2 participants