Server IP : 103.53.40.154 / Your IP : 3.145.89.89 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /backup2/../var/softaculous/lime3/../bootstrap/../testlink/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `testlink1920` -- -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]assignment_status` -- CREATE TABLE `[[dbprefix]]assignment_status` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL DEFAULT 'unknown', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- Dumping data for table `[[dbprefix]]assignment_status` -- INSERT INTO `[[dbprefix]]assignment_status` VALUES (1, 'open'), (2, 'closed'), (3, 'completed'), (4, 'todo_urgent'), (5, 'todo'); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]assignment_types` -- CREATE TABLE `[[dbprefix]]assignment_types` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `fk_table` varchar(30) DEFAULT '', `description` varchar(100) NOT NULL DEFAULT 'unknown', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Dumping data for table `[[dbprefix]]assignment_types` -- INSERT INTO `[[dbprefix]]assignment_types` VALUES (1, 'testplan_tcversions', 'testcase_execution'), (2, 'tcversions', 'testcase_review'); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]attachments` -- CREATE TABLE `[[dbprefix]]attachments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `fk_id` int(10) unsigned NOT NULL DEFAULT '0', `fk_table` varchar(250) DEFAULT '', `title` varchar(250) DEFAULT '', `description` varchar(250) DEFAULT '', `file_name` varchar(250) NOT NULL DEFAULT '', `file_path` varchar(250) DEFAULT '', `file_size` int(11) NOT NULL DEFAULT '0', `file_type` varchar(250) NOT NULL DEFAULT '', `date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `content` longblob, `compression_type` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]attachments_idx1` (`fk_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]baseline_l1l2_context` -- CREATE TABLE `[[dbprefix]]baseline_l1l2_context` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `testplan_id` int(10) unsigned NOT NULL DEFAULT '0', `platform_id` int(10) unsigned NOT NULL DEFAULT '0', `begin_exec_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `end_exec_ts` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `udx1_context` (`testplan_id`,`platform_id`,`creation_ts`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]baseline_l1l2_details` -- CREATE TABLE `[[dbprefix]]baseline_l1l2_details` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `context_id` int(10) unsigned NOT NULL, `top_tsuite_id` int(10) unsigned NOT NULL DEFAULT '0', `child_tsuite_id` int(10) unsigned NOT NULL DEFAULT '0', `status` char(1) DEFAULT NULL, `qty` int(10) unsigned NOT NULL DEFAULT '0', `total_tc` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `udx1_details` (`context_id`,`top_tsuite_id`,`child_tsuite_id`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]builds` -- CREATE TABLE `[[dbprefix]]builds` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `testplan_id` int(10) unsigned NOT NULL DEFAULT '0', `name` varchar(100) NOT NULL DEFAULT 'undefined', `notes` text, `active` tinyint(1) NOT NULL DEFAULT '1', `is_open` tinyint(1) NOT NULL DEFAULT '1', `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `release_date` date DEFAULT NULL, `closed_on_date` date DEFAULT NULL, `commit_id` varchar(64) DEFAULT NULL, `tag` varchar(64) DEFAULT NULL, `branch` varchar(64) DEFAULT NULL, `release_candidate` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]name` (`testplan_id`,`name`), KEY `[[dbprefix]]testplan_id` (`testplan_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Available builds' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]cfield_build_design_values` -- CREATE TABLE `[[dbprefix]]cfield_build_design_values` ( `field_id` int(10) NOT NULL DEFAULT '0', `node_id` int(10) NOT NULL DEFAULT '0', `value` varchar(4000) NOT NULL DEFAULT '', PRIMARY KEY (`field_id`,`node_id`), KEY `[[dbprefix]]idx_cfield_build_design_values` (`node_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]cfield_design_values` -- CREATE TABLE `[[dbprefix]]cfield_design_values` ( `field_id` int(10) NOT NULL DEFAULT '0', `node_id` int(10) NOT NULL DEFAULT '0', `value` varchar(4000) NOT NULL DEFAULT '', PRIMARY KEY (`field_id`,`node_id`), KEY `[[dbprefix]]idx_cfield_design_values` (`node_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]cfield_execution_values` -- CREATE TABLE `[[dbprefix]]cfield_execution_values` ( `field_id` int(10) NOT NULL DEFAULT '0', `execution_id` int(10) NOT NULL DEFAULT '0', `testplan_id` int(10) NOT NULL DEFAULT '0', `tcversion_id` int(10) NOT NULL DEFAULT '0', `value` varchar(4000) NOT NULL DEFAULT '', PRIMARY KEY (`field_id`,`execution_id`,`testplan_id`,`tcversion_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]cfield_node_types` -- CREATE TABLE `[[dbprefix]]cfield_node_types` ( `field_id` int(10) NOT NULL DEFAULT '0', `node_type_id` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`field_id`,`node_type_id`), KEY `[[dbprefix]]idx_custom_fields_assign` (`node_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]cfield_testplan_design_values` -- CREATE TABLE `[[dbprefix]]cfield_testplan_design_values` ( `field_id` int(10) NOT NULL DEFAULT '0', `link_id` int(10) NOT NULL DEFAULT '0' COMMENT 'point to testplan_tcversion id', `value` varchar(4000) NOT NULL DEFAULT '', PRIMARY KEY (`field_id`,`link_id`), KEY `[[dbprefix]]idx_cfield_tplan_design_val` (`link_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]cfield_testprojects` -- CREATE TABLE `[[dbprefix]]cfield_testprojects` ( `field_id` int(10) unsigned NOT NULL DEFAULT '0', `testproject_id` int(10) unsigned NOT NULL DEFAULT '0', `display_order` smallint(5) unsigned NOT NULL DEFAULT '1', `location` smallint(5) unsigned NOT NULL DEFAULT '1', `active` tinyint(1) NOT NULL DEFAULT '1', `required` tinyint(1) NOT NULL DEFAULT '0', `required_on_design` tinyint(1) NOT NULL DEFAULT '0', `required_on_execution` tinyint(1) NOT NULL DEFAULT '0', `monitorable` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`field_id`,`testproject_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]codetrackers` -- CREATE TABLE `[[dbprefix]]codetrackers` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `type` int(10) DEFAULT '0', `cfg` text, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]codetrackers_uidx1` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]custom_fields` -- CREATE TABLE `[[dbprefix]]custom_fields` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL DEFAULT '', `label` varchar(64) NOT NULL DEFAULT '' COMMENT 'label to display on user interface', `type` smallint(6) NOT NULL DEFAULT '0', `possible_values` varchar(4000) NOT NULL DEFAULT '', `default_value` varchar(4000) NOT NULL DEFAULT '', `valid_regexp` varchar(255) NOT NULL DEFAULT '', `length_min` int(10) NOT NULL DEFAULT '0', `length_max` int(10) NOT NULL DEFAULT '0', `show_on_design` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '1=> show it during specification design', `enable_on_design` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '1=> user can write/manage it during specification design', `show_on_execution` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '1=> show it during test case execution', `enable_on_execution` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '1=> user can write/manage it during test case execution', `show_on_testplan_design` tinyint(3) unsigned NOT NULL DEFAULT '0', `enable_on_testplan_design` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]idx_custom_fields_name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]db_version` -- CREATE TABLE `[[dbprefix]]db_version` ( `version` varchar(50) NOT NULL DEFAULT 'unknown', `upgrade_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `notes` text, PRIMARY KEY (`version`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `[[dbprefix]]db_version` -- INSERT INTO `[[dbprefix]]db_version` VALUES ('DB 1.9.20', '[[regtime]]', 'TestLink 1.9.20 Raijin'); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]events` -- CREATE TABLE `[[dbprefix]]events` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `transaction_id` int(10) unsigned NOT NULL DEFAULT '0', `log_level` smallint(5) unsigned NOT NULL DEFAULT '0', `source` varchar(45) DEFAULT NULL, `description` text NOT NULL, `fired_at` int(10) unsigned NOT NULL DEFAULT '0', `activity` varchar(45) DEFAULT NULL, `object_id` int(10) unsigned DEFAULT NULL, `object_type` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]transaction_id` (`transaction_id`), KEY `[[dbprefix]]fired_at` (`fired_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Dumping data for table `[[dbprefix]]events` -- -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]executions` -- CREATE TABLE `[[dbprefix]]executions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `build_id` int(10) NOT NULL DEFAULT '0', `tester_id` int(10) unsigned DEFAULT NULL, `execution_ts` datetime DEFAULT NULL, `status` char(1) DEFAULT NULL, `testplan_id` int(10) unsigned NOT NULL DEFAULT '0', `tcversion_id` int(10) unsigned NOT NULL DEFAULT '0', `tcversion_number` smallint(5) unsigned NOT NULL DEFAULT '1', `platform_id` int(10) unsigned NOT NULL DEFAULT '0', `execution_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 -> manual, 2 -> automated', `execution_duration` decimal(6,2) DEFAULT NULL COMMENT 'NULL will be considered as NO DATA Provided by user', `notes` text, PRIMARY KEY (`id`), KEY `[[dbprefix]]executions_idx1` (`testplan_id`,`tcversion_id`,`platform_id`,`build_id`), KEY `[[dbprefix]]executions_idx2` (`execution_type`), KEY `[[dbprefix]]executions_idx3` (`tcversion_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]execution_bugs` -- CREATE TABLE `[[dbprefix]]execution_bugs` ( `execution_id` int(10) unsigned NOT NULL DEFAULT '0', `bug_id` varchar(64) NOT NULL DEFAULT '0', `tcstep_id` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`execution_id`,`bug_id`,`tcstep_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]execution_tcsteps` -- CREATE TABLE `[[dbprefix]]execution_tcsteps` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `execution_id` int(10) unsigned NOT NULL DEFAULT '0', `tcstep_id` int(10) unsigned NOT NULL DEFAULT '0', `notes` text, `status` char(1) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]execution_tcsteps_idx1` (`execution_id`,`tcstep_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]execution_tcsteps_wip` -- CREATE TABLE `[[dbprefix]]execution_tcsteps_wip` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tcstep_id` int(10) unsigned NOT NULL DEFAULT '0', `testplan_id` int(10) unsigned NOT NULL DEFAULT '0', `platform_id` int(10) unsigned NOT NULL DEFAULT '0', `build_id` int(10) unsigned NOT NULL DEFAULT '0', `tester_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `notes` text, `status` char(1) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]execution_tcsteps_wip_idx1` (`tcstep_id`,`testplan_id`,`platform_id`,`build_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]exec_by_date_time` -- CREATE TABLE `[[dbprefix]]exec_by_date_time` ( `testplan_name` varchar(100) ,`yyyy_mm_dd` varchar(10) ,`yyyy_mm` varchar(7) ,`hh` varchar(7) ,`hour` varchar(7) ,`id` int(10) unsigned ,`build_id` int(10) ,`tester_id` int(10) unsigned ,`execution_ts` datetime ,`status` char(1) ,`testplan_id` int(10) unsigned ,`tcversion_id` int(10) unsigned ,`tcversion_number` smallint(5) unsigned ,`platform_id` int(10) unsigned ,`execution_type` tinyint(1) ,`execution_duration` decimal(6,2) ,`notes` text ); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]inventory` -- CREATE TABLE `[[dbprefix]]inventory` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `testproject_id` int(10) unsigned NOT NULL, `owner_id` int(10) unsigned NOT NULL, `name` varchar(255) NOT NULL, `ipaddress` varchar(255) NOT NULL, `content` text, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modification_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `[[dbprefix]]inventory_idx1` (`testproject_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]issuetrackers` -- CREATE TABLE `[[dbprefix]]issuetrackers` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `type` int(10) DEFAULT '0', `cfg` text, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]issuetrackers_uidx1` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]keywords` -- CREATE TABLE `[[dbprefix]]keywords` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `keyword` varchar(100) NOT NULL DEFAULT '', `testproject_id` int(10) unsigned NOT NULL DEFAULT '0', `notes` text, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]keyword_testproject_id` (`keyword`,`testproject_id`), KEY `[[dbprefix]]testproject_id` (`testproject_id`), KEY `[[dbprefix]]keyword` (`keyword`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]latest_exec_by_context` -- CREATE TABLE `[[dbprefix]]latest_exec_by_context` ( `tcversion_id` int(10) unsigned ,`testplan_id` int(10) unsigned ,`build_id` int(10) ,`platform_id` int(10) unsigned ,`id` int(10) unsigned ); -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]latest_exec_by_testplan` -- CREATE TABLE `[[dbprefix]]latest_exec_by_testplan` ( `tcversion_id` int(10) unsigned ,`testplan_id` int(10) unsigned ,`id` int(10) unsigned ); -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]latest_exec_by_testplan_plat` -- CREATE TABLE `[[dbprefix]]latest_exec_by_testplan_plat` ( `tcversion_id` int(10) unsigned ,`testplan_id` int(10) unsigned ,`platform_id` int(10) unsigned ,`id` int(10) unsigned ); -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]latest_req_version` -- CREATE TABLE `[[dbprefix]]latest_req_version` ( `req_id` int(10) unsigned ,`version` smallint(5) unsigned ); -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]latest_req_version_id` -- CREATE TABLE `[[dbprefix]]latest_req_version_id` ( `req_id` int(10) unsigned ,`version` smallint(5) unsigned ,`req_version_id` int(10) unsigned ); -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]latest_rspec_revision` -- CREATE TABLE `[[dbprefix]]latest_rspec_revision` ( `req_spec_id` int(10) unsigned ,`testproject_id` int(10) unsigned ,`revision` smallint(5) unsigned ); -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]latest_tcase_version_id` -- CREATE TABLE `[[dbprefix]]latest_tcase_version_id` ( `testcase_id` int(10) unsigned ,`version` smallint(5) unsigned ,`tcversion_id` int(10) unsigned ); -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]latest_tcase_version_number` -- CREATE TABLE `[[dbprefix]]latest_tcase_version_number` ( `testcase_id` int(10) unsigned ,`version` smallint(5) unsigned ); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]milestones` -- CREATE TABLE `[[dbprefix]]milestones` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `testplan_id` int(10) unsigned NOT NULL DEFAULT '0', `target_date` date NOT NULL, `start_date` date DEFAULT NULL, `a` tinyint(3) unsigned NOT NULL DEFAULT '0', `b` tinyint(3) unsigned NOT NULL DEFAULT '0', `c` tinyint(3) unsigned NOT NULL DEFAULT '0', `name` varchar(100) NOT NULL DEFAULT 'undefined', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]name_testplan_id` (`name`,`testplan_id`), KEY `[[dbprefix]]testplan_id` (`testplan_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]nodes_hierarchy` -- CREATE TABLE `[[dbprefix]]nodes_hierarchy` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `parent_id` int(10) unsigned DEFAULT NULL, `node_type_id` int(10) unsigned NOT NULL DEFAULT '1', `node_order` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]pid_m_nodeorder` (`parent_id`,`node_order`), KEY `[[dbprefix]]nodes_hierarchy_node_type_id` (`node_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]node_types` -- CREATE TABLE `[[dbprefix]]node_types` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL DEFAULT 'testproject', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ; -- -- Dumping data for table `[[dbprefix]]node_types` -- INSERT INTO `[[dbprefix]]node_types` VALUES (1, 'testproject'), (2, 'testsuite'), (3, 'testcase'), (4, 'testcase_version'), (5, 'testplan'), (6, 'requirement_spec'), (7, 'requirement'), (8, 'requirement_version'), (9, 'testcase_step'), (10, 'requirement_revision'), (11, 'requirement_spec_revision'), (12, 'build'), (13, 'platform'), (14, 'user'); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]object_keywords` -- CREATE TABLE `[[dbprefix]]object_keywords` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `fk_id` int(10) unsigned NOT NULL DEFAULT '0', `fk_table` varchar(30) DEFAULT '', `keyword_id` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]udx01_object_keywords` (`fk_id`,`fk_table`,`keyword_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]platforms` -- CREATE TABLE `[[dbprefix]]platforms` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `testproject_id` int(10) unsigned NOT NULL, `notes` text NOT NULL, `enable_on_design` tinyint(1) unsigned NOT NULL DEFAULT '0', `enable_on_execution` tinyint(1) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]idx_platforms` (`testproject_id`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]plugins` -- CREATE TABLE `[[dbprefix]]plugins` ( `id` int(11) NOT NULL AUTO_INCREMENT, `basename` varchar(100) NOT NULL, `enabled` tinyint(1) NOT NULL DEFAULT '0', `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]plugins_configuration` -- CREATE TABLE `[[dbprefix]]plugins_configuration` ( `id` int(11) NOT NULL AUTO_INCREMENT, `testproject_id` int(11) NOT NULL, `config_key` varchar(255) NOT NULL, `config_type` int(11) NOT NULL, `config_value` varchar(255) NOT NULL, `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]reqmgrsystems` -- CREATE TABLE `[[dbprefix]]reqmgrsystems` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `type` int(10) DEFAULT '0', `cfg` text, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]reqmgrsystems_uidx1` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]requirements` -- CREATE TABLE `[[dbprefix]]requirements` ( `id` int(10) unsigned NOT NULL, `srs_id` int(10) unsigned NOT NULL, `req_doc_id` varchar(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]requirements_req_doc_id` (`srs_id`,`req_doc_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]req_coverage` -- CREATE TABLE `[[dbprefix]]req_coverage` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `req_id` int(10) NOT NULL, `req_version_id` int(10) NOT NULL, `testcase_id` int(10) NOT NULL, `tcversion_id` int(10) NOT NULL, `link_status` int(11) NOT NULL DEFAULT '1', `is_active` int(11) NOT NULL DEFAULT '1', `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `review_requester_id` int(10) unsigned DEFAULT NULL, `review_request_ts` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]req_coverage_full_link` (`req_id`,`req_version_id`,`testcase_id`,`tcversion_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='relation test case version ** requirement version' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]req_monitor` -- CREATE TABLE `[[dbprefix]]req_monitor` ( `req_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `testproject_id` int(11) NOT NULL, PRIMARY KEY (`req_id`,`user_id`,`testproject_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]req_relations` -- CREATE TABLE `[[dbprefix]]req_relations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `source_id` int(10) unsigned NOT NULL, `destination_id` int(10) unsigned NOT NULL, `relation_type` smallint(5) unsigned NOT NULL DEFAULT '1', `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]req_revisions` -- CREATE TABLE `[[dbprefix]]req_revisions` ( `parent_id` int(10) unsigned NOT NULL, `id` int(10) unsigned NOT NULL, `revision` smallint(5) unsigned NOT NULL DEFAULT '1', `req_doc_id` varchar(64) DEFAULT NULL, `name` varchar(100) DEFAULT NULL, `scope` text, `status` char(1) NOT NULL DEFAULT 'V', `type` char(1) DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT '1', `is_open` tinyint(1) NOT NULL DEFAULT '1', `expected_coverage` int(10) NOT NULL DEFAULT '1', `log_message` text, `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifier_id` int(10) unsigned DEFAULT NULL, `modification_ts` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]req_revisions_uidx1` (`parent_id`,`revision`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]req_specs` -- CREATE TABLE `[[dbprefix]]req_specs` ( `id` int(10) unsigned NOT NULL, `testproject_id` int(10) unsigned NOT NULL, `doc_id` varchar(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]req_spec_uk1` (`doc_id`,`testproject_id`), KEY `[[dbprefix]]testproject_id` (`testproject_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Dev. Documents (e.g. System Requirements Specification)'; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]req_specs_revisions` -- CREATE TABLE `[[dbprefix]]req_specs_revisions` ( `parent_id` int(10) unsigned NOT NULL, `id` int(10) unsigned NOT NULL, `revision` smallint(5) unsigned NOT NULL DEFAULT '1', `doc_id` varchar(64) DEFAULT NULL, `name` varchar(100) DEFAULT NULL, `scope` text, `total_req` int(10) NOT NULL DEFAULT '0', `status` int(10) unsigned DEFAULT '1', `type` char(1) DEFAULT NULL, `log_message` text, `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifier_id` int(10) unsigned DEFAULT NULL, `modification_ts` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]req_specs_revisions_uidx1` (`parent_id`,`revision`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]req_versions` -- CREATE TABLE `[[dbprefix]]req_versions` ( `id` int(10) unsigned NOT NULL, `version` smallint(5) unsigned NOT NULL DEFAULT '1', `revision` smallint(5) unsigned NOT NULL DEFAULT '1', `scope` text, `status` char(1) NOT NULL DEFAULT 'V', `type` char(1) DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT '1', `is_open` tinyint(1) NOT NULL DEFAULT '1', `expected_coverage` int(10) NOT NULL DEFAULT '1', `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifier_id` int(10) unsigned DEFAULT NULL, `modification_ts` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `log_message` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]rights` -- CREATE TABLE `[[dbprefix]]rights` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]rights_descr` (`description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=57 ; -- -- Dumping data for table `[[dbprefix]]rights` -- INSERT INTO `[[dbprefix]]rights` VALUES (53, 'cfield_assignment'), (18, 'cfield_management'), (17, 'cfield_view'), (51, 'codetracker_management'), (52, 'codetracker_view'), (56, 'delete_frozen_tcversion'), (22, 'events_mgt'), (54, 'exec_assign_testcases'), (36, 'exec_delete'), (35, 'exec_edit_notes'), (49, 'exec_ro_access'), (41, 'exec_testcases_assigned_to_me'), (31, 'issuetracker_management'), (32, 'issuetracker_view'), (29, 'keyword_assignment'), (9, 'mgt_modify_key'), (12, 'mgt_modify_product'), (11, 'mgt_modify_req'), (7, 'mgt_modify_tc'), (48, 'mgt_plugins'), (16, 'mgt_testplan_create'), (30, 'mgt_unfreeze_req'), (13, 'mgt_users'), (20, 'mgt_view_events'), (8, 'mgt_view_key'), (10, 'mgt_view_req'), (6, 'mgt_view_tc'), (21, 'mgt_view_usergroups'), (50, 'monitor_requirement'), (24, 'platform_management'), (25, 'platform_view'), (26, 'project_inventory_management'), (27, 'project_inventory_view'), (33, 'reqmgrsystem_management'), (34, 'reqmgrsystem_view'), (28, 'req_tcase_link_management'), (14, 'role_management'), (19, 'system_configuration'), (47, 'testcase_freeze'), (43, 'testplan_add_remove_platforms'), (2, 'testplan_create_build'), (1, 'testplan_execute'), (3, 'testplan_metrics'), (40, 'testplan_milestone_overview'), (4, 'testplan_planning'), (45, 'testplan_set_urgent_testcases'), (46, 'testplan_show_testcases_newest_versions'), (37, 'testplan_unlink_executed_testcases'), (44, 'testplan_update_linked_testcase_versions'), (5, 'testplan_user_role_assignment'), (55, 'testproject_add_remove_keywords_executed_tcversions'), (38, 'testproject_delete_executed_testcases'), (39, 'testproject_edit_executed_testcases'), (42, 'testproject_metrics_dashboard'), (23, 'testproject_user_role_assignment'), (15, 'user_role_assignment'); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]risk_assignments` -- CREATE TABLE `[[dbprefix]]risk_assignments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `testplan_id` int(10) unsigned NOT NULL DEFAULT '0', `node_id` int(10) unsigned NOT NULL DEFAULT '0', `risk` char(1) NOT NULL DEFAULT '2', `importance` char(1) NOT NULL DEFAULT 'M', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]risk_assignments_tplan_node_id` (`testplan_id`,`node_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]roles` -- CREATE TABLE `[[dbprefix]]roles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(100) NOT NULL DEFAULT '', `notes` text, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]role_rights_roles_descr` (`description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ; -- -- Dumping data for table `[[dbprefix]]roles` -- INSERT INTO `[[dbprefix]]roles` VALUES (1, '<reserved system role 1>', NULL), (2, '<reserved system role 2>', NULL), (3, '<no rights>', NULL), (4, 'test designer', NULL), (5, 'guest', NULL), (6, 'senior tester', NULL), (7, 'tester', NULL), (8, 'admin', NULL), (9, 'leader', NULL); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]role_rights` -- CREATE TABLE `[[dbprefix]]role_rights` ( `role_id` int(10) NOT NULL DEFAULT '0', `right_id` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`role_id`,`right_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `[[dbprefix]]role_rights` -- INSERT INTO `[[dbprefix]]role_rights` VALUES (4, 3), (4, 6), (4, 7), (4, 8), (4, 9), (4, 10), (4, 11), (4, 28), (4, 29), (4, 30), (4, 50), (5, 3), (5, 6), (5, 8), (6, 1), (6, 2), (6, 3), (6, 6), (6, 7), (6, 8), (6, 9), (6, 11), (6, 25), (6, 27), (6, 28), (6, 29), (6, 30), (6, 50), (7, 1), (7, 3), (7, 6), (7, 8), (8, 1), (8, 2), (8, 3), (8, 4), (8, 5), (8, 6), (8, 7), (8, 8), (8, 9), (8, 10), (8, 11), (8, 12), (8, 13), (8, 14), (8, 15), (8, 16), (8, 17), (8, 18), (8, 19), (8, 20), (8, 21), (8, 22), (8, 23), (8, 24), (8, 25), (8, 26), (8, 27), (8, 28), (8, 29), (8, 30), (8, 31), (8, 32), (8, 33), (8, 34), (8, 35), (8, 36), (8, 37), (8, 38), (8, 39), (8, 40), (8, 41), (8, 42), (8, 43), (8, 44), (8, 45), (8, 46), (8, 47), (8, 48), (8, 50), (8, 51), (8, 52), (8, 53), (8, 54), (9, 1), (9, 2), (9, 3), (9, 4), (9, 5), (9, 6), (9, 7), (9, 8), (9, 9), (9, 10), (9, 11), (9, 15), (9, 16), (9, 24), (9, 25), (9, 26), (9, 27), (9, 28), (9, 29), (9, 30), (9, 47), (9, 50); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]tcsteps` -- CREATE TABLE `[[dbprefix]]tcsteps` ( `id` int(10) unsigned NOT NULL, `step_number` int(11) NOT NULL DEFAULT '1', `actions` text, `expected_results` text, `active` tinyint(1) NOT NULL DEFAULT '1', `execution_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 -> manual, 2 -> automated', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]tcversions` -- CREATE TABLE `[[dbprefix]]tcversions` ( `id` int(10) unsigned NOT NULL, `tc_external_id` int(10) unsigned DEFAULT NULL, `version` smallint(5) unsigned NOT NULL DEFAULT '1', `layout` smallint(5) unsigned NOT NULL DEFAULT '1', `status` smallint(5) unsigned NOT NULL DEFAULT '1', `summary` text, `preconditions` text, `importance` smallint(5) unsigned NOT NULL DEFAULT '2', `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updater_id` int(10) unsigned DEFAULT NULL, `modification_ts` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `active` tinyint(1) NOT NULL DEFAULT '1', `is_open` tinyint(1) NOT NULL DEFAULT '1', `execution_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 -> manual, 2 -> automated', `estimated_exec_duration` decimal(6,2) DEFAULT NULL COMMENT 'NULL will be considered as NO DATA Provided by user', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]tcversions_without_keywords` -- CREATE TABLE `[[dbprefix]]tcversions_without_keywords` ( `testcase_id` int(10) unsigned ,`id` int(10) unsigned ); -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]tcversions_without_platforms` -- CREATE TABLE `[[dbprefix]]tcversions_without_platforms` ( `testcase_id` int(10) unsigned ,`id` int(10) unsigned ); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testcase_keywords` -- CREATE TABLE `[[dbprefix]]testcase_keywords` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `testcase_id` int(10) unsigned NOT NULL DEFAULT '0', `tcversion_id` int(10) unsigned NOT NULL DEFAULT '0', `keyword_id` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]idx01_testcase_keywords` (`testcase_id`,`tcversion_id`,`keyword_id`), KEY `[[dbprefix]]idx02_testcase_keywords` (`tcversion_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testcase_platforms` -- CREATE TABLE `[[dbprefix]]testcase_platforms` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `testcase_id` int(10) unsigned NOT NULL DEFAULT '0', `tcversion_id` int(10) unsigned NOT NULL DEFAULT '0', `platform_id` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `idx01_testcase_platform` (`testcase_id`,`tcversion_id`,`platform_id`), KEY `idx02_testcase_platform` (`tcversion_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testcase_relations` -- CREATE TABLE `[[dbprefix]]testcase_relations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `source_id` int(10) unsigned NOT NULL, `destination_id` int(10) unsigned NOT NULL, `link_status` tinyint(1) NOT NULL DEFAULT '1', `relation_type` smallint(5) unsigned NOT NULL DEFAULT '1', `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testcase_script_links` -- CREATE TABLE `[[dbprefix]]testcase_script_links` ( `tcversion_id` int(10) unsigned NOT NULL DEFAULT '0', `project_key` varchar(64) NOT NULL, `repository_name` varchar(64) NOT NULL, `code_path` varchar(255) NOT NULL, `branch_name` varchar(64) DEFAULT NULL, `commit_id` varchar(40) DEFAULT NULL, PRIMARY KEY (`tcversion_id`,`project_key`,`repository_name`,`code_path`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testplans` -- CREATE TABLE `[[dbprefix]]testplans` ( `id` int(10) unsigned NOT NULL, `testproject_id` int(10) unsigned NOT NULL DEFAULT '0', `notes` text, `active` tinyint(1) NOT NULL DEFAULT '1', `is_open` tinyint(1) NOT NULL DEFAULT '1', `is_public` tinyint(1) NOT NULL DEFAULT '1', `api_key` varchar(64) NOT NULL DEFAULT '829a2ded3ed0829a2dedd8ab81dfa2c77e8235bc3ed0d8ab81dfa2c77e8235bc', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]testplans_api_key` (`api_key`), KEY `[[dbprefix]]testplans_testproject_id_active` (`testproject_id`,`active`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testplan_platforms` -- CREATE TABLE `[[dbprefix]]testplan_platforms` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `testplan_id` int(10) unsigned NOT NULL, `platform_id` int(10) unsigned NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]idx_testplan_platforms` (`testplan_id`,`platform_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Connects a testplan with platforms' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testplan_tcversions` -- CREATE TABLE `[[dbprefix]]testplan_tcversions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `testplan_id` int(10) unsigned NOT NULL DEFAULT '0', `tcversion_id` int(10) unsigned NOT NULL DEFAULT '0', `node_order` int(10) unsigned NOT NULL DEFAULT '1', `urgency` smallint(5) NOT NULL DEFAULT '2', `platform_id` int(10) unsigned NOT NULL DEFAULT '0', `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]testplan_tcversions_tplan_tcversion` (`testplan_id`,`tcversion_id`,`platform_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testprojects` -- CREATE TABLE `[[dbprefix]]testprojects` ( `id` int(10) unsigned NOT NULL, `notes` text, `color` varchar(12) NOT NULL DEFAULT '#9BD', `active` tinyint(1) NOT NULL DEFAULT '1', `option_reqs` tinyint(1) NOT NULL DEFAULT '0', `option_priority` tinyint(1) NOT NULL DEFAULT '0', `option_automation` tinyint(1) NOT NULL DEFAULT '0', `options` text, `prefix` varchar(16) NOT NULL, `tc_counter` int(10) unsigned NOT NULL DEFAULT '0', `is_public` tinyint(1) NOT NULL DEFAULT '1', `issue_tracker_enabled` tinyint(1) NOT NULL DEFAULT '0', `code_tracker_enabled` tinyint(1) NOT NULL DEFAULT '0', `reqmgr_integration_enabled` tinyint(1) NOT NULL DEFAULT '0', `api_key` varchar(64) NOT NULL DEFAULT '0d8ab81dfa2c77e8235bc829a2ded3edfa2c78235bc829a27eded3ed0d8ab81d', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]testprojects_prefix` (`prefix`), UNIQUE KEY `[[dbprefix]]testprojects_api_key` (`api_key`), KEY `[[dbprefix]]testprojects_id_active` (`id`,`active`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testproject_codetracker` -- CREATE TABLE `[[dbprefix]]testproject_codetracker` ( `testproject_id` int(10) unsigned NOT NULL, `codetracker_id` int(10) unsigned NOT NULL, PRIMARY KEY (`testproject_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testproject_issuetracker` -- CREATE TABLE `[[dbprefix]]testproject_issuetracker` ( `testproject_id` int(10) unsigned NOT NULL, `issuetracker_id` int(10) unsigned NOT NULL, PRIMARY KEY (`testproject_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testproject_reqmgrsystem` -- CREATE TABLE `[[dbprefix]]testproject_reqmgrsystem` ( `testproject_id` int(10) unsigned NOT NULL, `reqmgrsystem_id` int(10) unsigned NOT NULL, PRIMARY KEY (`testproject_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]testsuites` -- CREATE TABLE `[[dbprefix]]testsuites` ( `id` int(10) unsigned NOT NULL, `details` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]text_templates` -- CREATE TABLE `[[dbprefix]]text_templates` ( `id` int(10) unsigned NOT NULL, `type` smallint(5) unsigned NOT NULL, `title` varchar(100) NOT NULL, `template_data` text, `author_id` int(10) unsigned DEFAULT NULL, `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `is_public` tinyint(1) NOT NULL DEFAULT '0', UNIQUE KEY `idx_text_templates` (`type`,`title`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Global Project Templates'; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]transactions` -- CREATE TABLE `[[dbprefix]]transactions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `entry_point` varchar(45) NOT NULL DEFAULT '', `start_time` int(10) unsigned NOT NULL DEFAULT '0', `end_time` int(10) unsigned NOT NULL DEFAULT '0', `user_id` int(10) unsigned NOT NULL DEFAULT '0', `session_id` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Dumping data for table `[[dbprefix]]transactions` -- -- -------------------------------------------------------- -- -- Stand-in structure for view `[[dbprefix]]tsuites_tree_depth_2` -- CREATE TABLE `[[dbprefix]]tsuites_tree_depth_2` ( `prefix` varchar(16) ,`testproject_name` varchar(100) ,`level1_name` varchar(100) ,`level2_name` varchar(100) ,`testproject_id` int(10) unsigned ,`level1_id` int(10) unsigned ,`level2_id` int(10) unsigned ); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]users` -- CREATE TABLE `[[dbprefix]]users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `login` varchar(100) NOT NULL DEFAULT '', `password` varchar(255) NOT NULL DEFAULT '', `role_id` int(10) unsigned NOT NULL DEFAULT '0', `email` varchar(100) NOT NULL DEFAULT '', `first` varchar(50) NOT NULL DEFAULT '', `last` varchar(50) NOT NULL DEFAULT '', `locale` varchar(10) NOT NULL DEFAULT 'en_GB', `default_testproject_id` int(10) DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT '1', `script_key` varchar(32) DEFAULT NULL, `cookie_string` varchar(64) NOT NULL DEFAULT '', `auth_method` varchar(10) DEFAULT '', `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `expiration_date` date DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]users_login` (`login`), UNIQUE KEY `[[dbprefix]]users_cookie_string` (`cookie_string`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='User information' AUTO_INCREMENT=2 ; -- -- Dumping data for table `[[dbprefix]]users` -- INSERT INTO `[[dbprefix]]users` VALUES (1, 'admin', '[[admin_pass]]', 8, '[[admin_email]]', '[[admin_fname]]', '[[admin_lname]]', 'en_GB', NULL, 1, NULL, '[[cookie_string]]', '', '[[regtime]]', NULL); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]user_assignments` -- CREATE TABLE `[[dbprefix]]user_assignments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` int(10) unsigned NOT NULL DEFAULT '1', `feature_id` int(10) unsigned NOT NULL DEFAULT '0', `user_id` int(10) unsigned DEFAULT '0', `build_id` int(10) unsigned DEFAULT '0', `deadline_ts` datetime DEFAULT NULL, `assigner_id` int(10) unsigned DEFAULT '0', `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `status` int(10) unsigned DEFAULT '1', PRIMARY KEY (`id`), KEY `[[dbprefix]]user_assignments_feature_id` (`feature_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]user_group` -- CREATE TABLE `[[dbprefix]]user_group` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, `description` text, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]idx_user_group` (`title`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]user_group_assign` -- CREATE TABLE `[[dbprefix]]user_group_assign` ( `usergroup_id` int(10) unsigned NOT NULL, `user_id` int(10) unsigned NOT NULL, UNIQUE KEY `[[dbprefix]]idx_user_group_assign` (`usergroup_id`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]user_testplan_roles` -- CREATE TABLE `[[dbprefix]]user_testplan_roles` ( `user_id` int(10) NOT NULL DEFAULT '0', `testplan_id` int(10) NOT NULL DEFAULT '0', `role_id` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`user_id`,`testplan_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]user_testproject_roles` -- CREATE TABLE `[[dbprefix]]user_testproject_roles` ( `user_id` int(10) NOT NULL DEFAULT '0', `testproject_id` int(10) NOT NULL DEFAULT '0', `role_id` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`user_id`,`testproject_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]exec_by_date_time` -- DROP TABLE IF EXISTS `[[dbprefix]]exec_by_date_time`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]exec_by_date_time` AS (select `NHTPL`.`name` AS `testplan_name`,date_format(`E`.`execution_ts`,'%Y-%m-%d') AS `yyyy_mm_dd`,date_format(`E`.`execution_ts`,'%Y-%m') AS `yyyy_mm`,date_format(`E`.`execution_ts`,'%H') AS `hh`,date_format(`E`.`execution_ts`,'%k') AS `hour`,`E`.`id` AS `id`,`E`.`build_id` AS `build_id`,`E`.`tester_id` AS `tester_id`,`E`.`execution_ts` AS `execution_ts`,`E`.`status` AS `status`,`E`.`testplan_id` AS `testplan_id`,`E`.`tcversion_id` AS `tcversion_id`,`E`.`tcversion_number` AS `tcversion_number`,`E`.`platform_id` AS `platform_id`,`E`.`execution_type` AS `execution_type`,`E`.`execution_duration` AS `execution_duration`,`E`.`notes` AS `notes` from ((`[[dbprefix]]executions` `E` join `[[dbprefix]]testplans` `TPL` on((`TPL`.`id` = `E`.`testplan_id`))) join `[[dbprefix]]nodes_hierarchy` `NHTPL` on((`NHTPL`.`id` = `TPL`.`id`)))); -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]latest_exec_by_context` -- DROP TABLE IF EXISTS `[[dbprefix]]latest_exec_by_context`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]latest_exec_by_context` AS select `[[dbprefix]]executions`.`tcversion_id` AS `tcversion_id`,`[[dbprefix]]executions`.`testplan_id` AS `testplan_id`,`[[dbprefix]]executions`.`build_id` AS `build_id`,`[[dbprefix]]executions`.`platform_id` AS `platform_id`,max(`[[dbprefix]]executions`.`id`) AS `id` from `[[dbprefix]]executions` group by `[[dbprefix]]executions`.`tcversion_id`,`[[dbprefix]]executions`.`testplan_id`,`[[dbprefix]]executions`.`build_id`,`[[dbprefix]]executions`.`platform_id`; -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]latest_exec_by_testplan` -- DROP TABLE IF EXISTS `[[dbprefix]]latest_exec_by_testplan`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]latest_exec_by_testplan` AS select `[[dbprefix]]executions`.`tcversion_id` AS `tcversion_id`,`[[dbprefix]]executions`.`testplan_id` AS `testplan_id`,max(`[[dbprefix]]executions`.`id`) AS `id` from `[[dbprefix]]executions` group by `[[dbprefix]]executions`.`tcversion_id`,`[[dbprefix]]executions`.`testplan_id`; -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]latest_exec_by_testplan_plat` -- DROP TABLE IF EXISTS `[[dbprefix]]latest_exec_by_testplan_plat`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]latest_exec_by_testplan_plat` AS select `[[dbprefix]]executions`.`tcversion_id` AS `tcversion_id`,`[[dbprefix]]executions`.`testplan_id` AS `testplan_id`,`[[dbprefix]]executions`.`platform_id` AS `platform_id`,max(`[[dbprefix]]executions`.`id`) AS `id` from `[[dbprefix]]executions` group by `[[dbprefix]]executions`.`tcversion_id`,`[[dbprefix]]executions`.`testplan_id`,`[[dbprefix]]executions`.`platform_id`; -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]latest_req_version` -- DROP TABLE IF EXISTS `[[dbprefix]]latest_req_version`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]latest_req_version` AS select `RQ`.`id` AS `req_id`,max(`RQV`.`version`) AS `version` from ((`[[dbprefix]]nodes_hierarchy` `NHRQV` join `[[dbprefix]]requirements` `RQ` on((`RQ`.`id` = `NHRQV`.`parent_id`))) join `[[dbprefix]]req_versions` `RQV` on((`RQV`.`id` = `NHRQV`.`id`))) group by `RQ`.`id`; -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]latest_req_version_id` -- DROP TABLE IF EXISTS `[[dbprefix]]latest_req_version_id`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]latest_req_version_id` AS select `LRQVN`.`req_id` AS `req_id`,`LRQVN`.`version` AS `version`,`REQV`.`id` AS `req_version_id` from ((`[[dbprefix]]latest_req_version` `LRQVN` join `[[dbprefix]]nodes_hierarchy` `NHRQV` on((`NHRQV`.`parent_id` = `LRQVN`.`req_id`))) join `[[dbprefix]]req_versions` `REQV` on(((`REQV`.`id` = `NHRQV`.`id`) and (`REQV`.`version` = `LRQVN`.`version`)))); -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]latest_rspec_revision` -- DROP TABLE IF EXISTS `[[dbprefix]]latest_rspec_revision`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]latest_rspec_revision` AS select `RSR`.`parent_id` AS `req_spec_id`,`RS`.`testproject_id` AS `testproject_id`,max(`RSR`.`revision`) AS `revision` from (`[[dbprefix]]req_specs_revisions` `RSR` join `[[dbprefix]]req_specs` `RS` on((`RS`.`id` = `RSR`.`parent_id`))) group by `RSR`.`parent_id`,`RS`.`testproject_id`; -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]latest_tcase_version_id` -- DROP TABLE IF EXISTS `[[dbprefix]]latest_tcase_version_id`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]latest_tcase_version_id` AS select `LTCVN`.`testcase_id` AS `testcase_id`,`LTCVN`.`version` AS `version`,`TCV`.`id` AS `tcversion_id` from ((`[[dbprefix]]latest_tcase_version_number` `LTCVN` join `[[dbprefix]]nodes_hierarchy` `NHTCV` on((`NHTCV`.`parent_id` = `LTCVN`.`testcase_id`))) join `[[dbprefix]]tcversions` `TCV` on(((`TCV`.`id` = `NHTCV`.`id`) and (`TCV`.`version` = `LTCVN`.`version`)))); -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]latest_tcase_version_number` -- DROP TABLE IF EXISTS `[[dbprefix]]latest_tcase_version_number`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]latest_tcase_version_number` AS select `NH_TC`.`id` AS `testcase_id`,max(`TCV`.`version`) AS `version` from ((`[[dbprefix]]nodes_hierarchy` `NH_TC` join `[[dbprefix]]nodes_hierarchy` `NH_TCV` on((`NH_TCV`.`parent_id` = `NH_TC`.`id`))) join `[[dbprefix]]tcversions` `TCV` on((`NH_TCV`.`id` = `TCV`.`id`))) group by `testcase_id`; -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]tcversions_without_keywords` -- DROP TABLE IF EXISTS `[[dbprefix]]tcversions_without_keywords`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]tcversions_without_keywords` AS select `NHTCV`.`parent_id` AS `testcase_id`,`NHTCV`.`id` AS `id` from `[[dbprefix]]nodes_hierarchy` `NHTCV` where ((`NHTCV`.`node_type_id` = 4) and (not(exists(select 1 from `[[dbprefix]]testcase_keywords` `TCK` where (`TCK`.`tcversion_id` = `NHTCV`.`id`))))); -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]tcversions_without_platforms` -- DROP TABLE IF EXISTS `[[dbprefix]]tcversions_without_platforms`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]tcversions_without_platforms` AS select `NHTCV`.`parent_id` AS `testcase_id`,`NHTCV`.`id` AS `id` from `[[dbprefix]]nodes_hierarchy` `NHTCV` where ((`NHTCV`.`node_type_id` = 4) and (not(exists(select 1 from `[[dbprefix]]testcase_platforms` `TCPL` where (`TCPL`.`tcversion_id` = `NHTCV`.`id`))))); -- -------------------------------------------------------- -- -- Structure for view `[[dbprefix]]tsuites_tree_depth_2` -- DROP TABLE IF EXISTS `[[dbprefix]]tsuites_tree_depth_2`; CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `[[dbprefix]]tsuites_tree_depth_2` AS select `TPRJ`.`prefix` AS `prefix`,`NHTPRJ`.`name` AS `testproject_name`,`NHTS_L1`.`name` AS `level1_name`,`NHTS_L2`.`name` AS `level2_name`,`NHTPRJ`.`id` AS `testproject_id`,`NHTS_L1`.`id` AS `level1_id`,`NHTS_L2`.`id` AS `level2_id` from (((`[[dbprefix]]testprojects` `TPRJ` join `[[dbprefix]]nodes_hierarchy` `NHTPRJ` on((`TPRJ`.`id` = `NHTPRJ`.`id`))) left join `[[dbprefix]]nodes_hierarchy` `NHTS_L1` on((`NHTS_L1`.`parent_id` = `NHTPRJ`.`id`))) left join `[[dbprefix]]nodes_hierarchy` `NHTS_L2` on((`NHTS_L2`.`parent_id` = `NHTS_L1`.`id`))) where ((`NHTPRJ`.`node_type_id` = 1) and (`NHTS_L1`.`node_type_id` = 2) and (`NHTS_L2`.`node_type_id` = 2)); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;