mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-19 00:15:43 +01:00
https://linear.app/unleash/issue/2-2779/store-conversations-in-the-database Updates schemas related to Unleash AI chat and renames the `chat` column to `messages` to ensure everything aligns nicely.
18 lines
307 B
JavaScript
18 lines
307 B
JavaScript
exports.up = function (db, cb) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE ai_chats RENAME COLUMN chat TO messages;
|
|
`,
|
|
cb,
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, cb) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE ai_chats RENAME COLUMN messages TO chat;
|
|
`,
|
|
cb,
|
|
);
|
|
};
|