You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: