diff --git a/services/history-v1/migrations/20250415210802_add_chunks_closed.js b/services/history-v1/migrations/20250415210802_add_chunks_closed.js new file mode 100644 index 0000000000..b5c1d577f9 --- /dev/null +++ b/services/history-v1/migrations/20250415210802_add_chunks_closed.js @@ -0,0 +1,27 @@ +// @ts-check + +/** + * @import { Knex } from "knex" + */ + +/** + * @param { Knex } knex + * @returns { Promise } + */ +exports.up = async function (knex) { + await knex.raw(` + ALTER TABLE chunks + ADD COLUMN closed BOOLEAN NOT NULL DEFAULT FALSE + `) +} + +/** + * @param { Knex } knex + * @returns { Promise } + */ +exports.down = async function (knex) { + await knex.raw(` + ALTER TABLE chunks + DROP COLUMN closed + `) +}