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.

25 lines
658 B

  1. /* global WIKI */
  2. exports.up = knex => {
  3. return knex.schema
  4. .alterTable('pages', table => {
  5. if (WIKI.config.db.type === 'mysql') {
  6. table.json('extra')
  7. } else {
  8. table.json('extra').notNullable().defaultTo('{}')
  9. }
  10. })
  11. .alterTable('pageHistory', table => {
  12. if (WIKI.config.db.type === 'mysql') {
  13. table.json('extra')
  14. } else {
  15. table.json('extra').notNullable().defaultTo('{}')
  16. }
  17. })
  18. .alterTable('users', table => {
  19. table.string('dateFormat').notNullable().defaultTo('')
  20. table.string('appearance').notNullable().defaultTo('')
  21. })
  22. }
  23. exports.down = knex => { }