Feat/front temp seed custom objects (#2070)
* wip * Fixed bugs * Added flexible backend test
This commit is contained in:
@ -42,17 +42,19 @@ export const seedWorkspaces = async (prisma: PrismaClient) => {
|
||||
);
|
||||
`);
|
||||
|
||||
await prisma.$queryRawUnsafe('CREATE SCHEMA IF NOT EXISTS workspace_apple');
|
||||
await prisma.$queryRawUnsafe(
|
||||
'CREATE SCHEMA IF NOT EXISTS workspace_twenty_7icsva0r6s00mpcp6cwg4w4rd',
|
||||
);
|
||||
await prisma.$queryRawUnsafe(
|
||||
`INSERT INTO metadata.data_source_metadata(
|
||||
id, schema, type, workspace_id
|
||||
)
|
||||
VALUES (
|
||||
'b37b2163-7f63-47a9-b1b3-6c7290ca9fb1', 'workspace_apple', 'postgres', 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419'
|
||||
'b37b2163-7f63-47a9-b1b3-6c7290ca9fb1', 'workspace_twenty_7icsva0r6s00mpcp6cwg4w4rd', 'postgres', 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419'
|
||||
) ON CONFLICT DO NOTHING`,
|
||||
);
|
||||
await prisma.$queryRawUnsafe(`
|
||||
CREATE TABLE IF NOT EXISTS workspace_apple.tenant_migrations (
|
||||
CREATE TABLE IF NOT EXISTS workspace_twenty_7icsva0r6s00mpcp6cwg4w4rd.tenant_migrations (
|
||||
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
|
||||
migrations JSONB,
|
||||
applied_at TIMESTAMP NULL,
|
||||
|
||||
Reference in New Issue
Block a user