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

Update unique field creation mechanism #8685

Open
FelixMalfait opened this issue Nov 22, 2024 · 0 comments
Open

Update unique field creation mechanism #8685

FelixMalfait opened this issue Nov 22, 2024 · 0 comments
Assignees

Comments

@FelixMalfait
Copy link
Member

Currently the indexes for unique fields are set at the decorator level:

https://github.com/twentyhq/twenty/blob/main/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-is-unique.decorator.ts#L20

Instead, we would like to remove that code at the index level and take care of it in the workspace migration runner service, kind of like what we did here: https://github.com/twentyhq/twenty/blob/main/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/workspace-migration-runner.service.ts#L516

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants