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',
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
-- Dumping data for table `[[dbprefix]]assignment_status`
INSERT INTO `[[dbprefix]]assignment_status` VALUES
-- --------------------------------------------------------
-- 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',
) 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,
`compression_type` int(11) NOT NULL DEFAULT '0',
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,
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',
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',
`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,
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',
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',
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,
) 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,
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',
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',
`status` char(1) DEFAULT NULL,
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,
`status` char(1) DEFAULT NULL,
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)
,`tester_id` int(10) unsigned
,`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)
-- --------------------------------------------------------
-- 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,
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modification_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
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',
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',
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
,`platform_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
-- --------------------------------------------------------
-- 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