Changeset 375 for trunk/dns.sql


Ignore:
Timestamp:
08/08/12 18:04:47 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Checkpoint adding locations/views. See #10.

  • Tweak new locations table again with an internal serial for sorting and finding the "highest" previous location
  • Complete "Add location" stub
  • Fill in initial display page for "Edit location"
  • Tweak location add/edit/update template a little, add new comments field to match new field in table
  • Tweak location import so we don't end up with great long space-free fields similar to what can't be avoided with TXT (usually SPF/DomainKeys) records
  • Fill in addLoc() stub
  • Add getLoc()
  • Tweak location export to strip commas and whitespace properly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.sql

    r370 r375  
    1919CREATE TABLE locations (
    2020    location character varying (4) PRIMARY KEY,
     21    loc_id serial UNIQUE,
    2122    group_id integer NOT NULL DEFAULT 1,
    2223    iplist text NOT NULL DEFAULT '',
    23     description text NOT NULL DEFAULT ''
     24    description character varying(40) NOT NULL DEFAULT '',
     25    comments text NOT NULL DEFAULT ''
    2426);
    2527
Note: See TracChangeset for help on using the changeset viewer.