feat: admin auth + config ref + modules sidebar ui + GQL upload (wip)
This commit is contained in:
16
server/db/migrations-sqlite/2.0.0-beta.99.js
Normal file
16
server/db/migrations-sqlite/2.0.0-beta.99.js
Normal file
@@ -0,0 +1,16 @@
|
||||
exports.up = knex => {
|
||||
const dbCompat = {
|
||||
charset: (WIKI.config.db.type === `mysql` || WIKI.config.db.type === `mariadb`)
|
||||
}
|
||||
return knex.schema
|
||||
.createTable('assetData', table => {
|
||||
if (dbCompat.charset) { table.charset('utf8mb4') }
|
||||
table.integer('id').primary()
|
||||
table.binary('data').notNullable()
|
||||
})
|
||||
}
|
||||
|
||||
exports.down = knex => {
|
||||
return knex.schema
|
||||
.dropTableIfExists('assetData')
|
||||
}
|
Reference in New Issue
Block a user