ɃØĦɆᵾS
ɃØĦɆᵾS
TTwenty
Created by Zou on 4/19/2025 in #❓︱help
what exactly does this do
@Zou npx nx database:reset twenty-server does following things in order: - delete all existing data including schemas - creates all schemas - migrates database (in other words, it creates all necessary tables and adds constrains) - flushes cache - seeds database (inserts all data from seed) FYI, command is in packages/twenty-server/project.json if you want to check it on your own As workspace:seed:dev has both Apple and Acme data, it inserts both of them without checking environmental variables, so even if you set IS_MULTIWORKSPACE_ENABLED=false, both workspaces will be populated instead of only one. The simplest and fastest workaround is to directly modify packages/twenty-server/src/database/typeorm-seeds/core/workspaces.ts and delete either Apple or Acme workspace seed, this way records related to removed workspace won't be populated and there'll be only 1 workspace (although when populating database, there'll be error but nevertheless it'll end successfully). Better way is to remove all data related to removed workspace in packages/twenty-server/src/database/typeorm-seeds/ to get rid of error but it's up to you.
8 replies
TTwenty
Created by Miles S on 4/18/2025 in #❓︱help
Calendar & Email on Custom Objects
Answered here https://discord.com/channels/1130383047699738754/1130383048173682821/1362847995758120981 For interested, only People records have the calendar and email objects, it's not possible to add them to other objects but it's possible to rename People object
4 replies