fix: incorrect migration name 2.4.14

This commit is contained in:
NGPixel
2020-05-21 00:18:08 -04:00
committed by Nicolas Giard
parent df246af3bb
commit 6b561623ee

View File

@@ -0,0 +1,16 @@
/* global WIKI */
exports.up = knex => {
const dbCompat = {
charset: (WIKI.config.db.type === `mysql` || WIKI.config.db.type === `mariadb`)
}
return knex.schema
.createTable('commentProviders', table => {
if (dbCompat.charset) { table.charset('utf8mb4') }
table.string('key').notNullable().primary()
table.boolean('isEnabled').notNullable().defaultTo(false)
table.json('config').notNullable()
})
}
exports.down = knex => { }