uid is required to be unique for the the Changed Events (with the new Data) to be inserted without creating new Rows.
6 lines
91 B
SQL
6 lines
91 B
SQL
DELETE FROM events
|
|
WHERE rowid NOT IN (
|
|
SELECT MIN(rowid)
|
|
FROM events
|
|
GROUP BY uid
|
|
); |