Testlink 从1.8.5 升级到 1.9.8

发表于:2015-3-20 10:40

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:StrayCat2015    来源:51Testing软件测试网采编

  step1:备份原 1.8.5 的数据库
  step2:分别下载 1.9.0 / 1.9.3 / 1.9.8 的安装包。
  step3:分别解压 1.9.0 / 1.9.3 / 1.9.8 成3个目录。
  step4:从 1.8.5 升到 1.9.0
  将 config_db.inc.php 和 custom_config.inc.php 从 1.8.5 目录下复制到 1.9.0 目录下,然后运行 1.9.0 的 upgrade 程序。
  step5:从 1.9.0 升到 1.9.3
  将 config_db.inc.php 和 custom_config.inc.php 从 1.9.0 目录下复制到 1.9.3 目录下,然后运行 1.9.3 的 upgrade 程序,最后再根据 upgrade 后的提示运行 alter_tables 的 sql。
  step6:从 1.9.3 升到 1.9.8
  将 config_db.inc.php 和 custom_config.inc.php 从 1.9.3 目录下复制到 1.9.8 目录下,然后运行 1.9.8 的 install 程序,用新的数据库名安装,再根据需要运行 alter_tables 的 sql。
  step7:在旧数据库中增加3个新表:last_executions、last_executions_by_platform、tcversions_last_active_bare_bones ,并删除一个表:text_templates, sql如下:
  create table Last_executions
  (tcversion_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) NOT NULL Default 0,
  id int(10) unsigned default NULL );
  create table Last_executions_by_platform
  (tcversion_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,
  id int(10) unsigned default NULL );
  create table Tcversions_last_active_bare_bones
  (tcase_id int(10) unsigned default NULL,tcversion_id int(10) unsigned default NULL);
  drop table text_templates;
  step8:将 config_db.inc.php 的 DB_NAME 从新数据库名改回旧数据库名。
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号