Skip to content

Commit 2a1bc45

Browse files
committed
fix (user contribution)
1 parent fac68e3 commit 2a1bc45

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

install/sql/alter_tables/1.9.20/mysql/DB.1.9.20/step1/db_schema_update.sql

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,35 @@ ALTER TABLE /*prefix*/builds ADD COLUMN branch varchar(64) NULL;
1818
ALTER TABLE /*prefix*/builds ADD COLUMN release_candidate varchar(100) NULL;
1919

2020
--
21-
ALTER TABLE /*prefix*/users MODIFY password VARCHAR(255);
21+
ALTER TABLE /*prefix*/users MODIFY password VARCHAR(255) NOT NULL default '';
2222

2323
--
2424
ALTER TABLE /*prefix*/testplan_platforms ADD COLUMN active tinyint(1) NOT NULL default '1';
2525
ALTER TABLE /*prefix*/platforms ADD COLUMN enable_on_design tinyint(1) NOT NULL default '0';
2626
ALTER TABLE /*prefix*/platforms ADD COLUMN enable_on_execution tinyint(1) NOT NULL default '1';
2727

28+
--
29+
ALTER TABLE /*prefix*/nodes_hierarchy ADD INDEX /*prefix*/nodes_hierarchy_node_type_id (node_type_id);
30+
ALTER TABLE /*prefix*/testcase_keywords ADD INDEX /*prefix*/idx02_testcase_keywords (tcversion_id);
31+
32+
ALTER TABLE /*prefix*/milestones MODIFY target_date date NOT NULL;
33+
ALTER TABLE /*prefix*/milestones MODIFY start_date date DEFAULT NULL;
34+
35+
--
36+
CREATE TABLE /*prefix*/execution_tcsteps_wip (
37+
id int(10) unsigned NOT NULL auto_increment,
38+
tcstep_id int(10) unsigned NOT NULL default '0',
39+
testplan_id int(10) unsigned NOT NULL default '0',
40+
platform_id int(10) unsigned NOT NULL default '0',
41+
build_id int(10) unsigned NOT NULL default '0',
42+
tester_id int(10) unsigned default NULL,
43+
creation_ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
44+
notes text,
45+
status char(1) default NULL,
46+
PRIMARY KEY (id),
47+
UNIQUE KEY /*prefix*/execution_tcsteps_wip_idx1(`tcstep_id`,`testplan_id`,`platform_id`,`build_id`)
48+
) DEFAULT CHARSET=utf8;
49+
2850

2951
CREATE TABLE /*prefix*/testcase_platforms (
3052
id int(10) unsigned NOT NULL AUTO_INCREMENT,
@@ -45,7 +67,7 @@ CREATE TABLE /*prefix*/baseline_l1l2_context (
4567
end_exec_ts timestamp NOT NULL,
4668
creation_ts timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
4769
PRIMARY KEY (id),
48-
UNIQUE KEY udx1 (testplan_id,platform_id,creation_ts),
70+
UNIQUE KEY udx1 (testplan_id,platform_id,creation_ts)
4971
) DEFAULT CHARSET=utf8;
5072

5173

@@ -73,9 +95,6 @@ AS SELECT tcversion_id, testplan_id,build_id,platform_id,max(id) AS id
7395
FROM /*prefix*/executions
7496
GROUP BY tcversion_id,testplan_id,build_id,platform_id;
7597

76-
ALTER TABLE /*prefix*/nodes_hierarchy ADD INDEX /*prefix*/nodes_hierarchy_node_type_id (node_type_id);
77-
ALTER TABLE /*prefix*/testcase_keywords ADD INDEX /*prefix*/idx02_testcase_keywords (tcversion_id);
78-
7998

8099
CREATE OR REPLACE VIEW /*prefix*/tcversions_without_platforms
81100
AS SELECT

0 commit comments

Comments
 (0)