uptime-kuma/server/utils/knex/lib/dialects/mysql2/index.js
Louis Lam 3a20e4726d WIP
2024-10-28 00:42:25 +08:00

20 lines
443 B
JavaScript

const ClientMySQL2 = require("knex/lib/dialects/mysql2/index");
const KumaColumnCompiler = require("./schema/mysql2-columncompiler");
/**
* Fixed MySQL2 client class.
* - Fix: Default value for TEXT fields is not supported.
*/
class KumaMySQL2 extends ClientMySQL2 {
driverName = "mysql2";
/**
*
*/
columnCompiler() {
return new KumaColumnCompiler(this, ...arguments);
}
}
module.exports = KumaMySQL2;