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
43c3a55e
Unverified
Commit
43c3a55e
authored
Apr 01, 2024
by
ZackYoung
Committed by
GitHub
Apr 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Optimize][Sql] Optimize git demo address (#3334)
Co-authored-by:
Zzm0809
<
934230207@qq.com
>
parent
95a48acd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
+13
-8
db-h2-dml.sql
dinky-admin/src/main/resources/db/db-h2-dml.sql
+3
-4
dinky-mysql.sql
script/sql/dinky-mysql.sql
+2
-2
dinky-pg.sql
script/sql/dinky-pg.sql
+2
-2
dinky_dml.sql
script/sql/upgrade/1.0.2_schema/mysql/dinky_dml.sql
+3
-0
dinky_dml.sql
script/sql/upgrade/1.0.2_schema/postgre/dinky_dml.sql
+3
-0
No files found.
dinky-admin/src/main/resources/db/db-h2-dml.sql
View file @
43c3a55e
...
@@ -21,7 +21,7 @@ INSERT INTO `dinky_git_project` ( `id`, `tenant_id`, `name`, `url`, `branch`
...
@@ -21,7 +21,7 @@ INSERT INTO `dinky_git_project` ( `id`, `tenant_id`, `name`, `url`, `branch`
,
`username`
,
`password`
,
`private_key`
,
`pom`
,
`build_args`
,
`username`
,
`password`
,
`private_key`
,
`pom`
,
`build_args`
,
`code_type`
,
`type`
,
`last_build`
,
`description`
,
`build_state`
,
`code_type`
,
`type`
,
`last_build`
,
`description`
,
`build_state`
,
`build_step`
,
`enabled`
,
`udf_class_map_list`
,
`order_line`
)
,
`build_step`
,
`enabled`
,
`udf_class_map_list`
,
`order_line`
)
VALUES
(
1
,
1
,
'java-udf'
,
'https://github.com/
zackyoungh
/dinky-quickstart-java.git'
,
'master'
VALUES
(
1
,
1
,
'java-udf'
,
'https://github.com/
DataLinkDC
/dinky-quickstart-java.git'
,
'master'
,
null
,
null
,
null
,
null
,
'-P flink-1.14'
,
null
,
null
,
null
,
null
,
'-P flink-1.14'
,
1
,
1
,
null
,
null
,
0
,
1
,
1
,
null
,
null
,
0
,
0
,
1
,
'[]'
,
1
);
,
0
,
1
,
'[]'
,
1
);
...
@@ -29,7 +29,7 @@ INSERT INTO `dinky_git_project` ( `id`, `tenant_id`, `name`, `url`, `branch`
...
@@ -29,7 +29,7 @@ INSERT INTO `dinky_git_project` ( `id`, `tenant_id`, `name`, `url`, `branch`
,
`username`
,
`password`
,
`private_key`
,
`pom`
,
`build_args`
,
`username`
,
`password`
,
`private_key`
,
`pom`
,
`build_args`
,
`code_type`
,
`type`
,
`last_build`
,
`description`
,
`build_state`
,
`code_type`
,
`type`
,
`last_build`
,
`description`
,
`build_state`
,
`build_step`
,
`enabled`
,
`udf_class_map_list`
,
`order_line`
)
,
`build_step`
,
`enabled`
,
`udf_class_map_list`
,
`order_line`
)
VALUES
(
2
,
1
,
'python-udf'
,
'https://github.com/
zackyoungh
/dinky-quickstart-python.git'
,
'master'
VALUES
(
2
,
1
,
'python-udf'
,
'https://github.com/
DataLinkDC
/dinky-quickstart-python.git'
,
'master'
,
null
,
null
,
null
,
null
,
''
,
null
,
null
,
null
,
null
,
''
,
2
,
1
,
null
,
null
,
0
,
2
,
1
,
null
,
null
,
0
,
0
,
1
,
'[]'
,
2
);
,
0
,
1
,
'[]'
,
2
);
...
@@ -2529,4 +2529,4 @@ from pyflink.table.udf import udf
...
@@ -2529,4 +2529,4 @@ from pyflink.table.udf import udf
@udf(result_type=DataTypes.STRING())
@udf(result_type=DataTypes.STRING())
def ${className}(variable1:str):
def ${className}(variable1:str):
return
''''
'
return
''''
'
,
1
,
'2022-10-25 09:25:13'
,
'2022-10-25 09:34:47'
,
null
,
null
);
,
1
,
'2022-10-25 09:25:13'
,
'2022-10-25 09:34:47'
,
null
,
null
);
\ No newline at end of file
script/sql/dinky-mysql.sql
View file @
43c3a55e
...
@@ -1658,8 +1658,8 @@ CREATE TABLE `dinky_git_project` (
...
@@ -1658,8 +1658,8 @@ CREATE TABLE `dinky_git_project` (
-- ----------------------------
-- ----------------------------
-- Records of dinky_git_project
-- Records of dinky_git_project
-- ----------------------------
-- ----------------------------
INSERT
INTO
`dinky_git_project`
(
`id`
,
`tenant_id`
,
`name`
,
`url`
,
`branch`
,
`username`
,
`password`
,
`private_key`
,
`pom`
,
`build_args`
,
`code_type`
,
`type`
,
`last_build`
,
`description`
,
`build_state`
,
`build_step`
,
`enabled`
,
`udf_class_map_list`
,
`order_line`
)
VALUES
(
1
,
1
,
'java-udf'
,
'https://github.com/
zackyoungh
/dinky-quickstart-java.git'
,
'master'
,
NULL
,
NULL
,
NULL
,
NULL
,
'-P flink-1.14'
,
1
,
1
,
NULL
,
NULL
,
0
,
0
,
1
,
'[]'
,
1
);
INSERT
INTO
`dinky_git_project`
(
`id`
,
`tenant_id`
,
`name`
,
`url`
,
`branch`
,
`username`
,
`password`
,
`private_key`
,
`pom`
,
`build_args`
,
`code_type`
,
`type`
,
`last_build`
,
`description`
,
`build_state`
,
`build_step`
,
`enabled`
,
`udf_class_map_list`
,
`order_line`
)
VALUES
(
1
,
1
,
'java-udf'
,
'https://github.com/
DataLinkDC
/dinky-quickstart-java.git'
,
'master'
,
NULL
,
NULL
,
NULL
,
NULL
,
'-P flink-1.14'
,
1
,
1
,
NULL
,
NULL
,
0
,
0
,
1
,
'[]'
,
1
);
INSERT
INTO
`dinky_git_project`
(
`id`
,
`tenant_id`
,
`name`
,
`url`
,
`branch`
,
`username`
,
`password`
,
`private_key`
,
`pom`
,
`build_args`
,
`code_type`
,
`type`
,
`last_build`
,
`description`
,
`build_state`
,
`build_step`
,
`enabled`
,
`udf_class_map_list`
,
`order_line`
)
VALUES
(
2
,
1
,
'python-udf'
,
'https://github.com/
zackyoungh
/dinky-quickstart-python.git'
,
'master'
,
NULL
,
NULL
,
NULL
,
NULL
,
''
,
2
,
1
,
NULL
,
NULL
,
0
,
0
,
1
,
'[]'
,
2
);
INSERT
INTO
`dinky_git_project`
(
`id`
,
`tenant_id`
,
`name`
,
`url`
,
`branch`
,
`username`
,
`password`
,
`private_key`
,
`pom`
,
`build_args`
,
`code_type`
,
`type`
,
`last_build`
,
`description`
,
`build_state`
,
`build_step`
,
`enabled`
,
`udf_class_map_list`
,
`order_line`
)
VALUES
(
2
,
1
,
'python-udf'
,
'https://github.com/
DataLinkDC
/dinky-quickstart-python.git'
,
'master'
,
NULL
,
NULL
,
NULL
,
NULL
,
''
,
2
,
1
,
NULL
,
NULL
,
0
,
0
,
1
,
'[]'
,
2
);
...
...
script/sql/dinky-pg.sql
View file @
43c3a55e
...
@@ -3294,9 +3294,9 @@ EXECUTE FUNCTION trigger_set_timestamp();
...
@@ -3294,9 +3294,9 @@ EXECUTE FUNCTION trigger_set_timestamp();
INSERT
INTO
dinky_git_project
(
id
,
tenant_id
,
name
,
url
,
branch
,
username
,
password
,
private_key
,
pom
,
build_args
,
INSERT
INTO
dinky_git_project
(
id
,
tenant_id
,
name
,
url
,
branch
,
username
,
password
,
private_key
,
pom
,
build_args
,
code_type
,
type
,
last_build
,
description
,
build_state
,
build_step
,
enabled
,
code_type
,
type
,
last_build
,
description
,
build_state
,
build_step
,
enabled
,
udf_class_map_list
,
order_line
)
udf_class_map_list
,
order_line
)
VALUES
(
1
,
1
,
'java-udf'
,
'https://github.com/
zackyoungh
/dinky-quickstart-java.git'
,
'master'
,
NULL
,
NULL
,
NULL
,
NULL
,
VALUES
(
1
,
1
,
'java-udf'
,
'https://github.com/
DataLinkDC
/dinky-quickstart-java.git'
,
'master'
,
NULL
,
NULL
,
NULL
,
NULL
,
'-P flink-1.14'
,
1
,
1
,
NULL
,
NULL
,
0
,
0
,
true
,
'[]'
,
1
),
'-P flink-1.14'
,
1
,
1
,
NULL
,
NULL
,
0
,
0
,
true
,
'[]'
,
1
),
(
2
,
1
,
'python-udf'
,
'https://github.com/
zackyoungh
/dinky-quickstart-python.git'
,
'master'
,
NULL
,
NULL
,
NULL
,
(
2
,
1
,
'python-udf'
,
'https://github.com/
DataLinkDC
/dinky-quickstart-python.git'
,
'master'
,
NULL
,
NULL
,
NULL
,
NULL
,
''
,
2
,
1
,
NULL
,
NULL
,
0
,
0
,
true
,
'[]'
,
2
);
NULL
,
''
,
2
,
1
,
NULL
,
NULL
,
0
,
0
,
true
,
'[]'
,
2
);
...
...
script/sql/upgrade/1.
1.0
_schema/mysql/dinky_dml.sql
→
script/sql/upgrade/1.
0.2
_schema/mysql/dinky_dml.sql
View file @
43c3a55e
...
@@ -26,6 +26,9 @@ update dinky_sys_menu set `path`= '/datastudio/bottom/table-data' , `perms`= 'da
...
@@ -26,6 +26,9 @@ update dinky_sys_menu set `path`= '/datastudio/bottom/table-data' , `perms`= 'da
delete
from
dinky_sys_menu
where
`id`
=
26
;
delete
from
dinky_sys_menu
where
`id`
=
26
;
update
dinky_git_project
set
`url`
=
'https://github.com/DataLinkDC/dinky-quickstart-java.git'
where
`id`
=
1
;
update
dinky_git_project
set
`url`
=
'https://github.com/DataLinkDC/dinky-quickstart-python.git'
where
`id`
=
2
;
commit
;
commit
;
...
...
script/sql/upgrade/1.
1.0
_schema/postgre/dinky_dml.sql
→
script/sql/upgrade/1.
0.2
_schema/postgre/dinky_dml.sql
View file @
43c3a55e
...
@@ -26,5 +26,8 @@ update dinky_sys_menu set "path"= '/datastudio/bottom/table-data' , "perms"= 'da
...
@@ -26,5 +26,8 @@ update dinky_sys_menu set "path"= '/datastudio/bottom/table-data' , "perms"= 'da
delete
from
dinky_sys_menu
where
"id"
=
26
;
delete
from
dinky_sys_menu
where
"id"
=
26
;
update
dinky_git_project
set
"url"
=
'https://github.com/DataLinkDC/dinky-quickstart-java.git'
where
"id"
=
1
;
update
dinky_git_project
set
"url"
=
'https://github.com/DataLinkDC/dinky-quickstart-python.git'
where
"id"
=
2
;
commit
;
commit
;
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