Skip to content

Commit

Permalink
Merge pull request #1416 from Oneirocom/benbot/add-chat-history
Browse files Browse the repository at this point in the history
Fixed type in migration
  • Loading branch information
benbot authored Dec 8, 2023
2 parents d8f6821 + ecb6824 commit 9ce44cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export async function up(knex: Knex): Promise<void> {
await knex.schema.createTable('chatMessages', (table) => {
table.uuid('id').primary();
table.string('message').notNullable();
table.uuid('agent_id').unsigned().notNullable();
table.foreign('agent_id').references('id').inTable('agents');
table.uuid('agentId').unsigned().notNullable();
table.foreign('agentId').references('id').inTable('agents');
table.string('sender').notNullable();
table.string('connector').notNullable();
table.string('content').notNullable();
Expand Down
3 changes: 2 additions & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"prettier": "npx prettier \"**/*.ts\" --write",
"bundle:client": "npm run compile && npm pack --pack-destination ./public",
"migrate": "knex migrate:latest",
"migrate:make": "knex migrate:make"
"migrate:make": "knex migrate:make",
"migrate:rollback": "knex migrate:rollback"
},
"dependencies": {
"knex": "^2.4.2"
Expand Down

0 comments on commit 9ce44cd

Please sign in to comment.