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

Migration not working #125

Closed
justin-ven opened this issue Jan 31, 2022 · 6 comments
Closed

Migration not working #125

justin-ven opened this issue Jan 31, 2022 · 6 comments

Comments

@justin-ven
Copy link

Related to #124, a migration file now seems to be included in 5.0, but results (at least on my system) in the following error:

psycopg2.errors.ObjectNotInPrerequisiteState: sequence must have same owner as table it is linked to

@svandeneertwegh
Copy link

Agree, i have the same issue

@svandeneertwegh
Copy link

svandeneertwegh commented Mar 28, 2022

When i copie the git folder robots direct in my project and remove 0002 migration. Then run manage.py makemigrations robots, it returns "No changes detected in app 'robots'".

@tony
Copy link
Member

tony commented Apr 23, 2022

This needs more information.

Not clear if this is a configuration issue on your side(s) or a django-robots issue.

psycopg2.errors.ObjectNotInPrerequisiteState: sequence must have same owner as table it is linked to

@svandeneertwegh @justin-ven It looks like you may need superuser access / to iron permissions out. Have you tried troubleshooting yet on the postgres side?

@justin-ven
Copy link
Author

This issue is now resolved on my system - I just upgraded to Django 4.0.3, and let the migration set up and work through. I did need to merge two migrations on one system, but otherwise things seem to be functioning correctly for me now.

@tony
Copy link
Member

tony commented Oct 15, 2022

Related to #124

I am about to release a beta release of 5.x that includes a missing app setting via #134 - in re #124.

@tony
Copy link
Member

tony commented Oct 15, 2022

In re:

... results (at least on my system) in the following error:

psycopg2.errors.ObjectNotInPrerequisiteState: sequence must have same owner as table it is linked to

psycopg2.errors.ObjectNotInPrerequisiteState: sequence must have same owner as table it is linked to

I'm don't think this is something the package itself can solve - I'm open to being convinced otherwise.

These are highly specific to your own project's state, migrations are complicated.

Don't take my / other's word on these: it depends 100% on your specific circumstance!

  • You may need to go in manually to django_migrations and see if a migration really ought to be run
  • Check which version of django-robots you're using

I will close, but keep the issue unlocked so workarounds / solutions can be shared. I'm not sure if it's #124 or not.

I will also come back when a PyPI beta package with the #124 is live

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

No branches or pull requests

3 participants