Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
f11ee786
Commit
f11ee786
authored
Dec 05, 2020
by
wujj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级sql
parent
6370e20f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
5.2-patch.sql
doc/5.2-patch.sql
+4
-3
index.ftl
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
+2
-0
No files found.
doc/5.2-patch.sql
View file @
f11ee786
...
...
@@ -134,17 +134,18 @@ ALTER TABLE `cms_category` ADD COLUMN `top_id` bigint(20) NULL DEFAULT NULL COM
ALTER
TABLE
`cms_category`
CHANGE
COLUMN
`category_parent_id`
`category_parent_ids`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'父类型编号,多个id逗号'
AFTER
`mdiy_model_id`
;
ALTER
TABLE
`cms_category`
MODIFY
COLUMN
`id`
bigint
(
20
)
UNSIGNED
NOT
NULL
FIRST
;
UPDATE
`cms_category`
SET
`category_id`
=
NULL
WHERE
`category_id`
=
""
;
ALTER
TABLE
`cms_category`
MODIFY
COLUMN
`category_id`
bigint
(
20
)
NULL
DEFAULT
NULL
COMMENT
'所属栏目'
AFTER
`id`
;
UPDATE
`cms_category`
SET
`category_id`
=
NULL
WHERE
`category_id`
=
0
;
ALTER
TABLE
`cms_category`
DROP
COLUMN
`category_manager_id`
;
ALTER
TABLE
`cms_category`
DROP
COLUMN
`app_id`
;
ALTER
TABLE
`cms_category`
MODIFY
COLUMN
`category_id`
bigint
(
20
)
ZEROFILL
NULL
DEFAULT
NULL
COMMENT
'所属栏目'
AFTER
`id`
,
MODIFY
COLUMN
`category_id`
bigint
(
20
)
unsigned
DEFAULT
NULL
COMMENT
'所属栏目'
AFTER
`id`
,
MODIFY
COLUMN
`mdiy_model_id`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'栏目管理的内容模型id'
AFTER
`dict_id`
;
ALTER
TABLE
`cms_content`
CHANGE
COLUMN
`content_category_id`
`category_id`
bigint
(
20
)
UNSIGNED
NULL
COMMENT
'所属栏目'
AFTER
`id`
;
ALTER
TABLE
`cms_content`
MODIFY
COLUMN
`id`
bigint
(
20
)
UNSIGNED
NOT
NULL
FIRST
;
...
...
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
View file @
f11ee786
...
...
@@ -201,6 +201,7 @@
getDictLabel
:
function
(
v
)
{
var
that
=
this
;
var
labels
=
[];
if
(
v
){
v
.
split
(
","
).
forEach
(
function
(
item
)
{
for
(
var
key
in
that
.
categoryFlagOptions
)
{
if
(
item
==
that
.
categoryFlagOptions
[
key
].
dictValue
)
{
...
...
@@ -209,6 +210,7 @@
}
}
});
}
return
labels
.
toString
();
},
//查询列表
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment