Changeset 366 for trunk/dns-1.0-1.2.sql


Ignore:
Timestamp:
07/23/12 20:58:35 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Update initial tabledef and 1.0 -> 1.2 conversion SQL to add "changed"
flag intended to help speed up export of large datasets by not actually
actively exporting all zones each time. Note for tinydns this will
require a static cache directory for a workspace so that unchanged
zones can have their data streamed into the main tinydns data file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns-1.0-1.2.sql

    r365 r366  
    2323SELECT pg_catalog.setval('default_rev_records_record_id_seq', 5, false);
    2424
     25ALTER TABLE domains ADD COLUMN changed boolean;
     26UPDATE domains SET changed=false;
     27ALTER TABLE domains ALTER COLUMN changed SET DEFAULT true;
     28ALTER TABLE domains ALTER COLUMN changed SET NOT NULL;
     29
    2530CREATE TABLE revzones (
    2631    rdns_id serial NOT NULL,
     
    3035    status integer DEFAULT 1 NOT NULL,
    3136    zserial integer,
    32     sertype character(1) DEFAULT 'D'::bpchar
     37    sertype character(1) DEFAULT 'D'::bpchar,
     38    changed boolean DEFAULT true NOT NULL
    3339);
    3440
Note: See TracChangeset for help on using the changeset viewer.