mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
fix: allow non-UUID sessionId by changing column type to varchar (#4457)
* fix: allow non-UUID sessionId by changing column type to varchar * update postgres migration * Update pnpm-lock.yaml --------- Co-authored-by: Henry <hzj94@hotmail.com> Co-authored-by: Henry Heng <henryheng@flowiseai.com>
This commit is contained in:
@@ -18,7 +18,7 @@ export class Execution implements IExecution {
|
|||||||
agentflowId: string
|
agentflowId: string
|
||||||
|
|
||||||
@Index()
|
@Index()
|
||||||
@Column({ type: 'uuid' })
|
@Column({ type: 'varchar' })
|
||||||
sessionId: string
|
sessionId: string
|
||||||
|
|
||||||
@Column({ nullable: true, type: 'text' })
|
@Column({ nullable: true, type: 'text' })
|
||||||
|
|||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
import { MigrationInterface, QueryRunner } from 'typeorm'
|
||||||
|
|
||||||
|
export class ModifyExecutionSessionIdFieldType1748450230238 implements MigrationInterface {
|
||||||
|
name = 'ModifyExecutionSessionIdFieldType1748450230238'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "execution" ALTER COLUMN "sessionId" type varchar USING "sessionId"::varchar`)
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "execution" ALTER COLUMN "sessionId" type uuid USING "sessionId"::uuid`)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -35,6 +35,7 @@ import { AddSeqNoToDatasetRow1733752119696 } from './1733752119696-AddSeqNoToDat
|
|||||||
import { AddExecutionEntity1738090872625 } from './1738090872625-AddExecutionEntity'
|
import { AddExecutionEntity1738090872625 } from './1738090872625-AddExecutionEntity'
|
||||||
import { FixOpenSourceAssistantTable1743758056188 } from './1743758056188-FixOpenSourceAssistantTable'
|
import { FixOpenSourceAssistantTable1743758056188 } from './1743758056188-FixOpenSourceAssistantTable'
|
||||||
import { AddErrorToEvaluationRun1744964560174 } from './1744964560174-AddErrorToEvaluationRun'
|
import { AddErrorToEvaluationRun1744964560174 } from './1744964560174-AddErrorToEvaluationRun'
|
||||||
|
import { ModifyExecutionSessionIdFieldType1748450230238 } from './1748450230238-ModifyExecutionSessionIdFieldType'
|
||||||
|
|
||||||
import { AddAuthTables1720230151482 } from '../../../enterprise/database/migrations/postgres/1720230151482-AddAuthTables'
|
import { AddAuthTables1720230151482 } from '../../../enterprise/database/migrations/postgres/1720230151482-AddAuthTables'
|
||||||
import { AddWorkspace1720230151484 } from '../../../enterprise/database/migrations/postgres/1720230151484-AddWorkspace'
|
import { AddWorkspace1720230151484 } from '../../../enterprise/database/migrations/postgres/1720230151484-AddWorkspace'
|
||||||
@@ -96,5 +97,6 @@ export const postgresMigrations = [
|
|||||||
AddExecutionEntity1738090872625,
|
AddExecutionEntity1738090872625,
|
||||||
FixOpenSourceAssistantTable1743758056188,
|
FixOpenSourceAssistantTable1743758056188,
|
||||||
AddErrorToEvaluationRun1744964560174,
|
AddErrorToEvaluationRun1744964560174,
|
||||||
ExecutionLinkWorkspaceId1746862866554
|
ExecutionLinkWorkspaceId1746862866554,
|
||||||
|
ModifyExecutionSessionIdFieldType1748450230238
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user