1 Commits

Author SHA1 Message Date
Sebastian Seedorf
5c72559e8e fix: remove misleading (NP) suffix from Red column header 2026-06-05 13:01:15 +02:00
2 changed files with 1 additions and 13 deletions

View File

@@ -42,7 +42,7 @@ export default function TableViz({ config, rows, onEdit, onDelete }: Props) {
<th className="text-right px-2 py-1 text-green-400">Green</th> <th className="text-right px-2 py-1 text-green-400">Green</th>
)} )}
{config.signal_type !== 'green' && ( {config.signal_type !== 'green' && (
<th className="text-right px-2 py-1 text-red-400">Red (NP)</th> <th className="text-right px-2 py-1 text-red-400">Red</th>
)} )}
</tr> </tr>
</thead> </thead>

View File

@@ -1,12 +0,0 @@
/** @type {import('node-pg-migrate').MigrationBuilder} */
exports.up = (pgm) => {
pgm.sql(`ALTER TABLE signals ALTER COLUMN green TYPE bigint`);
pgm.sql(`ALTER TABLE signals ALTER COLUMN red TYPE bigint`);
pgm.sql(`ALTER TABLE alerts ALTER COLUMN threshold TYPE bigint`);
};
exports.down = (pgm) => {
pgm.sql(`ALTER TABLE alerts ALTER COLUMN threshold TYPE integer`);
pgm.sql(`ALTER TABLE signals ALTER COLUMN red TYPE integer`);
pgm.sql(`ALTER TABLE signals ALTER COLUMN green TYPE integer`);
};