feat: track maximum recorded nonce for captcha levels to render progress bar

This commit is contained in:
Aravinth Manivannan
2023-10-29 06:18:01 +05:30
parent 49a8757ead
commit b6497882d7
12 changed files with 356 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
-- Add migration script here
CREATE TABLE IF NOT EXISTS mcaptcha_track_nonce (
nonce INTEGER NOT NULL DEFAULT 0,
level_id INTEGER references mcaptcha_levels(level_id) ON DELETE CASCADE,
ID SERIAL PRIMARY KEY NOT NULL
);