refactor(#IVY9T): 字典表Code列定义更改为2000个字符
#Issue https://gitee.com/LongbowEnterprise/dashboard/issues?id=IVY9T Comment #IVY9T 更改为2000 #Comment link #IVY9T
This commit is contained in:
parent
20c870111f
commit
05374f7794
Binary file not shown.
|
@ -65,7 +65,7 @@
|
|||
</div>
|
||||
<div class="form-group col-12">
|
||||
<label class="control-label" for="dictCode">字典代码</label>
|
||||
<input type="text" class="form-control flex-sm-fill" id="dictCode" placeholder="不可为空,500字以内" maxlength="500" data-valid="true" />
|
||||
<input type="text" class="form-control flex-sm-fill" id="dictCode" placeholder="不可为空,2000字以内" maxlength="2000" data-valid="true" />
|
||||
</div>
|
||||
<div class="form-group form-group-dropdown col-12">
|
||||
<label class="control-label" for="dictDefine">字典类型</label>
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace Bootstrap.DataAccess
|
|||
{
|
||||
if (dict.Category.Length > 50) dict.Category = dict.Category.Substring(0, 50);
|
||||
if (dict.Name.Length > 50) dict.Name = dict.Name.Substring(0, 50);
|
||||
if (dict.Code.Length > 50) dict.Code = dict.Code.Substring(0, 50);
|
||||
if (dict.Code.Length > 2000) dict.Code = dict.Code.Substring(0, 2000);
|
||||
|
||||
DbManager.Create().Save(dict);
|
||||
return true;
|
||||
|
|
|
@ -342,7 +342,7 @@ CREATE TABLE [dbo].[Dicts](
|
|||
[ID] [int] IDENTITY(1,1) NOT NULL,
|
||||
[Category] [nvarchar](50) NOT NULL,
|
||||
[Name] [nvarchar](50) NOT NULL,
|
||||
[Code] [nvarchar](500) NOT NULL,
|
||||
[Code] [nvarchar](2000) NOT NULL,
|
||||
[Define] [int] NOT NULL,
|
||||
CONSTRAINT [PK_dbo.Dict] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
|
|
|
@ -113,7 +113,7 @@ CREATE TABLE Dicts(
|
|||
ID INTEGER PRIMARY KEY Auto_increment,
|
||||
Category VARCHAR (50) NOT NULL,
|
||||
Name VARCHAR (50) NOT NULL,
|
||||
Code VARCHAR (500) NOT NULL,
|
||||
Code VARCHAR (2000) NOT NULL,
|
||||
Define INT NOT NULL DEFAULT 1
|
||||
);
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ CREATE TABLE Dicts(
|
|||
ID SERIAL PRIMARY KEY,
|
||||
Category VARCHAR (50) NOT NULL,
|
||||
Name VARCHAR (50) NOT NULL,
|
||||
Code VARCHAR (500) NOT NULL,
|
||||
Code VARCHAR (2000) NOT NULL,
|
||||
Define INT NOT NULL DEFAULT 1
|
||||
);
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ CREATE TABLE Dicts(
|
|||
ID INTEGER PRIMARY KEY,
|
||||
Category VARCHAR (50) NOT NULL,
|
||||
Name VARCHAR (50) NOT NULL,
|
||||
Code VARCHAR (500) NOT NULL,
|
||||
Code VARCHAR (2000) NOT NULL,
|
||||
Define INT NOT NULL DEFAULT (1)
|
||||
);
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue