overleaf/services/history-v1/migrations/20221026201437_chunk_start_version.js
Alf Eaton ee85d948e2 Avoid duplicating a math-closing dollar sign (#11227)
GitOrigin-RevId: ef2ef77e26df59d1af3df6dc664e284d3c70102d
2023-01-16 08:41:42 +00:00

23 lines
564 B
JavaScript

exports.up = async function (knex) {
await knex.raw(`
ALTER TABLE chunks ADD COLUMN start_version integer
`)
await knex.raw(`
ALTER TABLE pending_chunks ADD COLUMN start_version integer
`)
await knex.raw(`
ALTER TABLE old_chunks ADD COLUMN start_version integer
`)
}
exports.down = async function (knex) {
await knex.raw(`
ALTER TABLE chunks DROP COLUMN start_version
`)
await knex.raw(`
ALTER TABLE pending_chunks DROP COLUMN start_version
`)
await knex.raw(`
ALTER TABLE old_chunks DROP COLUMN start_version
`)
}