SectorLabs / django-postgres-extra

Bringing all of PostgreSQL's awesomeness to Django.
MIT License
699 stars 96 forks source link

is migrate --run-syncdb supported? #238

Open disco-23 opened 7 months ago

disco-23 commented 7 months ago

When Django runs tests (via the test management command) it creates a test database by using migrate --run-syncdb (link to Django source)

But in my project, this results in a non-partitioned table in my test database.

My model inherits from PostgresPartitionedModel and regular migrate creates a partitioned table as expected. I created migrations with pgmakemigrations but I assume this is irrelevant since --run-syncdb doesn't use migrations.

Is this scenario supposed to be supported?