Lines 2-11
$DBversion = 'XXX'; # will be replaced by the RM
Link Here
|
2 |
if( CheckVersion( $DBversion ) ) { |
2 |
if( CheckVersion( $DBversion ) ) { |
3 |
$dbh->do( "DROP TABLE IF EXISTS printers" ); |
3 |
$dbh->do( "DROP TABLE IF EXISTS printers" ); |
4 |
|
4 |
|
5 |
if( !column_exists( 'branches', 'branchprinter' ) ) { |
5 |
if( column_exists( 'branches', 'branchprinter' ) ) { |
6 |
$dbh->do( "ALTER TABLE branches DROP COLUMN branchprinter" ); |
6 |
$dbh->do( "ALTER TABLE branches DROP COLUMN branchprinter" ); |
7 |
} |
7 |
} |
8 |
|
8 |
|
9 |
$dbh->do(qq{ DELETE FROM systempreferences WHERE variable = "printcirculationslips"} ); |
9 |
$dbh->do(qq{ DELETE FROM systempreferences WHERE variable = "printcirculationslips"} ); |
10 |
|
10 |
|
11 |
SetVersion( $DBversion ); |
11 |
SetVersion( $DBversion ); |
12 |
- |
|
|