citusdata / citusdata/django-multitenant

Automate create composite primary keys

Open
#17 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.