Something went wrong. Try again.
Our Personal Data Server from scratch! forked from tranquil.farm/tranquil-pds
Something went wrong. Try again.
246 B · 8 lines
SQL
at main
123456789DELETE FROM account_backups aWHERE EXISTS ( SELECT 1 FROM account_backups b WHERE a.storage_key = b.storage_key AND a.created_at < b.created_at);
CREATE UNIQUE INDEX idx_account_backups_storage_key ON account_backups(storage_key);