mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 19:42:01 +00:00
ee85d948e2
GitOrigin-RevId: ef2ef77e26df59d1af3df6dc664e284d3c70102d
23 lines
564 B
JavaScript
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
|
|
`)
|
|
}
|