Changeset 679 for trunk/cgi-bin
- Timestamp:
- 01/19/15 18:09:59 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/db-update.pl
r658 r679 8 8 use MyIPDB; 9 9 10 # run the tabledef update first 10 # run the tabledef update first. This is "safe"; IPDB < 3.0 can still happily munch away at it. 11 11 print qx { PGPASSWORD=ipdbpwd psql -h localhost -U ipdb ipdb <ipdb-2.7-3.0.sql }; 12 12 … … 60 60 " WHERE id = ?"); 61 61 62 # Need to disable the update trigger on the allocations table, so we don't mangle the real mtimes on the data. 63 $dbh->do("DROP TRIGGER up_modtime ON allocations"); 64 62 65 $getm->execute; 63 66 while (my ($master,$mctime,$mmtime,$mswip) = $getm->fetchrow_array()) { … … 110 113 # weesa gotsa BIIIIG job, gotta fetch all the current rDNS. note this relies 111 114 # on having had the DNS data imported and munged into the new pseudotypes. 115 # ... never mind. this will be opportunistic, since DNS data isn't viewed 116 # unless adding (not present, we should hope!) or updating (where it should 117 # be retrieved from the authoritative API in real time) 112 118 } 119 120 # Recreate modtime trigger on allocations, now that we're done monkeying with it. 121 $dbh->do("CREATE TRIGGER up_modtime BEFORE UPDATE ON allocations FOR EACH ROW EXECUTE PROCEDURE up_modtime()"); 113 122 114 123 $dbh->commit;
Note:
See TracChangeset
for help on using the changeset viewer.