Changeset 370 for trunk/dns.sql
- Timestamp:
- 07/29/12 22:02:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.sql
r369 r370 16 16 1 dbversion 1.2 17 17 \. 18 19 CREATE TABLE locations ( 20 location character varying (4) PRIMARY KEY, 21 group_id integer NOT NULL DEFAULT 1, 22 iplist text NOT NULL DEFAULT '', 23 description text NOT NULL DEFAULT '' 24 ); 18 25 19 26 CREATE TABLE default_records ( … … 66 73 zserial integer, 67 74 sertype character(1) DEFAULT 'D'::bpchar, 68 changed boolean DEFAULT true NOT NULL 75 changed boolean DEFAULT true NOT NULL, 76 default_location character varying (4) DEFAULT '' NOT NULL 69 77 ); 70 78 … … 77 85 zserial integer, 78 86 sertype character(1) DEFAULT 'D'::bpchar, 79 changed boolean DEFAULT true NOT NULL 87 changed boolean DEFAULT true NOT NULL, 88 default_location character varying (4) DEFAULT '' NOT NULL 80 89 ); 81 90 … … 123 132 record_edit boolean DEFAULT false NOT NULL, 124 133 record_delete boolean DEFAULT false NOT NULL, 134 location_create boolean DEFAULT false NOT NULL, 135 location_edit boolean DEFAULT false NOT NULL, 136 location_delete boolean DEFAULT false NOT NULL, 137 location_view boolean DEFAULT false NOT NULL, 125 138 user_id integer UNIQUE, 126 139 group_id integer UNIQUE … … 129 142 -- Need *two* basic permissions; one for the initial group, one for the default admin user 130 143 COPY 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; 131 1 f f f f f f f f t t t t t t \N 1132 2 t f f f f f f f f f f f f f 1 \N144 1 f f f f f f f f t t t t t t f f f f \N 1 145 2 t f f f f f f f f f f f f f f f f f 1 \N 133 146 \. 134 147 … … 145 158 port integer DEFAULT 0 NOT NULL, 146 159 ttl integer DEFAULT 7200 NOT NULL, 147 description text 160 description text, 161 default_location character varying (4) DEFAULT '' NOT NULL 148 162 ); 149 163 … … 289 303 -- foreign keys 290 304 -- fixme: permissions FK refs 305 ALTER TABLE ONLY locations 306 ADD CONSTRAINT "locations_group_id_fkey" FOREIGN KEY (group_id) REFERENCES groups(group_id); 307 291 308 ALTER TABLE ONLY domains 292 309 ADD CONSTRAINT "$1" FOREIGN KEY (group_id) REFERENCES groups(group_id);
Note:
See TracChangeset
for help on using the changeset viewer.