zoukankan      html  css  js  c++  java
  • testlink 从1.8.5 升级到 1.9.8

    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 从新数据库名改回数据库名。
  • 相关阅读:
    解题报告:luogu P3853 [TJOI2007]路标设置
    解题报告:luogu P2678 跳石头
    SG函数
    解题报告:CF622F
    解题报告:luogu P1144 最短路计数
    树剖小结(简述)
    LCA之tarjan离线
    %你赛2020.2
    一个小证明(题解 P5425 Part1)
    科创版简介
  • 原文地址:https://www.cnblogs.com/pasco/p/3730286.html
Copyright © 2011-2022 走看看