Skip to content
Snippets Groups Projects
Commit 2da64e88 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

explain this schema change too

parent 873b6465
No related branches found
No related tags found
1 merge request!212Close the trust loop
...@@ -208,6 +208,17 @@ _UPGRADES = { ...@@ -208,6 +208,17 @@ _UPGRADES = {
""", """,
""" """
-- Give each unblinded token a reference to the [redemption-groups]
-- table identifying the group that token arrived with. This lets us
-- act collectively on tokens from these groups and identify tokens
-- which are spendable.
--
-- The default value is provided for rows that
-- existed prior to this upgrade which had no group association. For
-- unblinded tokens to exist at all there must be at least one voucher
-- in the vouchers table. [redemption-groups] will therefore have at
-- least one row added to it (by the statement a few lines above).
-- Note that SQLite3 rowid numbering begins at 1.
ALTER TABLE [unblinded-tokens] ADD COLUMN [redemption-group] integer DEFAULT 1 ALTER TABLE [unblinded-tokens] ADD COLUMN [redemption-group] integer DEFAULT 1
""", """,
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment