Bugfix: Events marked as "removed" And deleteDate is set so the Notification does not get sent
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import db from "../src/sql";
|
||||
|
||||
const run_migration = db.transaction(() => {
|
||||
// SQL 1: Insert a new user
|
||||
// SQL 1: remove duplicates by uid
|
||||
db.run(`DELETE FROM events
|
||||
WHERE rowid NOT IN (
|
||||
SELECT MIN(rowid)
|
||||
@@ -9,7 +9,7 @@ const run_migration = db.transaction(() => {
|
||||
GROUP BY uid
|
||||
);`);
|
||||
|
||||
// SQL 2: Update product stock
|
||||
// SQL 2: create new table with unique key
|
||||
db.run(`CREATE TABLE events_new (
|
||||
"event_uid" INTEGER PRIMARY KEY,
|
||||
"uid" TEXT NOT NULL UNIQUE,
|
||||
|
||||
Reference in New Issue
Block a user