Changeset 366 for trunk


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.

Location:
trunk
Files:
2 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
  • trunk/dns.sql

    r351 r366  
    6565    status integer DEFAULT 1 NOT NULL,
    6666    zserial integer,
    67     sertype character(1) DEFAULT 'D'::bpchar
     67    sertype character(1) DEFAULT 'D'::bpchar,
     68    changed boolean DEFAULT true NOT NULL
    6869);
    6970
     
    7576    status integer DEFAULT 1 NOT NULL,
    7677    zserial integer,
    77     sertype character(1) DEFAULT 'D'::bpchar
     78    sertype character(1) DEFAULT 'D'::bpchar,
     79    changed boolean DEFAULT true NOT NULL
    7880);
    7981
Note: See TracChangeset for help on using the changeset viewer.