﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27141	makemigrations fails with PermissionDenied on django_migrations	Sjoerd Job Postmus	nobody	"On a project I'm currently working on, I have read-only access to 1 table on a database.

Similar to #27054, except that the table `django_migrations` does exist, I just don't have read-access to it.

Error message:

    django.db.utils.ProgrammingError: permission denied for relation django_migrations.

The error occurs in `recorder.py:MigrationRecorder.applied_migrations`, specifically the line

    return set(tuple(x) for x in self.migration_qs.values_list(""app"", ""name""))"	Cleanup/optimization	closed	Migrations	1.10	Normal	fixed			Accepted	0	0	0	0	0	0
