mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-01-31 11:03:11 +08:00
Update db/knex_migrations/2026-01-05-0000-add-rss-title.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
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);
|
||||
});
|
||||
}
|
||||
await knex.schema.alterTable("status_page", function (table) {
|
||||
table.string("rss_title", 255);
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = function (knex) {
|
||||
|
||||
Reference in New Issue
Block a user