Skip to content

Commit

Permalink
Fix missing duplication of modified tables (#4904)
Browse files Browse the repository at this point in the history
  • Loading branch information
neacsu authored Sep 19, 2024
1 parent 2198c1b commit 6f0c8db
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ CREATE TABLE ticket_verification_tmp (
PRIMARY KEY (ticket_id, signer_id)
);

INSERT INTO ticket_verification_tmp
SELECT * FROM ticket_verification;

DROP INDEX ticket_verification_index;
CREATE INDEX ticket_verification_index ON ticket_verification_tmp (ticket_id);

Expand All @@ -85,6 +88,9 @@ CREATE TABLE verified_tickets_tmp (
proposal_id INTEGER REFERENCES redemption_proposals(proposal_id)
);

INSERT INTO verified_tickets_tmp
SELECT * FROM verified_tickets;

DROP INDEX verified_tickets_index;
CREATE INDEX verified_tickets_index ON verified_tickets_tmp (proposal_id);

Expand Down

0 comments on commit 6f0c8db

Please sign in to comment.