You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
465 B

  1. /* global WIKI */
  2. exports.up = knex => {
  3. return knex.schema
  4. .alterTable('pageHistory', table => {
  5. switch (WIKI.config.db.type) {
  6. // No change needed for PostgreSQL and SQLite
  7. case 'mariadb':
  8. case 'mysql':
  9. table.specificType('content', 'LONGTEXT').alter()
  10. break
  11. case 'mssql':
  12. table.specificType('content', 'VARCHAR(max)').alter()
  13. break
  14. }
  15. })
  16. }
  17. exports.down = knex => { }