Skip to content

Commit c5a0ae9

Browse files
authored
fix: organization id default (#3245)
1 parent bcbb610 commit c5a0ae9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/entity/Organization.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Entity,
66
Index,
77
OneToMany,
8-
PrimaryGeneratedColumn,
8+
PrimaryColumn,
99
UpdateDateColumn,
1010
} from 'typeorm';
1111
import type { ContentPreferenceOrganization } from './contentPreference/ContentPreferenceOrganization';
@@ -20,8 +20,10 @@ export type OrganizationLink = z.infer<typeof organizationLinksSchema>;
2020
@Entity()
2121
@Index('IDX_organization_subflags_subscriptionid', { synchronize: false })
2222
export class Organization {
23-
@PrimaryGeneratedColumn({
23+
@PrimaryColumn({
24+
type: 'text',
2425
primaryKeyConstraintName: 'PK_organization_organization_id',
26+
default: () => 'uuid_generate_v4()',
2527
})
2628
id: string;
2729

0 commit comments

Comments
 (0)