mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
fix(storage): new auth log schema request method length (#2656)
This is a fix to the authentication_logs schema that prevents the VARCHAR from being insufficient for HTTP request methods such as PATCH, DELETE, OPTIONS, CONNECT.
This commit is contained in:
parent
6aed9f9561
commit
2075e76015
|
@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS authentication_logs (
|
||||||
auth_type VARCHAR(5) NOT NULL DEFAULT '1FA',
|
auth_type VARCHAR(5) NOT NULL DEFAULT '1FA',
|
||||||
remote_ip VARCHAR(47) NULL DEFAULT NULL,
|
remote_ip VARCHAR(47) NULL DEFAULT NULL,
|
||||||
request_uri TEXT NOT NULL,
|
request_uri TEXT NOT NULL,
|
||||||
request_method VARCHAR(4) NOT NULL DEFAULT '',
|
request_method VARCHAR(8) NOT NULL DEFAULT '',
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS authentication_logs (
|
||||||
auth_type VARCHAR(5) NOT NULL DEFAULT '1FA',
|
auth_type VARCHAR(5) NOT NULL DEFAULT '1FA',
|
||||||
remote_ip VARCHAR(47) NULL DEFAULT NULL,
|
remote_ip VARCHAR(47) NULL DEFAULT NULL,
|
||||||
request_uri TEXT,
|
request_uri TEXT,
|
||||||
request_method VARCHAR(4) NOT NULL DEFAULT '',
|
request_method VARCHAR(8) NOT NULL DEFAULT '',
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS authentication_logs (
|
||||||
auth_type VARCHAR(5) NOT NULL DEFAULT '1FA',
|
auth_type VARCHAR(5) NOT NULL DEFAULT '1FA',
|
||||||
remote_ip VARCHAR(47) NULL DEFAULT NULL,
|
remote_ip VARCHAR(47) NULL DEFAULT NULL,
|
||||||
request_uri TEXT,
|
request_uri TEXT,
|
||||||
request_method VARCHAR(4) NOT NULL DEFAULT '',
|
request_method VARCHAR(8) NOT NULL DEFAULT '',
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user