db(#I12FGX): 增加数据库脚本执行日志
This commit is contained in:
parent
e0d2f7bdf7
commit
165ee1a960
|
@ -182,4 +182,11 @@ CREATE TABLE Traces(
|
|||
City VARCHAR (50),
|
||||
RequestUrl VARCHAR (500) NOT NULL,
|
||||
UserAgent VARCHAR (2000) NULL
|
||||
);
|
||||
);
|
||||
|
||||
CREATE TABLE DBLogs (
|
||||
ID INTEGER PRIMARY KEY Auto_increment,
|
||||
UserName VARCHAR (50) NULL,
|
||||
SQL VARCHAR NOT NULL,
|
||||
LogTime DATETIME NOT NULL
|
||||
);
|
||||
|
|
|
@ -182,4 +182,11 @@ CREATE TABLE Traces(
|
|||
City VARCHAR (50),
|
||||
RequestUrl VARCHAR (500) NOT NULL,
|
||||
UserAgent VARCHAR (2000) NULL
|
||||
);
|
||||
);
|
||||
|
||||
CREATE TABLE DBLogs (
|
||||
ID SERIAL PRIMARY KEY,
|
||||
UserName VARCHAR (50) NULL,
|
||||
SQL VARCHAR (2000) NOT NULL,
|
||||
LogTime DATE NOT NULL
|
||||
);
|
||||
|
|
|
@ -182,4 +182,11 @@ CREATE TABLE Traces(
|
|||
City VARCHAR (50),
|
||||
RequestUrl VARCHAR (500) NOT NULL,
|
||||
UserAgent VARCHAR (2000)
|
||||
);
|
||||
|
||||
CREATE TABLE DBLogs (
|
||||
ID INTEGER PRIMARY KEY,
|
||||
UserName VARCHAR (50) COLLATE NOCASE,
|
||||
SQL VARCHAR NOT NULL,
|
||||
LogTime DATETIME NOT NULL
|
||||
);
|
|
@ -577,4 +577,30 @@ CREATE TABLE [dbo].[Traces](
|
|||
GO
|
||||
|
||||
SET ANSI_PADDING OFF
|
||||
GO
|
||||
GO
|
||||
|
||||
/****** Object: Table [dbo].[DBLogs] Script Date: 09/22/2019 22:06:43 ******/
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
|
||||
SET ANSI_PADDING ON
|
||||
GO
|
||||
|
||||
CREATE TABLE [dbo].[DBLogs](
|
||||
[ID] [int] IDENTITY(1,1) NOT NULL,
|
||||
[UserName] [varchar](50) NULL,
|
||||
[SQL] [nvarchar](max) NOT NULL,
|
||||
[LogTime] [datetime] NOT NULL,
|
||||
CONSTRAINT [PK_DBLogs] 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
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue