cascading delete, mcaptcha add/del and test suite

This commit is contained in:
realaravinth
2021-03-11 20:58:18 +05:30
parent 6be10af6fd
commit 096dcd32e4
8 changed files with 287 additions and 85 deletions

View File

@@ -1,6 +1,7 @@
CREATE TABLE IF NOT EXISTS mcaptcha_config (
config_id SERIAL PRIMARY KEY NOT NULL,
ID INTEGER references mcaptcha_users(ID),
domain_name VARCHAR(100) NOT NULL references mcaptcha_domains(name) ON DELETE CASCADE,
key VARCHAR(100) NOT NULL UNIQUE,
name VARCHAR(100) NOT NULL UNIQUE,
duration INTEGER NOT NULL DEFAULT 30
);