Files
kener/migrations/20260117120000_add_is_hidden_to_monitors.ts
T
2026-01-22 11:19:13 +05:30

14 lines
370 B
TypeScript

import type { Knex } from "knex";
export async function up(knex: Knex): Promise<void> {
await knex.schema.alterTable("monitors", (table) => {
table.string("is_hidden").defaultTo("NO").notNullable();
});
}
export async function down(knex: Knex): Promise<void> {
await knex.schema.alterTable("monitors", (table) => {
table.dropColumn("is_hidden");
});
}