mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 00:10:49 +00: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
|
||
|
`)
|
||
|
}
|