fix: setup assets location + mysql migration 2.4.13
This commit is contained in:
		| @@ -1,10 +1,20 @@ | ||||
| /* global WIKI */ | ||||
|  | ||||
| exports.up = knex => { | ||||
|   return knex.schema | ||||
|     .alterTable('pages', table => { | ||||
|       table.json('extra').notNullable().defaultTo('{}') | ||||
|       if (WIKI.config.db.type === 'mysql') { | ||||
|         table.json('extra') | ||||
|       } else { | ||||
|         table.json('extra').notNullable().defaultTo('{}') | ||||
|       } | ||||
|     }) | ||||
|     .alterTable('pageHistory', table => { | ||||
|       table.json('extra').notNullable().defaultTo('{}') | ||||
|       if (WIKI.config.db.type === 'mysql') { | ||||
|         table.json('extra') | ||||
|       } else { | ||||
|         table.json('extra').notNullable().defaultTo('{}') | ||||
|       } | ||||
|     }) | ||||
|     .alterTable('users', table => { | ||||
|       table.string('dateFormat').notNullable().defaultTo('') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user