Changeset 774


Ignore:
Timestamp:
07/30/19 17:05:22 (5 years ago)
Author:
Kris Deugau
Message:

/trunk

Add serial numbers on zone creation through API. See #24.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r773 r774  
    24712471  eval {
    24722472    # insert the domain...
    2473     $dbh->do("INSERT INTO domains (domain,group_id,status,default_location) VALUES (?,?,?,?)", undef,
    2474         ($domain, $group, $state, $defloc));
     2473    $dbh->do("INSERT INTO domains (domain,group_id,status,default_location,zserial) VALUES (?,?,?,?,?)", undef,
     2474        ($domain, $group, $state, $defloc, scalar(time()) ) );
    24752475
    24762476    # get the ID...
     
    27512751  eval {
    27522752    # insert the zone...
    2753     $dbh->do("INSERT INTO revzones (revnet,group_id,status,default_location) VALUES (?,?,?,?)", undef,
    2754         ($zone, $group, $state, $defloc) );
     2753    $dbh->do("INSERT INTO revzones (revnet,group_id,status,default_location,zserial) VALUES (?,?,?,?,?)", undef,
     2754        ($zone, $group, $state, $defloc, scalar(time()) ) );
    27552755
    27562756    # get the ID...
Note: See TracChangeset for help on using the changeset viewer.