Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is migrate --run-syncdb supported? #238

Open
disco-23 opened this issue Apr 18, 2024 · 0 comments
Open

is migrate --run-syncdb supported? #238

disco-23 opened this issue Apr 18, 2024 · 0 comments

Comments

@disco-23
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant