From 494199cc2a52bcfa8e79a549f04eb65337e5024c Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Wed, 22 Apr 2020 09:25:56 -0400 Subject: [PATCH] Upgrade the database schema to include a place to store the counter --- src/_zkapauthorizer/schema.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/_zkapauthorizer/schema.py b/src/_zkapauthorizer/schema.py index fc078c2..66583d4 100644 --- a/src/_zkapauthorizer/schema.py +++ b/src/_zkapauthorizer/schema.py @@ -131,4 +131,11 @@ _UPGRADES = { ALTER TABLE [vouchers] ADD COLUMN [public-key] text """, ], + + 2: [ + """ + -- Keep track of progress through redemption of each voucher. + ALTER TABLE [vouchers] ADD COLUMN [counter] integer + """, + ], } -- GitLab