mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-02-16 16:39:46 +03:00
fix: worker_type should not be unique
This commit is contained in:
parent
2b82af9a0c
commit
8ca48d85ff
3 changed files with 3 additions and 4 deletions
|
@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS mcaptcha_pow_analytics (
|
|||
config_id INTEGER NOT NULL,
|
||||
time INTEGER NOT NULL,
|
||||
difficulty_factor INTEGER NOT NULL,
|
||||
worker_type VARCHAR(100) NOT NULL UNIQUE,
|
||||
worker_type VARCHAR(100) NOT NULL,
|
||||
CONSTRAINT `fk_mcaptcha_config_id_pow_analytics`
|
||||
FOREIGN KEY (config_id)
|
||||
REFERENCES mcaptcha_config (config_id)
|
||||
|
|
|
@ -521,7 +521,7 @@
|
|||
"type_info": {
|
||||
"char_set": 224,
|
||||
"flags": {
|
||||
"bits": 4101
|
||||
"bits": 4097
|
||||
},
|
||||
"max_size": 400,
|
||||
"type": "VarString"
|
||||
|
|
|
@ -2,7 +2,6 @@ CREATE TABLE IF NOT EXISTS mcaptcha_pow_analytics (
|
|||
config_id INTEGER references mcaptcha_config(config_id) ON DELETE CASCADE,
|
||||
time INTEGER NOT NULL,
|
||||
difficulty_factor INTEGER NOT NULL,
|
||||
worker_type VARCHAR(100) NOT NULL UNIQUE,
|
||||
worker_type VARCHAR(100) NOT NULL,
|
||||
ID SERIAL PRIMARY KEY NOT NULL
|
||||
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue