Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
2da64e88
Commit
2da64e88
authored
3 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
explain this schema change too
parent
873b6465
No related branches found
No related tags found
1 merge request
!212
Close the trust loop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/_zkapauthorizer/schema.py
+11
-0
11 additions, 0 deletions
src/_zkapauthorizer/schema.py
with
11 additions
and
0 deletions
src/_zkapauthorizer/schema.py
+
11
−
0
View file @
2da64e88
...
@@ -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
"""
,
"""
,
],
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment