Skip to content

Commit

Permalink
updated comments on tmp sql migration to use CREATE..AS..SELECT per a…
Browse files Browse the repository at this point in the history
…greement on pr feedback for using this mechanism
  • Loading branch information
sreuland committed Jun 6, 2022
1 parent 3c09ec7 commit 9feaac2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ DROP TABLE txsub_results;

-- used to temporarily store filtered-out transactions
-- needed by the transaction system
-- TODO - is this acceptable to do CREATE..SELECT..AS,
--
-- any future migrations that would change history_transactions
-- require dropping history_transactions_filtered_tmp, and rerunning this CREATE..SELECT..AS
-- to keep the tmp table in sync with schema.
CREATE TABLE history_transactions_filtered_tmp AS
select * FROM history_transactions
WHERE ledger_sequence IS NULL;
Expand Down

0 comments on commit 9feaac2

Please sign in to comment.