Changeset 211


Ignore:
Timestamp:
12/21/11 17:48:17 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix niggling little bug in vega-import.pl that caused the permissions
and default_records IDs to start at 2 instead of 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/vega-import.pl

    r204 r211  
    5959    # set seq id on permissions, since we merged the two tables, and the new permission IDs will not match the old
    6060    $newdbh->do("SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('permissions', 'permission_id'),".
    61         "1, true)") or warn "couldn't set permission sequence: ".$newdbh->errstr."\n";
     61        "1, false)") or warn "couldn't set permission sequence: ".$newdbh->errstr."\n";
    6262    # set seq id on default_records since we're inserting more than we retrieved
    6363    $newdbh->do("SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('default_records', 'record_id'),".
    64         "1, true)") or warn "couldn't set defrec sequence: ".$newdbh->errstr."\n";
     64        "1, false)") or warn "couldn't set defrec sequence: ".$newdbh->errstr."\n";
    6565  }
    6666}
Note: See TracChangeset for help on using the changeset viewer.