mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-30 01:36:28 -05:00
62780001f7
* [empty commit] pull request for remote browser support * Remote browser: Added UI screens and DB tables. * Remote browser working * Fixing tests * Fix tests * Fix tests * fix tests * Test browser * revert init_db.js * Changed drop down to ActionSelect * Fix translations * added remote browsers toggle * revert changes package-lock * Fix bad english * Set default remote browser * Remote browsers Requested changes * fixed description.
22 lines
788 B
JavaScript
22 lines
788 B
JavaScript
exports.up = function (knex) {
|
|
return knex.schema
|
|
.createTable("remote_browser", function (table) {
|
|
table.increments("id");
|
|
table.string("name", 255).notNullable();
|
|
table.string("url", 255).notNullable();
|
|
table.integer("user_id").unsigned();
|
|
}).alterTable("monitor", function (table) {
|
|
// Add new column monitor.remote_browser
|
|
table.integer("remote_browser").nullable().defaultTo(null).unsigned()
|
|
.index()
|
|
.references("id")
|
|
.inTable("remote_browser");
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema.dropTable("remote_browser").alterTable("monitor", function (table) {
|
|
table.dropColumn("remote_browser");
|
|
});
|
|
};
|