Migrate standard objects (#2439)
* Migrate standard objects * Add migrations * fix relation * fix: register RelationMetadataType enum * fix: correctly fix null relation --------- Co-authored-by: corentin <corentin@twenty.com> Co-authored-by: Jérémy Magrin <jeremy.magrin@gmail.com>
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
export const seedWorkspaces = async (prisma: PrismaClient) => {
|
||||
await prisma.workspace.upsert({
|
||||
where: { id: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419' },
|
||||
where: { id: '20202020-1c25-4d02-bf25-6aeccf7ea419' },
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
id: '20202020-1c25-4d02-bf25-6aeccf7ea419',
|
||||
displayName: 'Apple',
|
||||
domainName: 'apple.dev',
|
||||
inviteHash: 'apple.dev-invite-hash',
|
||||
|
||||
Reference in New Issue
Block a user