Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc][Script] Update sql script #81

Merged
merged 1 commit into from
Jul 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/sql/datavines-mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ CREATE TABLE `dv_job` (
`name` varchar(255) DEFAULT NULL COMMENT '任务名称',
`type` int(11) NOT NULL DEFAULT '0',
`datasource_id` bigint(20) NOT NULL,
`schema_name` varchar(128) DEFAULT NULL,
`table_name` varchar(128) DEFAULT NULL,
`column_name` varchar(128) DEFAULT NULL,
`metric_type` varchar(128) DEFAULT NULL,
`execute_platform_type` varchar(128) DEFAULT NULL,
`execute_platform_parameter` text,
`engine_type` varchar(128) DEFAULT NULL,
Expand Down
6 changes: 5 additions & 1 deletion scripts/sql/datavines-postgresql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ CREATE TABLE dv_job (
name varchar(255) DEFAULT NULL ,
type int4 NOT NULL DEFAULT '0',
datasource_id int8 NOT NULL,
schema_name varchar(128) DEFAULT NULL,
table_name varchar(128) DEFAULT NULL,
column_name varchar(128) DEFAULT NULL,
metric_type varchar(128) DEFAULT NULL,
execute_platform_type varchar(128) DEFAULT NULL,
execute_platform_parameter text,
engine_type varchar(128) DEFAULT NULL,
Expand All @@ -192,7 +196,7 @@ CREATE TABLE dv_job (
update_by int8 DEFAULT NULL ,
update_time timestamp(0) NOT NULL DEFAULT current_timestamp ,
CONSTRAINT job_pk PRIMARY KEY (id),
CONSTRAINT job_un UNIQUE (name)
CONSTRAINT job_un UNIQUE (name,schema_name,table_name,column_name)
) ;

DROP TABLE IF EXISTS dv_job_schedule;
Expand Down