Changeset 799 for trunk/cgi-bin


Ignore:
Timestamp:
12/23/15 16:31:51 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Make sure to remove the backup record when deleting a netblock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r798 r799  
    28632863      $dbh->do("DELETE FROM allocations WHERE cidr <<= ? AND master_id = ?", undef, ($cidr, $binfo->{master_id}) );
    28642864      $dbh->do("DELETE FROM freeblocks WHERE cidr <<= ? AND master_id = ?", undef, ($cidr, $binfo->{master_id}) );
     2865      $dbh->do("DELETE FROM backuplist WHERE backup_id = ?", undef, $binfo->{hasbk})
     2866          if $binfo->{hasbk};
    28652867      $dbh->commit;
    28662868    };
Note: See TracChangeset for help on using the changeset viewer.