I have the following database entry in settings:
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'xpto',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'localhost',
'PORT': '5432',
'OPTIONS': {
'options': '-c search_path=xpto,public'
}
}
}
And the following model:
class ModelA(models.Model):
att_a = models.CharField(max_length=10)
I' just created a migration with makemigrations for this app. It does not have any indication of schema, whatsoever.
When I ran the migration, with migrate, the table ended up on the public schema.
Bug?
--
George R. C. Silva
Sigma Geosistemas LTDA
----------------------------