EXECUTE'ALTER TABLE '||quote_ident(v_schema)||'."t_ds_process_definition" ALTER COLUMN "description" SET NOT NULL';
EXECUTE'ALTER TABLE '||quote_ident(v_schema)||'."t_ds_process_definition" ALTER COLUMN "description" SET NOT NULL';
--- drop index
--- drop index
EXECUTE'DROP INDEX IF EXISTS "process_instance_index"';
EXECUTE'DROP INDEX IF EXISTS "process_instance_index"';
EXECUTE'DROP INDEX IF EXISTS "task_instance_index"';
EXECUTE'DROP INDEX IF EXISTS "task_instance_index"';
--- create index
--- create index
EXECUTE'CREATE INDEX IF NOT EXISTS priority_id_index ON '||quote_ident(v_schema)||'.t_ds_command USING Btree("process_instance_priority","id")';
EXECUTE'CREATE INDEX IF NOT EXISTS priority_id_index ON '||quote_ident(v_schema)||'.t_ds_command USING Btree("process_instance_priority","id")';
EXECUTE'CREATE INDEX IF NOT EXISTS process_instance_index ON '||quote_ident(v_schema)||'.t_ds_process_instance USING Btree("process_definition_code","id")';
EXECUTE'CREATE INDEX IF NOT EXISTS process_instance_index ON '||quote_ident(v_schema)||'.t_ds_process_instance USING Btree("process_definition_code","id")';
---addcomment
---addcomment
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_user.state is ''state 0:disable 1:enable''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_user.state is ''state 0:disable 1:enable''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_alertgroup.alert_instance_ids is ''alert instance ids''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_alertgroup.alert_instance_ids is ''alert instance ids''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_alertgroup.create_user_id is ''create user id''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_alertgroup.create_user_id is ''create user id''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_project.code is ''coding''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_project.code is ''coding''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.process_definition_code is ''process definition code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.process_definition_code is ''process definition code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.dry_run is ''dry run flag:0 normal, 1 dry run''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.dry_run is ''dry run flag:0 normal, 1 dry run''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.process_definition_version is ''process definition version''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.process_definition_version is ''process definition version''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.process_instance_id is ''process instance id''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_command.process_instance_id is ''process instance id''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.process_definition_code is ''process definition code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.process_definition_code is ''process definition code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.dry_run is ''dry run flag:0 normal, 1 dry run''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.dry_run is ''dry run flag:0 normal, 1 dry run''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.process_definition_version is ''process definition version''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.process_definition_version is ''process definition version''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.process_instance_id is ''process instance id''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_error_command.process_instance_id is ''process instance id''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.process_definition_code is ''process instance code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.process_definition_code is ''process instance code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.process_definition_version is ''process instance version''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.process_definition_version is ''process instance version''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.var_pool is ''var pool''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.var_pool is ''var pool''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.dry_run is ''dry run flag:0 normal, 1 dry run''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_instance.dry_run is ''dry run flag:0 normal, 1 dry run''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.task_code is ''task definition code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.task_code is ''task definition code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.task_definition_version is ''task definition version''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.task_definition_version is ''task definition version''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.task_params is ''task params''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.task_params is ''task params''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.environment_config is ''this config contains many environment variables config''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.environment_config is ''this config contains many environment variables config''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.first_submit_time is ''task first submit time''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.first_submit_time is ''task first submit time''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.delay_time is ''task delay execution time''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.delay_time is ''task delay execution time''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.var_pool is ''var pool''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.var_pool is ''var pool''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.dry_run is ''dry run flag:0 normal, 1 dry run''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_task_instance.dry_run is ''dry run flag:0 normal, 1 dry run''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_schedules.process_definition_code is ''process definition code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_schedules.process_definition_code is ''process definition code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_schedules.timezone_id is ''timezone id''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_schedules.timezone_id is ''timezone id''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_schedules.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_schedules.environment_code is ''environment code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_definition.code is ''encoding''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_definition.code is ''encoding''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_definition.project_code is ''project code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_definition.project_code is ''project code''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_definition.warning_group_id is ''alert group id''';
EXECUTE'comment on column '||quote_ident(v_schema)||'.t_ds_process_definition.warning_group_id is ''alert group id''';
--createtable
--createtable
EXECUTE'CREATE TABLE IF NOT EXISTS '||quote_ident(v_schema)||'."t_ds_plugin_define" (
EXECUTE'CREATE TABLE IF NOT EXISTS '||quote_ident(v_schema)||'."t_ds_plugin_define" (