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('')
|
||||
|
@@ -34,7 +34,7 @@ module.exports = () => {
|
||||
// ----------------------------------------
|
||||
|
||||
app.use(favicon(path.join(WIKI.ROOTPATH, 'assets', 'favicon.ico')))
|
||||
app.use(express.static(path.join(WIKI.ROOTPATH, 'assets')))
|
||||
app.use('/_assets', express.static(path.join(WIKI.ROOTPATH, 'assets')))
|
||||
|
||||
// ----------------------------------------
|
||||
// View Engine Setup
|
||||
|
Reference in New Issue
Block a user