tighten validation, add tests

This commit is contained in:
Alex committed 2026-05-11 11:28:39 -07:00
1 parent 78fdc548bb
commit 6b63091d89
3 files changed
+111 -20

No files matched your search

@@ -1,15 +0,0 @@
import type { Pool } from "pg";
export const addStrategyToMonitors = async (pool: Pool) => {
await pool.query(`
ALTER TABLE monitors
ADD COLUMN IF NOT EXISTS strategy TEXT DEFAULT NULL;
`);
};
export const dropStrategyFromMonitors = async (pool: Pool) => {
await pool.query(`
ALTER TABLE monitors
DROP COLUMN IF EXISTS strategy;
`);
};