View | Details | Raw Unified | Return to bug 17356
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/skeleton.perl (+10 lines)
Line 0 Link Here
1
use C4::Installer;
2
my $dbh = C4::Context->dbh;
3
$DBversion = '16.06.00.XXX';
4
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5
    unless( column_exists( 'biblio', 'biblionumber' ) ) { # or constraint_exists( $table_name, $key_name )
6
        warn "There is something wrong";
7
    }
8
    SetVersion ($DBversion);
9
    print "Upgrade to $DBversion done (Bug XXXXX - description)\n";
10
}
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +1 lines)
Lines 13190-13195 my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/ato Link Here
13190
opendir( my $dirh, $update_dir );
13190
opendir( my $dirh, $update_dir );
13191
foreach my $file ( sort readdir $dirh ) {
13191
foreach my $file ( sort readdir $dirh ) {
13192
    next if $file !~ /\.(sql|perl)$/;  #skip other files
13192
    next if $file !~ /\.(sql|perl)$/;  #skip other files
13193
    next if $file eq 'skeleton.perl'; # skip the skeleton file
13193
    print "DEV atomic update: $file\n";
13194
    print "DEV atomic update: $file\n";
13194
    if ( $file =~ /\.sql$/ ) {
13195
    if ( $file =~ /\.sql$/ ) {
13195
        my $installer = C4::Installer->new();
13196
        my $installer = C4::Installer->new();
13196
- 

Return to bug 17356