mirror of
https://github.com/rajnandan1/kener.git
synced 2026-06-23 04:10:22 +00:00
396fc5e3c3
- Revise site configuration documentation to clarify page visibility behavior. - Introduce global page visibility settings with detailed descriptions and functionality. - Modify API server to dynamically select the correct specification path based on environment. - Streamline event fetching logic in event pages to improve performance and maintainability. - Remove unused vault secret management code from the manage API. - Enhance customizations page to support global page visibility settings. - Create new guides for adding custom fonts and custom JavaScript/CSS. - Implement server-side logic for handling events by month with improved date validation.
19 lines
666 B
TypeScript
19 lines
666 B
TypeScript
import type { Knex } from "knex";
|
|
|
|
export async function up(knex: Knex): Promise<void> {
|
|
if (!(await knex.schema.hasTable("maintenance_monitors"))) return;
|
|
const hasCol = await knex.schema.hasColumn("maintenance_monitors", "monitor_impact");
|
|
if (!hasCol) {
|
|
await knex.schema.alterTable("maintenance_monitors", (table) => {
|
|
table.string("monitor_impact").defaultTo("MAINTENANCE").notNullable();
|
|
});
|
|
}
|
|
}
|
|
|
|
export async function down(knex: Knex): Promise<void> {
|
|
if (!(await knex.schema.hasTable("maintenance_monitors"))) return;
|
|
await knex.schema.alterTable("maintenance_monitors", (table) => {
|
|
table.dropColumn("monitor_impact");
|
|
});
|
|
}
|