refactor: Use string ids on Credentials, Workflows, Tags, and Executions DB entities (#5041)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-02 17:42:32 +01:00
committed by GitHub
parent 8bee04cd2a
commit ee28213538
83 changed files with 468 additions and 645 deletions

View File

@@ -1,12 +1,12 @@
import { Column, Entity, Index, PrimaryColumn } from 'typeorm';
import { IWebhookDb } from '@/Interfaces';
import { idStringifier } from '../utils/transformers';
@Entity()
@Index(['webhookId', 'method', 'pathLength'])
export class WebhookEntity implements IWebhookDb {
@Column()
workflowId: number;
export class WebhookEntity {
@Column({ transformer: idStringifier })
workflowId: string;
@PrimaryColumn()
webhookPath: string;
@@ -18,8 +18,8 @@ export class WebhookEntity implements IWebhookDb {
node: string;
@Column({ nullable: true })
webhookId: string;
webhookId?: string;
@Column({ nullable: true })
pathLength: number;
pathLength?: number;
}