Changeset 89


Ignore:
Timestamp:
04/07/11 15:40:50 (14 years ago)
Author:
Kris Deugau
Message:

/trunk

SQL tabledef updates:

  • references and definition for longrecs table to contain data for records that need >100 chars
  • Basic initial group permissions switched to include domain and record add/delete/update
  • Initial admin user created with a somewhat better username, and first/last name filled in
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.sql

    r87 r89  
    88CREATE TABLE default_records (
    99    record_id serial NOT NULL,
     10    longrec_id integer,
    1011    group_id integer DEFAULT 1 NOT NULL,
    1112    host character varying(100) DEFAULT ''::character varying NOT NULL,
     
    5455
    5556CREATE TABLE log (
     57    log_id serial NOT NULL,
    5658    domain_id integer,
    5759    user_id integer,
     
    8587-- Need *two* basic permissions;  one for the initial group, one for the default admin user
    8688COPY permissions (permission_id, admin, self_edit, group_create, group_edit, group_delete, user_create, user_edit, user_delete, domain_create, domain_edit, domain_delete, record_create, record_edit, record_delete, user_id, group_id) FROM stdin;
    87 1       f       f       f       f       f       f       f       f       f       f       f       f       f       f       \N      1
     891       f       f       f       f       f       f       f       f       t       t       t       t       t       t       \N      1
    88902       t       f       f       f       f       f       f       f       f       f       f       f       f       f       1       \N
    8991\.
    9092
    91 -- fixeme:  need to handle looooong TXT records (eg, SPF)
     93-- fixme:  need to handle looooong records (eg, SPF)
    9294CREATE TABLE records (
    9395    domain_id integer NOT NULL,
    9496    record_id serial NOT NULL,
     97    longrec_id integer,
    9598    host character varying(100) DEFAULT ''::character varying NOT NULL,
    9699    "type" integer DEFAULT 1 NOT NULL,
     
    101104    ttl integer DEFAULT 7200 NOT NULL,
    102105    description character varying(255)
     106);
     107
     108CREATE TABLE longrecs (
     109    longrec_id serial NOT NULL,
     110    recdata text
    103111);
    104112
     
    196204-- create initial default user?  may be better to create an "initialize" script or something
    197205COPY users (user_id, group_id, username, "password", firstname, lastname, phone, "type", status, permission_id, inherit_perm) FROM stdin;
    198 1       1       test@test       $1$BByge8u2$48AaGX3YeHplfErX5Tlqa1      \N      \N      \N      S       1       2       f
     2061       1       admin   $1$PfEBUv9d$wV2/UG4gmKk08DLmdE8/d.      Initial User    \N      S       1       2       f
    199207\.
    200208
Note: See TracChangeset for help on using the changeset viewer.