Kuma/db/knex_migrations/2024-10-30-2000-pterodactyl-apikey.js
Bothim_TV 5b074c834d
* Added db migration
* Made inputting the endpoint more user friendly & foolproof
2024-10-30 20:48:47 +01:00

16 lines
412 B
JavaScript

exports.up = function (knex) {
// Add new column monitor.api_key
return knex.schema
.alterTable("monitor", function (table) {
table.string("api_key", 255).notNullable();
});
};
exports.down = function (knex) {
// Drop column monitor.api_key
return knex.schema
.alterTable("monitor", function (table) {
table.dropColumn("api_key");
});
};