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.
pull/2657/head^2
James Elliott 2021-12-02 11:36:04 +11:00 committed by GitHub
parent 6aed9f9561
commit 2075e76015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS authentication_logs (
auth_type VARCHAR(5) NOT NULL DEFAULT '1FA',
remote_ip VARCHAR(47) NULL DEFAULT NULL,
request_uri TEXT NOT NULL,
request_method VARCHAR(4) NOT NULL DEFAULT '',
request_method VARCHAR(8) NOT NULL DEFAULT '',
PRIMARY KEY (id)
);

View File

@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS authentication_logs (
auth_type VARCHAR(5) NOT NULL DEFAULT '1FA',
remote_ip VARCHAR(47) NULL DEFAULT NULL,
request_uri TEXT,
request_method VARCHAR(4) NOT NULL DEFAULT '',
request_method VARCHAR(8) NOT NULL DEFAULT '',
PRIMARY KEY (id)
);

View File

@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS authentication_logs (
auth_type VARCHAR(5) NOT NULL DEFAULT '1FA',
remote_ip VARCHAR(47) NULL DEFAULT NULL,
request_uri TEXT,
request_method VARCHAR(4) NOT NULL DEFAULT '',
request_method VARCHAR(8) NOT NULL DEFAULT '',
PRIMARY KEY (id)
);