mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-22 08:25:52 -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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user