From 674abc2f94f1bdeb917f26d02515a7d9b100b75c Mon Sep 17 00:00:00 2001 From: Bennie Rosas Date: Thu, 6 Apr 2023 22:31:20 -0500 Subject: [PATCH] modify original sql RULE --- server/postgres/migrations/000000_initial.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/postgres/migrations/000000_initial.sql b/server/postgres/migrations/000000_initial.sql index d2d56a9e4..d85b9bed8 100644 --- a/server/postgres/migrations/000000_initial.sql +++ b/server/postgres/migrations/000000_initial.sql @@ -826,7 +826,7 @@ CREATE RULE on_vote_insert_update_unique_table AS DO ALSO INSERT INTO votes_latest_unique (zid, pid, tid, vote, weight_x_32767, modified) values (NEW.zid, NEW.pid, NEW.tid, NEW.vote, NEW.weight_x_32767, NEW.created) - ON CONFLICT (zid, pid, tid) DO UPDATE SET vote = excluded.vote, modified = NEW.created; + ON CONFLICT (zid, pid, tid) DO UPDATE SET vote = excluded.vote, modified = excluded.modified; CREATE TABLE crowd_mod (