diff --git a/server/src/scripts/add-source-message-column.js b/server/src/scripts/add-source-message-column.js new file mode 100644 index 000000000..cc9c4d594 --- /dev/null +++ b/server/src/scripts/add-source-message-column.js @@ -0,0 +1,13 @@ +// @flow + +import { dbQuery, SQL } from '../database/database'; +import { main } from './utils'; + +async function deleteUnreadColumn() { + await dbQuery(SQL` + ALTER TABLE threads + ADD source_message BIGINT(20) NULL DEFAULT NULL AFTER color + `); +} + +main([deleteUnreadColumn]);