Skip to content

Commit 58ee732

Browse files
author
benbot
committed
changes chatMessage string to text
1 parent 8faec39 commit 58ee732

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)