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.

20 lines
522 B

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