
-- Job Arranger drop table SQL for MySQL  - 2014/09/17 -

-- Copyright (C) 2012 FitechForce, Inc. All Rights Reserved.
-- Copyright (C) 2024 Daiwa Institute of Research Business Innovation Ltd. All Rights Reserved.


-- DROP FOREIGN KEY

ALTER TABLE `ja_2_calendar_detail_table` DROP FOREIGN KEY `ja_2_calendar_detail_fk1`;
ALTER TABLE `ja_2_schedule_detail_table` DROP FOREIGN KEY `ja_2_schedule_detail_fk1`;
ALTER TABLE `ja_2_schedule_jobnet_table` DROP FOREIGN KEY `ja_2_schedule_jobnet_fk1`;
ALTER TABLE `ja_2_job_control_table` DROP FOREIGN KEY `ja_2_job_control_fk1`;
ALTER TABLE `ja_2_flow_control_table` DROP FOREIGN KEY `ja_2_flow_control_fk1`;
ALTER TABLE `ja_2_flow_control_table` DROP FOREIGN KEY `ja_2_flow_control_fk2`;
ALTER TABLE `ja_2_icon_agentless_table` DROP FOREIGN KEY `ja_2_icon_agentless_fk1`;
ALTER TABLE `ja_2_icon_calc_table` DROP FOREIGN KEY `ja_2_icon_calc_fk1`;
ALTER TABLE `ja_2_icon_end_table` DROP FOREIGN KEY `ja_2_icon_end_fk1`;
ALTER TABLE `ja_2_icon_extjob_table` DROP FOREIGN KEY `ja_2_icon_extjob_fk1`;
ALTER TABLE `ja_2_icon_fcopy_table` DROP FOREIGN KEY `ja_2_icon_fcopy_fk1`;
ALTER TABLE `ja_2_icon_fwait_table` DROP FOREIGN KEY `ja_2_icon_fwait_fk1`;
ALTER TABLE `ja_2_icon_if_table` DROP FOREIGN KEY `ja_2_icon_if_fk1`;
ALTER TABLE `ja_2_icon_info_table` DROP FOREIGN KEY `ja_2_icon_info_fk1`;
ALTER TABLE `ja_2_icon_jobnet_table` DROP FOREIGN KEY `ja_2_icon_jobnet_fk1`;
ALTER TABLE `ja_2_icon_job_table` DROP FOREIGN KEY `ja_2_icon_job_fk1`;
ALTER TABLE `ja_2_job_command_table` DROP FOREIGN KEY `ja_2_icon_job_command_fk1`;
ALTER TABLE `ja_2_value_job_table` DROP FOREIGN KEY `ja_2_value_job_fk1`;
ALTER TABLE `ja_2_value_jobcon_table` DROP FOREIGN KEY `ja_2_value_jobcon_fk1`;
ALTER TABLE `ja_2_icon_reboot_table` DROP FOREIGN KEY `ja_2_icon_reboot_fk1`;
ALTER TABLE `ja_2_icon_release_table` DROP FOREIGN KEY `ja_2_icon_release_fk1`;
ALTER TABLE `ja_2_icon_task_table` DROP FOREIGN KEY `ja_2_icon_task_fk1`;
ALTER TABLE `ja_2_icon_value_table` DROP FOREIGN KEY `ja_2_icon_value_fk1`;
ALTER TABLE `ja_2_icon_zabbix_link_table` DROP FOREIGN KEY `ja_2_icon_zabbix_link_fk1`;
ALTER TABLE `ja_2_run_jobnet_summary_table` DROP FOREIGN KEY `ja_2_run_jobnet_summary_fk1`;
ALTER TABLE `ja_2_run_job_table` DROP FOREIGN KEY `ja_2_run_job_fk1`;
ALTER TABLE `ja_2_run_flow_table` DROP FOREIGN KEY `ja_2_run_flow_fk1`;
ALTER TABLE `ja_2_run_value_job_table` DROP FOREIGN KEY `ja_2_run_value_job_fk1`;
ALTER TABLE `ja_2_run_value_jobcon_table` DROP FOREIGN KEY `ja_2_run_value_jobcon_fk1`;
ALTER TABLE `ja_2_run_job_variable_table` DROP FOREIGN KEY `ja_2_run_job_variable_fk1`;
ALTER TABLE `ja_2_run_jobnet_variable_table` DROP FOREIGN KEY `ja_2_run_jobnet_variable_fk1`;
ALTER TABLE `ja_2_ran_jobnet_summary_table` DROP FOREIGN KEY `ja_2_ran_jobnet_summary_fk1`;
ALTER TABLE `ja_2_ran_job_table` DROP FOREIGN KEY `ja_2_ran_job_fk1`;
ALTER TABLE `ja_2_ran_flow_table` DROP FOREIGN KEY `ja_2_ran_flow_fk1`;
ALTER TABLE `ja_2_ran_value_job_table` DROP FOREIGN KEY `ja_2_ran_value_job_fk1`;
ALTER TABLE `ja_2_ran_value_jobcon_table` DROP FOREIGN KEY `ja_2_ran_value_jobcon_fk1`;
ALTER TABLE `ja_2_ran_job_variable_table` DROP FOREIGN KEY `ja_2_ran_job_variable_fk1`;
ALTER TABLE `ja_2_ran_jobnet_variable_table` DROP FOREIGN KEY `ja_2_ran_jobnet_variable_fk1`;


-- DROP INDEX
ALTER TABLE `ja_2_schedule_control_table` DROP INDEX `ja_2_schedule_control_idx1`;
ALTER TABLE `ja_2_run_jobnet_summary_table` DROP INDEX `ja_2_run_jobnet_summary_idx1`;
ALTER TABLE `ja_2_run_jobnet_summary_table` DROP INDEX `ja_2_run_jobnet_summary_idx2`;
ALTER TABLE `ja_2_run_jobnet_summary_table` DROP INDEX `ja_2_run_jobnet_summary_idx3`;
ALTER TABLE `ja_2_run_jobnet_table` DROP INDEX `ja_2_run_jobnet_idx1`;
ALTER TABLE `ja_2_run_jobnet_table` DROP INDEX `ja_2_run_jobnet_idx2`;
ALTER TABLE `ja_2_run_jobnet_table` DROP INDEX `ja_2_run_jobnet_idx3`;
ALTER TABLE `ja_2_run_jobnet_table` DROP INDEX `ja_2_run_jobnet_idx4`;
ALTER TABLE `ja_2_run_job_table` DROP INDEX `ja_2_run_job_idx1`;
ALTER TABLE `ja_2_run_job_table` DROP INDEX `ja_2_run_job_idx2`;
ALTER TABLE `ja_2_run_log_table` DROP INDEX `ja_2_run_log_idx1`;
ALTER TABLE `ja_2_run_log_table` DROP INDEX `ja_2_run_log_idx2`;
ALTER TABLE `ja_2_run_log_table` DROP INDEX `ja_2_run_log_idx3`;
ALTER TABLE `ja_2_send_message_table` DROP INDEX `ja_2_send_message_idx1`;
ALTER TABLE `ja_2_run_job_table` DROP INDEX `ja_2_run_job_idx3`;
ALTER TABLE `ja_2_run_job_table` DROP INDEX `ja_job_idx_join_filter`;
ALTER TABLE `ja_2_run_job_table` DROP INDEX `ja_jend_exists_idx`;
ALTER TABLE `ja_2_run_job_table` DROP INDEX `ja_job_status0_idx`;
ALTER TABLE `ja_2_run_job_table` DROP INDEX `ja_job_start_status3_idx`;
ALTER TABLE `ja_2_run_flow_table` DROP INDEX `ja_2_run_flow_idx_jobnet_start_end`;
ALTER TABLE `ja_2_run_flow_table` DROP INDEX `ja_2_run_flow_idx_end`;
ALTER TABLE `ja_2_ran_jobnet_summary_table` DROP INDEX `ja_2_ran_jobnet_summary_idx1`;
ALTER TABLE `ja_2_ran_jobnet_summary_table` DROP INDEX `ja_2_ran_jobnet_summary_idx2`;
ALTER TABLE `ja_2_ran_jobnet_summary_table` DROP INDEX `ja_2_ran_jobnet_summary_idx3`;
ALTER TABLE `ja_2_ran_jobnet_table` DROP INDEX `ja_2_ran_jobnet_idx1`;
ALTER TABLE `ja_2_ran_jobnet_table` DROP INDEX `ja_2_ran_jobnet_idx2`;
ALTER TABLE `ja_2_ran_jobnet_table` DROP INDEX `ja_2_ran_jobnet_idx3`;
ALTER TABLE `ja_2_ran_jobnet_table` DROP INDEX `ja_2_ran_jobnet_idx4`;
ALTER TABLE `ja_2_ran_job_table` DROP INDEX `ja_2_ran_job_idx1`;
ALTER TABLE `ja_2_ran_job_table` DROP INDEX `ja_2_ran_job_idx2`;
ALTER TABLE `ja_2_ran_log_table` DROP INDEX `ja_2_ran_log_idx1`;
ALTER TABLE `ja_2_ran_log_table` DROP INDEX `ja_2_ran_log_idx2`;
ALTER TABLE `ja_2_ran_log_table` DROP INDEX `ja_2_ran_log_idx3`;
ALTER TABLE `ja_2_ran_job_table` DROP INDEX `ja_2_ran_job_idx3`;
ALTER TABLE `ja_2_run_action_table` DROP FOREIGN KEY `ja_2_run_action_fk1`;


-- DROP TABLE
DROP TABLE `ja_2_calendar_control_table`;
DROP TABLE `ja_2_calendar_detail_table`;
DROP TABLE `ja_2_filter_control_table`;
DROP TABLE `ja_2_schedule_control_table`;
DROP TABLE `ja_2_schedule_detail_table`;
DROP TABLE `ja_2_schedule_jobnet_table`;
DROP TABLE `ja_2_jobnet_control_table`;
DROP TABLE `ja_2_job_control_table`;
DROP TABLE `ja_2_flow_control_table`;
DROP TABLE `ja_2_icon_agentless_table`;
DROP TABLE `ja_2_icon_calc_table`;
DROP TABLE `ja_2_icon_end_table`;
DROP TABLE `ja_2_icon_extjob_table`;
DROP TABLE `ja_2_icon_fcopy_table`;
DROP TABLE `ja_2_icon_fwait_table`;
DROP TABLE `ja_2_icon_if_table`;
DROP TABLE `ja_2_icon_info_table`;
DROP TABLE `ja_2_icon_jobnet_table`;
DROP TABLE `ja_2_icon_job_table`;
DROP TABLE `ja_2_job_command_table`;
DROP TABLE `ja_2_value_job_table`;
DROP TABLE `ja_2_value_jobcon_table`;
DROP TABLE `ja_2_icon_reboot_table`;
DROP TABLE `ja_2_icon_release_table`;
DROP TABLE `ja_2_icon_task_table`;
DROP TABLE `ja_2_icon_value_table`;
DROP TABLE `ja_2_icon_zabbix_link_table`;
DROP TABLE `ja_2_define_value_jobcon_table`;
DROP TABLE `ja_2_define_extjob_table`;
DROP TABLE `ja_2_run_jobnet_summary_table`;
DROP TABLE `ja_2_run_jobnet_table`;
DROP TABLE `ja_2_run_job_table`;
DROP TABLE `ja_2_run_flow_table`;
DROP TABLE `ja_2_run_value_job_table`;
DROP TABLE `ja_2_run_value_jobcon_table`;
DROP TABLE `ja_2_ran_job_variable_table`;
DROP TABLE `ja_2_ran_jobnet_variable_table`;
DROP TABLE `ja_2_session_table`;
DROP TABLE `ja_2_run_log_table`;
DROP TABLE `ja_2_define_run_log_message_table`;
DROP TABLE `ja_2_send_message_table`;
DROP TABLE `ja_2_index_table`;
DROP TABLE `ja_2_parameter_table`;
DROP TABLE `ja_2_host_lock_table`;
DROP TABLE `ja_2_object_lock_table`;
DROP TABLE `ja_2_run_action_table`;
DROP TABLE `ja_2_run_timeout_table`;
DROP TABLE `ja_2_run_job_variable_table`;
DROP TABLE `ja_2_run_jobnet_variable_table`;
DROP TABLE `ja_2_ran_flow_table`;
DROP TABLE `ja_2_ran_job_table`;
DROP TABLE `ja_2_ran_jobnet_summary_table`;
DROP TABLE `ja_2_ran_jobnet_table`;
DROP TABLE `ja_2_ran_value_job_table`;
DROP TABLE `ja_2_ran_value_jobcon_table`;
DROP TABLE `ja_2_ran_log_table`;
DROP TABLE `ja_2_zbx_hosts_table`;