@coffre/db 0.11.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,6 +120,13 @@
120
120
  "when": 1792814038307,
121
121
  "tag": "0016_spent_tokens",
122
122
  "breakpoints": true
123
+ },
124
+ {
125
+ "idx": 17,
126
+ "version": "7",
127
+ "when": 1792835445795,
128
+ "tag": "0017_capped_alerts",
129
+ "breakpoints": true
123
130
  }
124
131
  ]
125
132
  }
@@ -0,0 +1,7 @@
1
+ -- Capped alerts (T98): when a service's sign-in was last refused `unknown_key` with an alert, so that the next alerts an hour later at the soonest, whichever process sees it. It only adds.
2
+ CREATE TABLE `capped_alerts` (
3
+ `service` text NOT NULL,
4
+ `kind` text NOT NULL,
5
+ `raised_at` integer NOT NULL,
6
+ PRIMARY KEY(`service`, `kind`)
7
+ );