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 从新数据库名改回数据库名。
  • 相关阅读:
    初始化注解和销毁注解
    MySQL、SQLServer、Oracle 分组排序
    mybatis 中SQLServer 和 mysql 模糊查询 不同点
    SpringBoot学习之logback.xml 配置指定包或类输出至单独的日志文件中
    类比 RocketMq 和 淘宝消息服务:
    SVN提交文件失败:系统找不到指定路径
    官网下载MySQL 并安装
    Java 变量参数传入方法,方法结束后传入的值
    03-类与对象课后作业(1)
    02方法-课后动手动脑
  • 原文地址:https://www.cnblogs.com/pasco/p/3730286.html
Copyright © 2011-2022 走看看