Migrations in wrong order while setting up google sign in using oauth for my django app
I am working on a web app in django and I'm trying to setup Oauth for google sign in, my project is currently pretty much empty. I tried following a tutorial on how to set this up. Upon following the tutorial step by step I encountered multiple errors which i fixed easily (for example missing middleware setup in settings.py), but now I have encountered one I can't seem to fix. I am using PostgreSQL and when running makemigrations i always get this error:
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration socialaccount.0002_token_max_lengths is applied before its dependency socialaccount.0001_initial on database 'default'.
I tried faking the migrations using a tutorial provided by chatgpt and rerunning them somehow, but nothing seems to work. For the lack of a better tutorial and a lack of programming knowledge I find myself completely lost and unable to move forward. Can anyone help?