mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
24 lines
564 B
JavaScript
24 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
|
||
|
`)
|
||
|
}
|