Merge pull request #24967 from overleaf/em-chunks-concurrency-pg-migration

Add closed column to PostgreSQL chunks

GitOrigin-RevId: 6babf7e94936ebfac31650aa7f190630e3288bbf
This commit is contained in:
Eric Mc Sween
2025-04-17 07:57:26 -04:00
committed by Copybot
parent 4034a9c32a
commit 1658910780
@@ -0,0 +1,27 @@
// @ts-check
/**
* @import { Knex } from "knex"
*/
/**
* @param { Knex } knex
* @returns { Promise<void> }
*/
exports.up = async function (knex) {
await knex.raw(`
ALTER TABLE chunks
ADD COLUMN closed BOOLEAN NOT NULL DEFAULT FALSE
`)
}
/**
* @param { Knex } knex
* @returns { Promise<void> }
*/
exports.down = async function (knex) {
await knex.raw(`
ALTER TABLE chunks
DROP COLUMN closed
`)
}