mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-19 20:54:36 -05:00
26 lines
631 B
JavaScript
26 lines
631 B
JavaScript
|
/*
|
||
|
ALTER TABLE monitor
|
||
|
ADD tls_ca TEXT default null;
|
||
|
|
||
|
ALTER TABLE monitor
|
||
|
ADD tls_cert TEXT default null;
|
||
|
|
||
|
ALTER TABLE monitor
|
||
|
ADD tls_key TEXT default null;
|
||
|
*/
|
||
|
exports.up = function (knex) {
|
||
|
return knex.schema.table("monitor", function (table) {
|
||
|
table.text("tls_ca").defaultTo(null);
|
||
|
table.text("tls_cert").defaultTo(null);
|
||
|
table.text("tls_key").defaultTo(null);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = function (knex) {
|
||
|
return knex.schema.table("monitor", function (table) {
|
||
|
table.dropColumn("tls_ca");
|
||
|
table.dropColumn("tls_cert");
|
||
|
table.dropColumn("tls_key");
|
||
|
});
|
||
|
};
|