Commit 4dc7e053 authored by NGPixel's avatar NGPixel

fix: migration for pageHistory content column type

parent 1a4e96d0
/* global WIKI */
exports.up = knex => {
return knex.schema
.alterTable('pageHistory', table => {
switch (WIKI.config.db.type) {
// No change needed for PostgreSQL and SQLite
case 'mariadb':
case 'mysql':
table.specificType('content', 'LONGTEXT').alter()
break
case 'mssql':
table.specificType('content', 'VARCHAR(max)').alter()
break
}
})
}
exports.down = knex => { }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment