File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
packages/server/src/database Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export class Execution implements IExecution {
18
18
agentflowId : string
19
19
20
20
@Index ( )
21
- @Column ( { type : 'uuid ' } )
21
+ @Column ( { type : 'varchar ' } )
22
22
sessionId : string
23
23
24
24
@Column ( { nullable : true , type : 'text' } )
Original file line number Diff line number Diff line change
1
+ import { MigrationInterface , QueryRunner } from 'typeorm'
2
+
3
+ export class ModifyExecutionSessionIdFieldType1748450230238 implements MigrationInterface {
4
+ name = 'ModifyExecutionSessionIdFieldType1748450230238'
5
+
6
+ public async up ( queryRunner : QueryRunner ) : Promise < void > {
7
+ await queryRunner . query ( `ALTER TABLE "execution" ALTER COLUMN "sessionId" type varchar USING "sessionId"::varchar` )
8
+ }
9
+
10
+ public async down ( queryRunner : QueryRunner ) : Promise < void > {
11
+ await queryRunner . query ( `ALTER TABLE "execution" ALTER COLUMN "sessionId" type uuid USING "sessionId"::uuid` )
12
+ }
13
+ }
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import { AddSeqNoToDatasetRow1733752119696 } from './1733752119696-AddSeqNoToDat
35
35
import { AddExecutionEntity1738090872625 } from './1738090872625-AddExecutionEntity'
36
36
import { FixOpenSourceAssistantTable1743758056188 } from './1743758056188-FixOpenSourceAssistantTable'
37
37
import { AddErrorToEvaluationRun1744964560174 } from './1744964560174-AddErrorToEvaluationRun'
38
+ import { ModifyExecutionSessionIdFieldType1748450230238 } from './1748450230238-ModifyExecutionSessionIdFieldType'
38
39
39
40
import { AddAuthTables1720230151482 } from '../../../enterprise/database/migrations/postgres/1720230151482-AddAuthTables'
40
41
import { AddWorkspace1720230151484 } from '../../../enterprise/database/migrations/postgres/1720230151484-AddWorkspace'
@@ -96,5 +97,6 @@ export const postgresMigrations = [
96
97
AddExecutionEntity1738090872625 ,
97
98
FixOpenSourceAssistantTable1743758056188 ,
98
99
AddErrorToEvaluationRun1744964560174 ,
99
- ExecutionLinkWorkspaceId1746862866554
100
+ ExecutionLinkWorkspaceId1746862866554 ,
101
+ ModifyExecutionSessionIdFieldType1748450230238
100
102
]
You can’t perform that action at this time.
0 commit comments