Skip to content

Commit 06d1052

Browse files
authored
Merge pull request #1438 from Oneirocom/benbot/change-message-history-to-text
changes chatMessage string to text
2 parents a0e5415 + 58ee732 commit 06d1052

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Knex } from "knex";
2+
3+
4+
export async function up(knex: Knex): Promise<void> {
5+
await knex.schema.alterTable('chatMessages', table => {
6+
// change the content from string to text
7+
table.text('content').alter();
8+
});
9+
}
10+
11+
12+
export async function down(knex: Knex): Promise<void> {
13+
await knex.schema.alterTable('chatMessages', table => {
14+
// change the content from text to string
15+
table.string('content').alter();
16+
});
17+
}
18+

0 commit comments

Comments
 (0)