Skip to content

Commit e570193

Browse files
prastoinijreilly
authored andcommitted
UpdateServerless migration fix 2 (#12755)
closes #12651 (comment)
1 parent ea3d896 commit e570193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/twenty-server/src/database/typeorm/core/migrations/common/1748942397538-removeUselessServerlessFunctionColumn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class RemoveUselessServerlessFunctionColumn1748942397538
2424

2525
for (const typeName of potentialTypeNameToMigrate) {
2626
const selectResult = await queryRunner.query(
27-
`SELECT 1 FROM information_schema.types WHERE type_schema = 'metadata' AND type_name = '${typeName}';`,
27+
`SELECT true FROM pg_type WHERE typname = '${typeName}' AND typnamespace = 'metadata'::regnamespace`,
2828
);
2929
const typeNameExists = selectResult && selectResult.length > 0;
3030

0 commit comments

Comments
 (0)