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.
When Django runs tests (via the
test
management command) it creates a test database by usingmigrate --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 withpgmakemigrations
but I assume this is irrelevant since--run-syncdb
doesn't use migrations.Is this scenario supposed to be supported?