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

Can't migrate new tables to tennant apps. #668

Open
gregocanepa opened this issue Dec 11, 2020 · 0 comments
Open

Can't migrate new tables to tennant apps. #668

gregocanepa opened this issue Dec 11, 2020 · 0 comments

Comments

@gregocanepa
Copy link

Hi! I'm trying to add a new model called ExternalContactId to one of my tenant schemas but when I run the migrate_schemas command, I get the following error:

psycopg2.errors.DuplicateTable: relation "dashboard_strategy_numerical_filter" already exists

django.db.utils.ProgrammingError: relation "dashboard_strategy_numerical_filter" already exists

This error points to a table that has already been created in the tenant schema, how can I tell django to bypass tables that already exist and only create the new tables?

Please tell me if you need more details to understand the issue, I'm it has happened to more than a few people. Cheers.

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