Skip to content

Commit

Permalink
modify original sql RULE
Browse files Browse the repository at this point in the history
  • Loading branch information
ballPointPenguin committed Apr 7, 2023
1 parent 8fe111e commit 674abc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/postgres/migrations/000000_initial.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 674abc2

Please sign in to comment.