twenty/packages/twenty-server
Weiko c0610419c2
Fix unique index email people (#7713)
## Context
WorkspaceIsUnique decorator allows us to create unique indexes on our
tables. Here Emails is a composite field containing a TEXT subfield. Due
to the fact that TEXT fields are non-nullable and have empty strings as
default values, adding a unique index on a TEXT field or any composite
containing TEXT as subfields will fail and throw if we try to create
more than 1 record that does not specify a value to the TEXT field.

This PR simply removes the index for the time being until we find a
solution
2024-10-15 11:31:42 +02:00
..
@types feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
felix@a33b017977 Add unique indexes and indexes for composite types (#7162) 2024-10-13 10:21:03 +02:00
patches Improve demo seed (#7125) 2024-09-18 17:35:08 +02:00
scripts feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
src Fix unique index email people (#7713) 2024-10-15 11:31:42 +02:00
test Fix all broken CIs (#7439) 2024-10-05 00:23:23 +02:00
.env.example fix(6423): add username and password for redis connection (#6745) 2024-09-04 16:56:37 +02:00
.env.test feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
.eslintrc.cjs feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
.gitignore feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
.prettierignore Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.prettierrc Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.swcrc feat: twenty orm for standard and custom objects (#6178) 2024-07-19 18:23:52 +02:00
jest-integration.config.ts feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
jest.config.ts Fix all broken CIs (#7439) 2024-10-05 00:23:23 +02:00
nest-cli.json 6653 serverless functions store and use environment variables in serverless function scripts (#7390) 2024-10-03 13:56:17 +02:00
package.json Make main the new 0.32 canary 2024-10-12 17:48:20 +02:00
project.json Fix worker run ci step (#7437) 2024-10-04 19:28:29 +02:00
tsconfig.build.json chore: set up twenty-emails config so build isn't needed in development (#3619) 2024-01-29 06:17:12 -03:00
tsconfig.json feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
tsconfig.scripts.json feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00