前回、1.9.17へのアップグレードができた(っぽい)ので、ついでに1.9.20まであげてみる。
今回の記事では、途中の確認までで終了。
状況
手順は前回と同じなので省略
- 1.9.17 to 1.9.18 ⇒OK
- 1.9.18 to 1.9.19 ⇒OK
- 1.9.19 to 1.9.20 ⇒NG。db_schema_update.sqlの実行時にエラーが発生した。
エラー原因?
db_schema_update.sqlの以下の箇所(★)が怪しい。
- ★1, 2: 最後はカンマじゃなくて、セミコロンじゃない?
- ★3: 最後のカンマいる?
- ★4: `id` は id で良くない?
以下、抜粋
ALTER TABLE testplan_platforms ADD COLUMN active tinyint(1) NOT NULL default '1';
ALTER TABLE platforms ADD COLUMN enable_on_design tinyint(1) NOT NULL default '0', ★1
ALTER TABLE platforms ADD COLUMN enable_on_execution tinyint(1) NOT NULL default '1', ★2
CREATE TABLE 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',
being_exec_ts timestamp NOT NULL,
end_exec_ts timestamp NOT NULL,
creation_ts timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id),
UNIQUE KEY udx1 (testplan_id,platform_id,creation_ts), ★3
) DEFAULT CHARSET=utf8;
CREATE TABLE 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`), ★4
UNIQUE KEY udx1 (context_id,top_tsuite_id,child_tsuite_id,status)
) DEFAULT CHARSET=utf8;
一応、いろいろ手を加えて、突破はしてみたけれども。まぁここら辺が怪しいんじゃないか、ということで。
以上。