Answer the question
In order to leave comments, you need to log in
Django does not migrate how to fix?
Good afternoon, I can’t migrate on the project, I execute python manage.py migrate and I get an error:
django.db.utils.ProgrammingError: permission denied for schema public
LINE 1: CREATE TABLE "accounts_countjobstag" ("id" serial NOT NULL P...
psql mydatabase -c "GRANT ALL ON ALL TABLES IN SCHEMA public to dbuser;"
psql mydatabase -c "GRANT ALL ON ALL SEQUENCES IN SCHEMA public to dbuser;"
psql mydatabase -c "GRANT ALL ON ALL FUNCTIONS IN SCHEMA public to dbuser;"
Answer the question
In order to leave comments, you need to log in
permission denied for schema public
revoke create on schema public from public;
grant create on schema public to username
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question