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

Solve MakeMigration issue with MySql #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pooja-narwade
Copy link

django-robots version 5.0
I am using above version of django-robots. When database is SQLite, things are working fine but when the database is MySQL, it gives following error while running migrate command.

Error: django.db.utils.OperationalError: (3780, "Referencing column 'rule_id' and referenced column 'id' in foreign key constraint 'robots_rule_sites_rule_id_7921a799_fk_robots_rule_id' are incompatible.")

I investigate and figure out that the BigAutoField is causing the problem.

@tony
Copy link
Member

tony commented Sep 7, 2023

Is this potentially related to #124?

Does django-robots 6.0 or 6.1 resolve this?

@tony
Copy link
Member

tony commented Dec 9, 2023

@pooja-narwade Is this still an issue in django-robots 6.0? Does this apply to master as it is now?

I think - it may be this PR was made after a fix was merged to master and 6.0b0 was prereleased, but before 6.0 was released:

image

via django-robots' release history.

Maybe this PR is helpful based on where 5.0 was, but in this circumstance master may already have overcame the issue by that time. What do you think?

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

Successfully merging this pull request may close these issues.

2 participants