Compare commits
1 Commits
3-red-head
...
4-bigint-m
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
103432820a |
@@ -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>
|
||||
)}
|
||||
{config.signal_type !== 'green' && (
|
||||
<th className="text-right px-2 py-1 text-red-400">Red</th>
|
||||
<th className="text-right px-2 py-1 text-red-400">Red (NP)</th>
|
||||
)}
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
12
web/migrations/004_add_bigint_signals.js
Normal file
12
web/migrations/004_add_bigint_signals.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/** @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`);
|
||||
};
|
||||
Reference in New Issue
Block a user