Skip to content

Commit

Permalink
[Optimize][Sql] Optimize git demo address (#3334)
Browse files Browse the repository at this point in the history
Co-authored-by: Zzm0809 <[email protected]>
  • Loading branch information
zackyoungh and Zzm0809 authored Apr 1, 2024
1 parent 95a48ac commit 43c3a55
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dinky-admin/src/main/resources/db/db-h2-dml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ 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'
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'
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);
Expand Down Expand Up @@ -2529,4 +2529,4 @@ from pyflink.table.udf import udf
@udf(result_type=DataTypes.STRING())
def ${className}(variable1:str):
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);
4 changes: 2 additions & 2 deletions script/sql/dinky-mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1658,8 +1658,8 @@ CREATE TABLE `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 (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 (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/DataLinkDC/dinky-quickstart-python.git', 'master', NULL, NULL, NULL, NULL, '', 2, 1, NULL, NULL, 0, 0, 1, '[]',2);



Expand Down
4 changes: 2 additions & 2 deletions script/sql/dinky-pg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
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,
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),
(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);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ update dinky_sys_menu set `path`= '/datastudio/bottom/table-data' , `perms`= 'da

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 ;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ update dinky_sys_menu set "path"= '/datastudio/bottom/table-data' , "perms"= 'da

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 ;

0 comments on commit 43c3a55

Please sign in to comment.