mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 09:01:06 +03:00
add postgres modify chatflow
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
import { MigrationInterface, QueryRunner } from 'typeorm'
|
||||||
|
|
||||||
|
export class ModifyChatFlow1693995626941 implements MigrationInterface {
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "chat_flow" ALTER COLUMN "chatbotConfig" TYPE TEXT`)
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "chat_flow" ALTER COLUMN "chatbotConfig" TYPE VARCHAR`)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
import { Init1693891895163 } from './1693891895163-Init'
|
import { Init1693891895163 } from './1693891895163-Init'
|
||||||
|
import { ModifyChatFlow1693995626941 } from './1693995626941-ModifyChatFlow'
|
||||||
|
|
||||||
export const postgresMigrations = [Init1693891895163]
|
export const postgresMigrations = [Init1693891895163, ModifyChatFlow1693995626941]
|
||||||
|
|||||||
Reference in New Issue
Block a user