Commit 3dc2d5198e63dcf8bf82f1c1b66395401269e8a9

Authored by Kevin Fourie
1 parent c4f2bf1e

KTC-656 - "DB upgrade fails: DB Error: Constraint violation"

Fixed. The server_name.sql file is now removed first as it is no longer
used.

Committed By: Kevin Fourie
Reviewed By: Donald Jackson

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@9678 c91229c3-7414-0410-bfa2-8a42b809f60b
.gitignore
... ... @@ -9,3 +9,4 @@ plugins/professional-reporting/
9 9 plugins/shortcuts/
10 10 plugins/wintools/
11 11 plugins/updatesandmessages/
  12 +var/cache/configcache
... ...
lib/upgrades/UpgradeFunctions.inc.php
... ... @@ -120,7 +120,8 @@ class UpgradeFunctions {
120 120  
121 121 var $priority = array(
122 122 'addAutoIncrementToTables'=>1,
123   - 'addAutoIncrementToTables2'=>-1
  123 + 'addAutoIncrementToTables2'=>-1,
  124 + 'removeOldFilesAndFolders354'=>1
124 125 );
125 126  
126 127 function addAutoIncrementToTables2()
... ...