Ignore:
Timestamp:
07/29/10 17:48:33 (19 months ago)
Author:
root
Message:

added support for Trac 0.12 Multirepos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/module_installer.php

    r2323 r2365  
    2424$mod_title = "Trac-SVN reports"; 
    2525$mod_description = "This ExiteCMS module provides a reporting of Trac Project management, and connects to SVN to retrieve details status information"; 
    26 $mod_version = "0.1.6"; 
     26$mod_version = "0.1.7"; 
    2727$mod_developer = "WanWizard"; 
    2828$mod_email = "wanwizard@exitecms.org"; 
     
    129129$localestrings['en']['456'] = "Non-public repository paths:"; 
    130130$localestrings['en']['457'] = "Trac base URL:"; 
     131$localestrings['en']['458'] = "Trac SVN repository name:"; 
     132$localestrings['en']['459'] = "A repository name is given, but your Trac installation has no support for multirepos"; 
     133$localestrings['en']['460'] = "The repository name entered can not be located in the Trac database"; 
    131134 
    132135$localestrings['en']['500'] = "Changeset"; 
     
    211214$localestrings['nl']['456'] = "Niet publieke repository paden:"; 
    212215$localestrings['nl']['457'] = "Trac basis URL:"; 
     216$localestrings['nl']['458'] = "Trac SVN repository naam:"; 
     217$localestrings['nl']['459'] = "Een repository naam is ingevoerd, maar de Trac installatie heeft geen multirepos ondersteuning"; 
     218$localestrings['nl']['460'] = "De repository naam die is ingevoerd kan niet gevonden worden in de Trac database"; 
    213219 
    214220$localestrings['nl']['500'] = "Changeset"; 
     
    243249$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_database', '')"); 
    244250$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_url', '')"); 
     251$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_repo', '')"); 
    245252$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_trac_url', '')"); 
    246253$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_svncmd', '/usr/bin/svn')"); 
     
    270277$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_database'"); 
    271278$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_url'"); 
     279$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_repo'"); 
    272280$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_trac_url'"); 
    273281$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_svncmd'"); 
     
    322330            case "0.1.5": 
    323331                // no upgrades this version 
     332            case "0.1.6": 
     333                // add the new trac repo name (support for v0.12 multirepos) 
     334                $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_repo', '')"); 
    324335            default: 
    325336                // do this with every upgrade 
Note: See TracChangeset for help on using the changeset viewer.