ToolJet/server/migrations/1772810075355-AddArchivedColumnToAiConversations.ts
Avinash e10a3b6301
Feat/multiple conversation (#15502)
* feat: add conversation management features including listing, creating, and retrieving conversations

* chore: update submodule references for frontend and server components

* chore: update submodule reference for frontend component

* feat: add archived column to ai_conversations entity and migration

* chore: update submodule references for frontend and server components

* feat: clear prompt from navigation state on page refresh in useAppData hook

* feat: improve prompt clearing logic in useAppData hook on page refresh

* feat: add lastOpenedAt column to ai_conversations and update query logic

* chore: update submodule reference for frontend

* feat: add preview column to ai_conversations and create migration for it

* chore: update submodule references for frontend and server

* chore: update submodule references for frontend and server

* feat: remove lastOpenedAt column from ai_conversations and update query logic for conversation retrieval

* feat: update getConversationById method to include userId parameter in IAiService and IAiUtilService interfaces

* chore: update submodule reference for server

* feat: add GET_CONVERSATION feature and update related logic in AI module

* feat: remove fetchConversations from useAppData hook to streamline conversation handling

* fix submodule

* feat: update createConversation endpoint to use a consistent URL

---------

Co-authored-by: Kartik Gupta <gupta.kartik18kg@gmail.com>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2026-03-10 21:19:43 +05:30

13 lines
500 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class AddArchivedColumnToAiConversations1772810075355 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE ai_conversations ADD COLUMN archived boolean NOT NULL DEFAULT false`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE ai_conversations DROP COLUMN archived`);
}
}