mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-05-17 08:26:56 +03:00
fix: update the migration js
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
exports.up = function (knex) {
|
||||
return knex.schema
|
||||
.alterTable("status_page", function (table) {
|
||||
exports.up = async function (knex) {
|
||||
// Check if column already exists (created by knex_init_db.js for fresh installs)
|
||||
const hasColumn = await knex.schema.hasColumn("status_page", "rss_title");
|
||||
if (!hasColumn) {
|
||||
await knex.schema.alterTable("status_page", function (table) {
|
||||
table.string("rss_title", 255);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
exports.down = function (knex) {
|
||||
|
||||
Reference in New Issue
Block a user