i want to start using a app with a specific id and when i migrate i have a error that is saying that i dont have permission or does not exist
. Well i am already db_owner
so maybe the error is when i do ALTER SEQUENCE
on my migrations.
My Project
myproject/
|-- myproject
|-- dpo/
|-- projeto/
|-- models.py
Projeto model.py
class Projeto(models.Model):
..........
So i do python manage.py makemigrations dpo --empty
and then i went to file and in opererations
i add : migrations.RunSQL('ALTER SEQUENCE dpo_projeto_Projeto_id RESTART WITH 7000;')
and i have this error Cannot alter the sequence 'dpo_projeto_Projeto_id', because it does not exist or you do not have permission.