mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 15:10:48 +02:00
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:
@@ -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
|
||||
`)
|
||||
}
|
||||
Reference in New Issue
Block a user