abp icon indicating copy to clipboard operation
abp copied to clipboard

Changing existing module Primary key to composite key

Open rlavaud opened this issue 6 years ago • 2 comments

Hi All I know that I can add new field to existing module using OneTimeRunner.Run but is there a way to override/change the primary key and force it to be composite key? For example the PK for AbpIdentity user is ID, is there a way to change it without creating a new module to be (ID, TenantID)?

rlavaud avatar Oct 28 '20 13:10 rlavaud

Changing the primary key type is a big change. The module is still using the old primary key type. anyway, you need to change the module source code.

realLiangshiwei avatar Oct 28 '20 14:10 realLiangshiwei

So best thing to do is to copy the module and make the changes there correct?

rlavaud avatar Oct 28 '20 15:10 rlavaud