Skip to content

is migrate --run-syncdb supported? #238

@disco-23

Description

@disco-23

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions