citusdata / citusdata/django-multitenant
Automate create composite primary keys
Open
enhancement
- Dominant language
- Python
- Stars
- 823
- Forks
- 126
- PR merge metrics
- No merged PRs in 30d
Description
One important pre-requisite for migration to citus is for all the models which are inherited from TenantModel, we need to replace the primary key on id column to a composite primary key (tenant_id,id). As we did this for foreign keys in this #16 (specifically in this [file](https://github.com/citusdata/django-multitenant/pull/16/files#diff-cea67ff3eab64345dcc7b719b50bebd7)), we could do automate dropping single primary keys and creating composite primary keys.
Contributor guide
Assessment
This issue has not been assessed yet.