Skip to content

Commit a78973e

Browse files
committed
migration
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
1 parent dba7bad commit a78973e

File tree

2 files changed

+3
-0
lines changed
  • integrations/appkit-agent

2 files changed

+3
-0
lines changed

integrations/appkit-agent/playground/default-ui/server/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ await createApp({
1313
backend: "agent",
1414
// Uncomment this to use a local PostgreSQL database for persistence
1515
// pool: new pg.Pool({ connectionString: "postgres://user@localhost:5432/database" }),
16+
// autoMigrate: true
1617
}),
1718
],
1819
});

integrations/appkit-agent/src/chat-plugin/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export interface ChatConfig extends BasePluginConfig {
4444
autoMigrate?: boolean;
4545
/** Path to mount the chat UI. Set to null to disable UI serving. Default: '/chat'. */
4646
uiPath?: string | null;
47+
/** Auto-create the ai_chatbot schema and tables on startup. Defaults to false. */
48+
autoMigrate?: boolean;
4749
}
4850

4951
const textPartSchema = zod.object({

0 commit comments

Comments
 (0)