mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -05:00
docs: example SQL to delete old events
Added SQL Query example to delete events older than 30 days.
This commit is contained in:
parent
4adad4c3a9
commit
34f497a650
|
@ -112,7 +112,8 @@ seen" policy.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
PRAGMA foreign_keys = ON;
|
PRAGMA foreign_keys = ON;
|
||||||
TODO!
|
|
||||||
|
DELETE FROM event WHERE first_seen < CAST(strftime('%s', date('now', '-30 day')) AS INT);
|
||||||
```
|
```
|
||||||
|
|
||||||
### Delete Profile Events with No Recent Events
|
### Delete Profile Events with No Recent Events
|
||||||
|
|
Loading…
Reference in New Issue
Block a user