Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
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
wangpeng
dinky
Commits
46f2dac8
Unverified
Commit
46f2dac8
authored
Jan 05, 2023
by
zhu-mingye
Committed by
GitHub
Jan 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix][web,sql] fix sqlfile && fix i18n (#1506)
* hotfix sql file * hotfix sql file (#1500) * [fix][web] fix i18n (#1505)
parent
640fadd8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
dinky.sql
dlink-doc/sql/dinky.sql
+12
-12
dinky_ddl.sql
dlink-doc/sql/upgrade/0.7.0_schema/mysql/dinky_ddl.sql
+4
-2
index.tsx
...mponents/Studio/StudioRightTool/StudioSqlConfig/index.tsx
+1
-1
No files found.
dlink-doc/sql/dinky.sql
View file @
46f2dac8
...
...
@@ -667,18 +667,18 @@ VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Admin', NULL, NULL, NUL
-- ----------------------------
DROP
TABLE
IF
EXISTS
`dlink_fragment`
;
CREATE
TABLE
`dlink_fragment`
(
`id`
int
NOT
NULL
AUTO_INCREMENT
COMMENT
'id'
,
`name`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'fragment name'
,
`alias`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
DEFAULT
NULL
COMMENT
'alias'
,
`fragment_value`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'fragment value
'
,
`note`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
COMMENT
'not
e'
,
`enabled`
tinyint
DEFAULT
'1'
COMMENT
'is enabl
e'
,
`create_time`
datetime
DEFAULT
NULL
COMMENT
'create tim
e'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'upd
ate time'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
UNIQUE
KEY
`un_idx1`
(
`name`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'fragment management'
;
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'id'
,
`name`
varchar
(
50
)
NOT
NULL
COMMENT
'fragment name'
,
`alias`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'alias'
,
`tenant_id`
int
(
11
)
NOT
NULL
DEFAULT
'1'
COMMENT
'tenant id
'
,
`fragment_value`
text
NOT
NULL
COMMENT
'fragment valu
e'
,
`note`
text
COMMENT
'not
e'
,
`enabled`
tinyint
(
4
)
DEFAULT
'1'
COMMENT
'is enabl
e'
,
`create_time`
datetime
DEFAULT
NULL
COMMENT
'cre
ate time'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'update time'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
UNIQUE
KEY
`un_idx1`
(
`name`
,
`tenant_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'fragment management'
;
-- ----------------------------------------------------------------------------- Metadata related data table the start -------------------------------------------------------------------------------------------
...
...
dlink-doc/sql/upgrade/0.7.0_schema/mysql/dinky_ddl.sql
View file @
46f2dac8
...
...
@@ -196,4 +196,6 @@ CREATE TABLE IF NOT EXISTS `dlink_udf_template` (
alter
table
`dlink_task_statement`
modify
column
`statement`
longtext
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
COMMENT
'statement set'
;
alter
table
`dlink_history`
modify
column
`statement`
longtext
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
COMMENT
'statement set'
;
alter
table
dlink_fragment
add
column
`tenant_id`
int
not
null
DEFAULT
'1'
comment
'tenant id'
after
alias
;
\ No newline at end of file
alter
table
dlink_fragment
add
column
`tenant_id`
int
not
null
DEFAULT
'1'
comment
'tenant id'
after
alias
;
DROP
INDEX
un_idx1
ON
`dlink_fragment`
;
ALTER
TABLE
`dlink_fragment`
ADD
UNIQUE
un_idx1
(
`name`
,
`tenant_id`
);
\ No newline at end of file
dlink-web/src/components/Studio/StudioRightTool/StudioSqlConfig/index.tsx
View file @
46f2dac8
...
...
@@ -104,7 +104,7 @@ const StudioSqlConfig = (props: any) => {
<
Col
span=
{
24
}
>
<
Form
.
Item
label=
{
l
(
'pages.datastudio.label.maxrows'
)
}
className=
{
styles
.
form_item
}
name=
"maxRowNum"
tooltip=
{
l
(
'pages.datastudio.label.execConfig.
preview.data
.tip'
)
}
tooltip=
{
l
(
'pages.datastudio.label.execConfig.
maxrow
.tip'
)
}
>
<
InputNumber
min=
{
1
}
max=
{
9999
}
defaultValue=
{
100
}
/>
</
Form
.
Item
>
...
...
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