|
Lines 101-106
if ( CheckVersion($DBversion) ) {
Link Here
|
| 101 |
} |
101 |
} |
| 102 |
); |
102 |
); |
| 103 |
|
103 |
|
|
|
104 |
# Add any unexpected accounttype codes to credit_types as appropriate |
| 105 |
$dbh->do( |
| 106 |
qq{ |
| 107 |
INSERT IGNORE INTO account_credit_types ( |
| 108 |
code, |
| 109 |
description, |
| 110 |
can_be_added_manually, |
| 111 |
is_system |
| 112 |
) |
| 113 |
SELECT |
| 114 |
SUBSTR(accounttype, 1, 80), |
| 115 |
"Unexpected type found during upgrade", |
| 116 |
1, |
| 117 |
0 |
| 118 |
FROM |
| 119 |
accountlines |
| 120 |
WHERE |
| 121 |
amount < 0 |
| 122 |
} |
| 123 |
); |
| 124 |
|
| 104 |
# Populating credit_type_code |
125 |
# Populating credit_type_code |
| 105 |
$dbh->do( |
126 |
$dbh->do( |
| 106 |
qq{ |
127 |
qq{ |
| 107 |
- |
|
|