From 8b98c6944666040d27b9aa049a062e6a2ed06b7a Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Mon, 4 Mar 2019 16:40:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC=EF=BC=9A?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E7=9B=B8=E5=85=B3=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=84=9A=E6=9C=AC=20#IS7RI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DatabaseScripts/Install.sql | 7 +++++-- DatabaseScripts/MySQL/install.sql | 10 ++++++---- DatabaseScripts/Postgresql/install.sql | 10 ++++++---- DatabaseScripts/SQLite/Install.sql | 8 +++++--- 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/DatabaseScripts/Install.sql b/DatabaseScripts/Install.sql index d472fd1e..3a60f7cf 100644 --- a/DatabaseScripts/Install.sql +++ b/DatabaseScripts/Install.sql @@ -267,14 +267,17 @@ CREATE TABLE [dbo].[Logs]( [CRUD] [nvarchar](50) NOT NULL, [UserName] [varchar](50) NOT NULL, [LogTime] [datetime] NOT NULL, - [ClientIp] [varchar](15) NOT NULL, - [ClientAgent] [nvarchar](500) NOT NULL, + [Ip] [varchar](15) NOT NULL, + [Browser] [varchar](50) NULL, + [OS] [varchar](50) NULL, + [City] [nvarchar](50) NULL, [RequestUrl] [nvarchar](500) NOT NULL, CONSTRAINT [PK_Logs] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] + GO SET ANSI_PADDING OFF GO diff --git a/DatabaseScripts/MySQL/install.sql b/DatabaseScripts/MySQL/install.sql index 47c5f1f3..fbb9057c 100644 --- a/DatabaseScripts/MySQL/install.sql +++ b/DatabaseScripts/MySQL/install.sql @@ -81,10 +81,12 @@ CREATE TABLE Logs( ID INTEGER PRIMARY KEY Auto_increment, CRUD VARCHAR (50) NOT NULL, UserName VARCHAR (50) NOT NULL, - LogTime DATETIME NOT NULL, - ClientIp VARCHAR (15) NOT NULL, - ClientAgent VARCHAR (500) NOT NULL, - RequestUrl VARCHAR (500) NOT NULL + LogTime DATETIME NOT NULL, + Ip VARCHAR (15) NOT NULL, + Browser VARCHAR (50) NULL, + OS VARCHAR (50) NULL, + City VARCHAR (50) NULL, + RequestUrl VARCHAR (500) NOT NULL ); CREATE TABLE `Groups`( diff --git a/DatabaseScripts/Postgresql/install.sql b/DatabaseScripts/Postgresql/install.sql index b7c7a485..60e31eab 100644 --- a/DatabaseScripts/Postgresql/install.sql +++ b/DatabaseScripts/Postgresql/install.sql @@ -81,10 +81,12 @@ CREATE TABLE Logs( ID SERIAL PRIMARY KEY, CRUD VARCHAR (50) NOT NULL, UserName VARCHAR (50) NOT NULL, - LogTime DATE NOT NULL, - ClientIp VARCHAR (15) NOT NULL, - ClientAgent VARCHAR (500) NOT NULL, - RequestUrl VARCHAR (500) NOT NULL + LogTime DATE NOT NULL, + Ip VARCHAR (15) NOT NULL, + Browser VARCHAR (50) NULL, + OS VARCHAR (50) NULL, + City VARCHAR (50) NULL, + RequestUrl VARCHAR (500) NOT NULL ); CREATE TABLE Groups( diff --git a/DatabaseScripts/SQLite/Install.sql b/DatabaseScripts/SQLite/Install.sql index e99bb794..861b51f3 100644 --- a/DatabaseScripts/SQLite/Install.sql +++ b/DatabaseScripts/SQLite/Install.sql @@ -80,10 +80,12 @@ CREATE TABLE NavigationRole( CREATE TABLE Logs( [ID] INTEGER PRIMARY KEY, [CRUD] VARCHAR (50) NOT NULL, - [UserName] VARCHAR (50) NOT NULL, + [UserName] VARCHAR (50) NOT NULL COLLATE NOCASE, [LogTime] DATETIME NOT NULL, - [ClientIp] VARCHAR (15) NOT NULL, - [ClientAgent] VARCHAR (500) NOT NULL, + [Ip] VARCHAR (15) NOT NULL, + [Browser] VARCHAR (50) NULL, + [OS] VARCHAR (50) NULL, + [City] VARCHAR (50) NULL, [RequestUrl] VARCHAR (500) NOT NULL );