From 2d3b074959e64e05eae168c9052484f10e85508a Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 26 Feb 2019 17:02:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC=EF=BC=9A?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=BF=BD=E7=95=A5=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99=E4=B8=8E=E4=B8=8D=E5=8F=AF=E4=B8=BA=E7=A9=BA=E7=BA=A6?= =?UTF-8?q?=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DatabaseScripts/Install.sql | 8 ++++---- DatabaseScripts/MySQL/install.sql | 8 ++++---- DatabaseScripts/Postgresql/install.sql | 8 ++++---- DatabaseScripts/SQLite/InitData.sql | 2 +- DatabaseScripts/SQLite/Install.sql | 20 ++++++++++---------- UnitTest/DB/UnitTest.db | Bin 77824 -> 81920 bytes 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/DatabaseScripts/Install.sql b/DatabaseScripts/Install.sql index 419b3f46..7f84d3e6 100644 --- a/DatabaseScripts/Install.sql +++ b/DatabaseScripts/Install.sql @@ -101,7 +101,7 @@ SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Roles]( [ID] [int] IDENTITY(1,1) NOT NULL, - [RoleName] [nvarchar](50) NULL, + [RoleName] [nvarchar](50) NOT NULL, [Description] [nvarchar](500) NULL, CONSTRAINT [PK_Roles] PRIMARY KEY CLUSTERED ( @@ -288,7 +288,7 @@ SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Groups]( [ID] [int] IDENTITY(1,1) NOT NULL, - [GroupName] [nvarchar](50) NULL, + [GroupName] [nvarchar](50) NOT NULL, [Description] [nvarchar](500) NULL, CONSTRAINT [PK_Groups] PRIMARY KEY CLUSTERED ( @@ -451,8 +451,8 @@ CREATE TABLE [dbo].[RejectUsers]( [UserName] [varchar](50) NOT NULL, [DisplayName] [nvarchar](50) NOT NULL, [RegisterTime] [datetime] NOT NULL, - [RejectedBy] [varchar](50) NULL, - [RejectedTime] [datetime] NULL, + [RejectedBy] [varchar](50) NOT NULL, + [RejectedTime] [datetime] NOT NULL, [RejectedReason] [nvarchar](50) NULL, CONSTRAINT [PK_RejectUsers] PRIMARY KEY CLUSTERED ( diff --git a/DatabaseScripts/MySQL/install.sql b/DatabaseScripts/MySQL/install.sql index 74ed2c3f..d905ed6b 100644 --- a/DatabaseScripts/MySQL/install.sql +++ b/DatabaseScripts/MySQL/install.sql @@ -29,7 +29,7 @@ CREATE TABLE UserGroup( CREATE TABLE Roles( ID INTEGER PRIMARY KEY Auto_increment, - RoleName VARCHAR (50) NULL, + RoleName VARCHAR (50) NOT NULL, Description VARCHAR (500) NULL ); @@ -88,7 +88,7 @@ CREATE TABLE Logs( CREATE TABLE `Groups`( ID INTEGER PRIMARY KEY Auto_increment, - GroupName VARCHAR (50) NULL, + GroupName VARCHAR (50) NOT NULL, Description VARCHAR (500) NULL ); @@ -140,7 +140,7 @@ CREATE TABLE RejectUsers( UserName VARCHAR (50) NOT NULL, DisplayName VARCHAR (50) NOT NULL, RegisterTime DATETIME NOT NULL, - RejectedBy VARCHAR (50) NULL, - RejectedTime DATETIME NULL, + RejectedBy VARCHAR (50) NOT NULL, + RejectedTime DATETIME NOT NULL, RejectedReason VARCHAR (50) NULL ); \ No newline at end of file diff --git a/DatabaseScripts/Postgresql/install.sql b/DatabaseScripts/Postgresql/install.sql index 81b2bfdf..d058f810 100644 --- a/DatabaseScripts/Postgresql/install.sql +++ b/DatabaseScripts/Postgresql/install.sql @@ -29,7 +29,7 @@ CREATE TABLE UserGroup( CREATE TABLE Roles( ID SERIAL PRIMARY KEY, - RoleName VARCHAR (50) NULL, + RoleName VARCHAR (50) NOT NULL, Description VARCHAR (500) NULL ); @@ -88,7 +88,7 @@ CREATE TABLE Logs( CREATE TABLE Groups( ID SERIAL PRIMARY KEY, - GroupName VARCHAR (50) NULL, + GroupName VARCHAR (50) NOT NULL, Description VARCHAR (500) NULL ); @@ -140,7 +140,7 @@ CREATE TABLE RejectUsers( UserName VARCHAR (50) NOT NULL, DisplayName VARCHAR (50) NOT NULL, RegisterTime DATE NOT NULL, - RejectedBy VARCHAR (50) NULL, - RejectedTime DATE NULL, + RejectedBy VARCHAR (50) NOT NULL, + RejectedTime DATE NOT NULL, RejectedReason VARCHAR (50) NULL ); \ No newline at end of file diff --git a/DatabaseScripts/SQLite/InitData.sql b/DatabaseScripts/SQLite/InitData.sql index a35fa610..45bf1390 100644 --- a/DatabaseScripts/SQLite/InitData.sql +++ b/DatabaseScripts/SQLite/InitData.sql @@ -79,7 +79,7 @@ Delete From [Dicts] Where Category = '应用程序' and Code = 2; INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('应用程序', '测试平台', 2, 0); Delete From [Dicts] Where Category = '测试平台'; -Insert into Dicts (Category, [Name], Code, Define) values ('测试平台', '网站标题', 'BA Client', 1); +Insert into Dicts (Category, [Name], Code, Define) values ('测试平台', '网站标题', '前台演示系统', 1); Insert into Dicts (Category, [Name], Code, Define) values ('测试平台', '网站页脚', '通用后台管理测试平台', 1); Insert into Dicts (Category, [Name], Code, Define) values ('测试平台', '个人中心地址', 'http://localhost:50852/Admin/Profiles', 1); Insert into Dicts (Category, [Name], Code, Define) values ('测试平台', '系统设置地址', 'http://localhost:50852/Admin/Settings', 1); diff --git a/DatabaseScripts/SQLite/Install.sql b/DatabaseScripts/SQLite/Install.sql index 31b1f2cc..c3860c1c 100644 --- a/DatabaseScripts/SQLite/Install.sql +++ b/DatabaseScripts/SQLite/Install.sql @@ -8,7 +8,7 @@ [ApprovedTime] DATETIME, [ApprovedBy] VARCHAR (50), [Description] VARCHAR (500) NOT NULL, - [RejectedBy] VARCHAR (50), + [RejectedBy] VARCHAR (50) COLLATE NOCASE, [RejectedTime] DATETIME, [RejectedReason] VARCHAR (50), [Icon] VARCHAR (50), @@ -29,7 +29,7 @@ CREATE TABLE UserGroup( CREATE TABLE Roles( [ID] INTEGER PRIMARY KEY, - [RoleName] VARCHAR (50) NULL, + [RoleName] VARCHAR (50) NOT NULL COLLATE NOCASE, [Description] VARCHAR (500) NULL ); @@ -41,7 +41,7 @@ CREATE TABLE RoleGroup( CREATE TABLE RoleApp( [ID] INTEGER PRIMARY KEY, - [AppID] VARCHAR (50) NOT NULL, + [AppID] VARCHAR (50) NOT NULL COLLATE NOCASE, [RoleID] INT NOT NULL ); @@ -88,7 +88,7 @@ CREATE TABLE Logs( CREATE TABLE Groups( [ID] INTEGER PRIMARY KEY, - [GroupName] VARCHAR (50) NULL, + [GroupName] VARCHAR (50) NOT NULL COLLATE NOCASE, [Description] VARCHAR (500) NULL ); @@ -127,9 +127,9 @@ CREATE TABLE Messages( CREATE TABLE Tasks( [ID] INTEGER PRIMARY KEY, - [TaskName] VARCHAR (500) NOT NULL, - [AssignName] VARCHAR (50) NOT NULL, - [UserName] VARCHAR (50) NOT NULL, + [TaskName] VARCHAR (500) NOT NULL COLLATE NOCASE, + [AssignName] VARCHAR (50) NOT NULL COLLATE NOCASE, + [UserName] VARCHAR (50) NOT NULL COLLATE NOCASE, [TaskTime] INT NOT NULL, [TaskProgress] INT NOT NULL, [AssignTime] DATETIME NOT NULL @@ -137,10 +137,10 @@ CREATE TABLE Tasks( CREATE TABLE RejectUsers( [ID] INTEGER PRIMARY KEY, - [UserName] VARCHAR (50) NOT NULL, + [UserName] VARCHAR (50) NOT NULL COLLATE NOCASE, [DisplayName] VARCHAR (50) NOT NULL, [RegisterTime] DATETIME NOT NULL, - [RejectedBy] VARCHAR (50) NULL, - [RejectedTime] DATETIME NULL, + [RejectedBy] VARCHAR (50) NOT NULL COLLATE NOCASE, + [RejectedTime] DATETIME NOT NULL, [RejectedReason] VARCHAR (50) NULL ); \ No newline at end of file diff --git a/UnitTest/DB/UnitTest.db b/UnitTest/DB/UnitTest.db index 52b942db25db497ddb9397acd22e75f24eea8de4..e57694fac5e8bb357ef10fd36a7ba97444b4dd47 100644 GIT binary patch delta 1754 zcmeHHUr19?7{A}9_uPNmy_>FW&e(Fz|JpV!bOvI&3|dWXiavyx42cv+(G0=NI#R7r)-5U z#8YCLxD&ZzvXhx)VkR*nWFUPNDI`as3Lfe8dKmTgb)4w-`#OTBf-(ts1sZuvt=HqJ z@wqKWy|p#R+}NeCZOgSQtf{%^r9wCkYP_h(244KCs0O1)CD#cJ$aU&YcJ>8jQb*g1 z;U+Gpwa8Jx6ofonlrI4bsHW{DPz)wBi}Xe#gpBgK`qRDrfnbt3+(RCYHWUF$EstYl z-VO%obvhWO<#nFku3!S}?Nt(h#%m}a7@R`|fWnx{!MiAfI8QYKAZ%uG@gs^CeM|-H z%pj58WP*_)d6%Z%ZhuW6upuZ~mk-`;wHH_e4zpp}l$QKq9X4@ozdEK(yumR*4}d&3 zd<0LahEsPG_oxqoU`f4-e*PlR4~1FY;w*9Qvp5~D@-mm*>9jj4OYA?S#AUOwL4*mV zpwzL=7zK8t1$K%(&o+x1!OG&6!7$Dm+%IOG`&0|_7(KJ2TU;k+VCSXp<1Bvr@(r>Z zNWx}w;0JR?Z9IHAK7Rkh0Umo(?_a+r*XY`q(bg6j!IX#)8#1J(sVXc!Lz|We^0VK Rti-M@-?z#W=uQleJwxw-ubF+J`hteRHn;|VqnYJZSW*4(ov$nm~w#2YS zIu3D-f+Fc9iKI(N54{Ib289s)vj?3H&@P%maNjU6F{Np?f;T<6>W0JQ^K1DIRo&g3)la zeNR{ty%4amdSta);e00Ddn6%7ds8P;Dj1|mFLX$(4_vAsK1bF`86U(!C(Zbv8uZhj ze6Ry-Ax;&@_p1V-fxdJ~1)UV~!wr)&6mAQ4MWRlR;AOn|2rGT}gA=&vngIC0&N0Yp zvq3JU-rjX4nHfy|LRLE32)oxPU%)ZWRhc)_$ZD~`5UqAblKrW2F%vuqKw$xS@Mlzs zPop>>`~=kkC4WK307$%_b_0^n(rthbu){Q^QQw zz0#dATm)*HeQSkTjGpu84wv9Iu(L|{IE$aYe(9~RBng+x zK`%TgEZ(~^|4^PEohm&lmL{(*+`O=KYkX(W*_s#-Po?D-Z-mVgn!`png_a53ZCx#Q z{U7t*Mc9AYi2PAM~wdGg0koiumi