2 -- PostgreSQL database dump
5 SET statement_timeout = 0;
6 SET client_encoding = 'SQL_ASCII';
7 SET standard_conforming_strings = off;
8 SET check_function_bodies = false;
9 SET client_min_messages = warning;
10 SET escape_string_warning = off;
13 -- Name: audit; Type: SCHEMA; Schema: -; Owner: dak
19 ALTER SCHEMA audit OWNER TO dak;
21 SET search_path = public, pg_catalog;
24 -- Name: bin_associations_id_max(); Type: FUNCTION; Schema: public; Owner: dak
27 CREATE FUNCTION bin_associations_id_max() RETURNS integer
29 AS $$SELECT max(id) FROM bin_associations$$;
32 ALTER FUNCTION public.bin_associations_id_max() OWNER TO dak;
35 -- Name: binaries_id_max(); Type: FUNCTION; Schema: public; Owner: dak
38 CREATE FUNCTION binaries_id_max() RETURNS integer
40 AS $$SELECT max(id) FROM binaries$$;
43 ALTER FUNCTION public.binaries_id_max() OWNER TO dak;
46 -- Name: dsc_files_id_max(); Type: FUNCTION; Schema: public; Owner: dak
49 CREATE FUNCTION dsc_files_id_max() RETURNS integer
51 AS $$SELECT max(id) FROM dsc_files$$;
54 ALTER FUNCTION public.dsc_files_id_max() OWNER TO dak;
57 -- Name: files_id_max(); Type: FUNCTION; Schema: public; Owner: dak
60 CREATE FUNCTION files_id_max() RETURNS integer
62 AS $$SELECT max(id) FROM files$$;
65 ALTER FUNCTION public.files_id_max() OWNER TO dak;
68 -- Name: override_type_id_max(); Type: FUNCTION; Schema: public; Owner: dak
71 CREATE FUNCTION override_type_id_max() RETURNS integer
73 AS $$SELECT max(id) FROM override_type$$;
76 ALTER FUNCTION public.override_type_id_max() OWNER TO dak;
79 -- Name: priority_id_max(); Type: FUNCTION; Schema: public; Owner: dak
82 CREATE FUNCTION priority_id_max() RETURNS integer
84 AS $$SELECT max(id) FROM priority$$;
87 ALTER FUNCTION public.priority_id_max() OWNER TO dak;
90 -- Name: section_id_max(); Type: FUNCTION; Schema: public; Owner: dak
93 CREATE FUNCTION section_id_max() RETURNS integer
95 AS $$SELECT max(id) FROM section$$;
98 ALTER FUNCTION public.section_id_max() OWNER TO dak;
101 -- Name: source_id_max(); Type: FUNCTION; Schema: public; Owner: dak
104 CREATE FUNCTION source_id_max() RETURNS integer
106 AS $$SELECT max(id) FROM source$$;
109 ALTER FUNCTION public.source_id_max() OWNER TO dak;
112 -- Name: space_concat(text, text); Type: FUNCTION; Schema: public; Owner: dak
115 CREATE FUNCTION space_concat(text, text) RETURNS text
118 WHEN $2 is null or $2 = '' THEN $1
119 WHEN $1 is null or $1 = '' THEN $2
124 ALTER FUNCTION public.space_concat(text, text) OWNER TO dak;
127 -- Name: src_associations_id_max(); Type: FUNCTION; Schema: public; Owner: dak
130 CREATE FUNCTION src_associations_id_max() RETURNS integer
132 AS $$SELECT max(id) FROM src_associations$$;
135 ALTER FUNCTION public.src_associations_id_max() OWNER TO dak;
138 -- Name: tfunc_set_modified(); Type: FUNCTION; Schema: public; Owner: dak
141 CREATE FUNCTION tfunc_set_modified() RETURNS trigger
144 BEGIN NEW.modified = now(); return NEW; END;
148 ALTER FUNCTION public.tfunc_set_modified() OWNER TO dak;
151 -- Name: trigger_binsrc_assoc_update(); Type: FUNCTION; Schema: public; Owner: dak
154 CREATE FUNCTION trigger_binsrc_assoc_update() RETURNS trigger
155 LANGUAGE plpgsql SECURITY DEFINER
156 SET search_path TO public, pg_temp
161 v_package audit.package_changes.package%TYPE;
162 v_version audit.package_changes.version%TYPE;
163 v_architecture audit.package_changes.architecture%TYPE;
164 v_suite audit.package_changes.suite%TYPE;
165 v_event audit.package_changes.event%TYPE;
166 v_priority audit.package_changes.priority%TYPE;
167 v_component audit.package_changes.component%TYPE;
168 v_section audit.package_changes.section%TYPE;
171 WHEN 'INSERT' THEN v_event := 'I'; v_data := NEW;
172 WHEN 'DELETE' THEN v_event := 'D'; v_data := OLD;
173 ELSE RAISE EXCEPTION 'trigger called for invalid operation (%)', TG_OP;
176 SELECT suite_name INTO STRICT v_suite FROM suite WHERE id = v_data.suite;
179 WHEN 'bin_associations' THEN
180 SELECT package, version, arch_string
181 INTO STRICT v_package, v_version, v_architecture
182 FROM binaries LEFT JOIN architecture ON (architecture.id = binaries.architecture)
183 WHERE binaries.id = v_data.bin;
185 SELECT component.name, priority.priority, section.section
186 INTO v_component, v_priority, v_section
188 JOIN override_type ON (override.type = override_type.id)
189 JOIN priority ON (priority.id = override.priority)
190 JOIN section ON (section.id = override.section)
191 JOIN component ON (override.component = component.id)
192 JOIN suite ON (suite.id = override.suite)
193 WHERE override_type.type != 'dsc'
194 AND override.package = v_package AND suite.id = v_data.suite;
196 WHEN 'src_associations' THEN
197 SELECT source, version
198 INTO STRICT v_package, v_version
199 FROM source WHERE source.id = v_data.source;
200 v_architecture := 'source';
202 SELECT component.name, priority.priority, section.section
203 INTO v_component, v_priority, v_section
205 JOIN override_type ON (override.type = override_type.id)
206 JOIN priority ON (priority.id = override.priority)
207 JOIN section ON (section.id = override.section)
208 JOIN component ON (override.component = component.id)
209 JOIN suite ON (suite.id = override.suite)
210 WHERE override_type.type = 'dsc'
211 AND override.package = v_package AND suite.id = v_data.suite;
213 ELSE RAISE EXCEPTION 'trigger called for invalid table (%)', TG_TABLE_NAME;
216 INSERT INTO audit.package_changes
217 (package, version, architecture, suite, event, priority, component, section)
218 VALUES (v_package, v_version, v_architecture, v_suite, v_event, v_priority, v_component, v_section);
225 ALTER FUNCTION public.trigger_binsrc_assoc_update() OWNER TO dak;
228 -- Name: trigger_override_update(); Type: FUNCTION; Schema: public; Owner: dak
231 CREATE FUNCTION trigger_override_update() RETURNS trigger
232 LANGUAGE plpgsql SECURITY DEFINER
233 SET search_path TO public, pg_temp
236 v_src_override_id override_type.id%TYPE;
238 v_priority audit.package_changes.priority%TYPE := NULL;
239 v_component audit.package_changes.component%TYPE := NULL;
240 v_section audit.package_changes.section%TYPE := NULL;
243 IF TG_TABLE_NAME != 'override' THEN
244 RAISE EXCEPTION 'trigger called for invalid table (%)', TG_TABLE_NAME;
246 IF TG_OP != 'UPDATE' THEN
247 RAISE EXCEPTION 'trigger called for invalid event (%)', TG_OP;
250 IF OLD.package != NEW.package OR OLD.type != NEW.type OR OLD.suite != NEW.suite THEN
254 IF OLD.priority != NEW.priority THEN
255 SELECT priority INTO STRICT v_priority FROM priority WHERE id = NEW.priority;
258 IF OLD.component != NEW.component THEN
259 SELECT name INTO STRICT v_component FROM component WHERE id = NEW.component;
262 IF OLD.section != NEW.section THEN
263 SELECT section INTO STRICT v_section FROM section WHERE id = NEW.section;
266 -- Find out if we're doing src or binary overrides
267 SELECT id INTO STRICT v_src_override_id FROM override_type WHERE type = 'dsc';
268 IF OLD.type = v_src_override_id THEN
269 -- Doing a src_association link
270 INSERT INTO audit.package_changes
271 (package, version, architecture, suite, event, priority, component, section)
272 SELECT NEW.package, source.version, 'source', suite.suite_name, 'U', v_priority, v_component, v_section
274 JOIN src_associations ON (source.id = src_associations.source)
275 JOIN suite ON (suite.id = src_associations.suite)
276 WHERE source.source = NEW.package AND src_associations.suite = NEW.suite;
278 -- Doing a bin_association link
279 INSERT INTO audit.package_changes
280 (package, version, architecture, suite, event, priority, component, section)
281 SELECT NEW.package, binaries.version, architecture.arch_string, suite.suite_name, 'U', v_priority, v_component, v_section
283 JOIN bin_associations ON (binaries.id = bin_associations.bin)
284 JOIN architecture ON (architecture.id = binaries.architecture)
285 JOIN suite ON (suite.id = bin_associations.suite)
286 WHERE binaries.package = NEW.package AND bin_associations.suite = NEW.suite;
294 ALTER FUNCTION public.trigger_override_update() OWNER TO dak;
296 SET search_path = audit, pg_catalog;
298 SET default_tablespace = '';
300 SET default_with_oids = false;
303 -- Name: package_changes; Type: TABLE; Schema: audit; Owner: dak; Tablespace:
306 CREATE TABLE package_changes (
307 changedate timestamp without time zone DEFAULT now() NOT NULL,
308 package text NOT NULL,
309 version public.debversion NOT NULL,
310 architecture text NOT NULL,
319 ALTER TABLE audit.package_changes OWNER TO dak;
321 SET search_path = public, pg_catalog;
324 -- Name: bin_associations_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
327 CREATE SEQUENCE bin_associations_id_seq
335 ALTER TABLE public.bin_associations_id_seq OWNER TO dak;
338 -- Name: bin_associations; Type: TABLE; Schema: public; Owner: dak; Tablespace:
341 CREATE TABLE bin_associations (
342 id integer DEFAULT nextval('bin_associations_id_seq'::regclass) NOT NULL,
343 suite integer NOT NULL,
344 bin integer NOT NULL,
345 created timestamp with time zone DEFAULT now() NOT NULL,
346 modified timestamp with time zone DEFAULT now() NOT NULL
350 ALTER TABLE public.bin_associations OWNER TO dak;
353 -- Name: binaries_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
356 CREATE SEQUENCE binaries_id_seq
364 ALTER TABLE public.binaries_id_seq OWNER TO dak;
367 -- Name: binaries; Type: TABLE; Schema: public; Owner: dak; Tablespace:
370 CREATE TABLE binaries (
371 id integer DEFAULT nextval('binaries_id_seq'::regclass) NOT NULL,
372 package text NOT NULL,
373 version debversion NOT NULL,
374 maintainer integer NOT NULL,
375 source integer NOT NULL,
376 architecture integer NOT NULL,
377 file integer NOT NULL,
380 install_date timestamp with time zone DEFAULT now(),
381 created timestamp with time zone DEFAULT now() NOT NULL,
382 modified timestamp with time zone DEFAULT now() NOT NULL,
387 ALTER TABLE public.binaries OWNER TO dak;
390 -- Name: bin_associations_binaries; Type: VIEW; Schema: public; Owner: dak
393 CREATE VIEW bin_associations_binaries AS
394 SELECT bin_associations.id, bin_associations.bin, binaries.package, binaries.version, bin_associations.suite, binaries.architecture, binaries.source FROM (bin_associations JOIN binaries ON ((bin_associations.bin = binaries.id)));
397 ALTER TABLE public.bin_associations_binaries OWNER TO dak;
400 -- Name: source_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
403 CREATE SEQUENCE source_id_seq
411 ALTER TABLE public.source_id_seq OWNER TO dak;
414 -- Name: source; Type: TABLE; Schema: public; Owner: dak; Tablespace:
417 CREATE TABLE source (
418 id integer DEFAULT nextval('source_id_seq'::regclass) NOT NULL,
419 source text NOT NULL,
420 version debversion NOT NULL,
421 maintainer integer NOT NULL,
422 file integer NOT NULL,
424 install_date timestamp with time zone NOT NULL,
425 changedby integer NOT NULL,
426 dm_upload_allowed boolean DEFAULT false NOT NULL,
427 created timestamp with time zone DEFAULT now() NOT NULL,
428 modified timestamp with time zone DEFAULT now() NOT NULL,
433 ALTER TABLE public.source OWNER TO dak;
436 -- Name: src_associations_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
439 CREATE SEQUENCE src_associations_id_seq
447 ALTER TABLE public.src_associations_id_seq OWNER TO dak;
450 -- Name: src_associations; Type: TABLE; Schema: public; Owner: dak; Tablespace:
453 CREATE TABLE src_associations (
454 id integer DEFAULT nextval('src_associations_id_seq'::regclass) NOT NULL,
455 suite integer NOT NULL,
456 source integer NOT NULL,
457 created timestamp with time zone DEFAULT now() NOT NULL,
458 modified timestamp with time zone DEFAULT now() NOT NULL
462 ALTER TABLE public.src_associations OWNER TO dak;
465 -- Name: src_associations_bin; Type: VIEW; Schema: public; Owner: dak
468 CREATE VIEW src_associations_bin AS
469 SELECT src_associations.id, src_associations.source, src_associations.suite, binaries.id AS bin, binaries.architecture FROM ((src_associations JOIN source ON ((src_associations.source = source.id))) JOIN binaries ON ((source.id = binaries.source)));
472 ALTER TABLE public.src_associations_bin OWNER TO dak;
475 -- Name: almost_obsolete_all_associations; Type: VIEW; Schema: public; Owner: dak
478 CREATE VIEW almost_obsolete_all_associations AS
479 SELECT bin_associations_binaries.id, bin_associations_binaries.bin, bin_associations_binaries.package, bin_associations_binaries.version, bin_associations_binaries.suite FROM (bin_associations_binaries LEFT JOIN src_associations_bin USING (bin, suite, architecture)) WHERE ((src_associations_bin.source IS NULL) AND (bin_associations_binaries.architecture = 2));
482 ALTER TABLE public.almost_obsolete_all_associations OWNER TO dak;
485 -- Name: any_associations_source; Type: VIEW; Schema: public; Owner: dak
488 CREATE VIEW any_associations_source AS
489 SELECT bin_associations.id, bin_associations.suite, binaries.id AS bin, binaries.package, binaries.version AS binver, binaries.architecture, source.id AS src, source.source, source.version AS srcver FROM ((bin_associations JOIN binaries ON (((bin_associations.bin = binaries.id) AND (binaries.architecture <> 2)))) JOIN source ON ((binaries.source = source.id)));
492 ALTER TABLE public.any_associations_source OWNER TO dak;
495 -- Name: src_associations_src; Type: VIEW; Schema: public; Owner: dak
498 CREATE VIEW src_associations_src AS
499 SELECT src_associations.id, src_associations.suite, source.id AS src, source.source, source.version FROM (src_associations JOIN source ON ((src_associations.source = source.id)));
502 ALTER TABLE public.src_associations_src OWNER TO dak;
505 -- Name: almost_obsolete_src_associations; Type: VIEW; Schema: public; Owner: dak
508 CREATE VIEW almost_obsolete_src_associations AS
509 SELECT src_associations_src.id, src_associations_src.src, src_associations_src.source, src_associations_src.version, src_associations_src.suite FROM (src_associations_src LEFT JOIN any_associations_source USING (src, suite)) WHERE (any_associations_source.bin IS NULL);
512 ALTER TABLE public.almost_obsolete_src_associations OWNER TO dak;
515 -- Name: architecture_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
518 CREATE SEQUENCE architecture_id_seq
526 ALTER TABLE public.architecture_id_seq OWNER TO dak;
529 -- Name: architecture; Type: TABLE; Schema: public; Owner: dak; Tablespace:
532 CREATE TABLE architecture (
533 id integer DEFAULT nextval('architecture_id_seq'::regclass) NOT NULL,
534 arch_string text NOT NULL,
536 created timestamp with time zone DEFAULT now() NOT NULL,
537 modified timestamp with time zone DEFAULT now() NOT NULL
541 ALTER TABLE public.architecture OWNER TO dak;
544 -- Name: archive_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
547 CREATE SEQUENCE archive_id_seq
555 ALTER TABLE public.archive_id_seq OWNER TO dak;
558 -- Name: archive; Type: TABLE; Schema: public; Owner: dak; Tablespace:
561 CREATE TABLE archive (
562 id integer DEFAULT nextval('archive_id_seq'::regclass) NOT NULL,
566 created timestamp with time zone DEFAULT now() NOT NULL,
567 modified timestamp with time zone DEFAULT now() NOT NULL,
572 ALTER TABLE public.archive OWNER TO dak;
575 -- Name: bin_contents; Type: TABLE; Schema: public; Owner: dak; Tablespace:
578 CREATE TABLE bin_contents (
580 binary_id integer NOT NULL,
581 created timestamp with time zone DEFAULT now() NOT NULL,
582 modified timestamp with time zone DEFAULT now() NOT NULL
586 ALTER TABLE public.bin_contents OWNER TO dak;
589 -- Name: binaries_metadata; Type: TABLE; Schema: public; Owner: dak; Tablespace:
592 CREATE TABLE binaries_metadata (
593 bin_id integer NOT NULL,
594 key_id integer NOT NULL,
599 ALTER TABLE public.binaries_metadata OWNER TO dak;
602 -- Name: suite_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
605 CREATE SEQUENCE suite_id_seq
613 ALTER TABLE public.suite_id_seq OWNER TO dak;
616 -- Name: suite; Type: TABLE; Schema: public; Owner: dak; Tablespace:
620 id integer DEFAULT nextval('suite_id_seq'::regclass) NOT NULL,
621 suite_name text NOT NULL,
626 untouchable boolean DEFAULT false NOT NULL,
628 overridecodename text,
629 validtime integer DEFAULT 604800 NOT NULL,
630 priority integer DEFAULT 0 NOT NULL,
631 notautomatic boolean DEFAULT false NOT NULL,
634 policy_queue_id integer,
635 created timestamp with time zone DEFAULT now() NOT NULL,
636 modified timestamp with time zone DEFAULT now() NOT NULL,
638 butautomaticupgrades boolean DEFAULT false NOT NULL,
641 CONSTRAINT bau_needs_na_set CHECK (((NOT butautomaticupgrades) OR notautomatic))
645 ALTER TABLE public.suite OWNER TO dak;
648 -- Name: binaries_suite_arch; Type: VIEW; Schema: public; Owner: dak
651 CREATE VIEW binaries_suite_arch AS
652 SELECT bin_associations.id, binaries.id AS bin, binaries.package, binaries.version, binaries.source, bin_associations.suite, suite.suite_name, binaries.architecture, architecture.arch_string FROM (((binaries JOIN bin_associations ON ((binaries.id = bin_associations.bin))) JOIN suite ON ((suite.id = bin_associations.suite))) JOIN architecture ON ((binaries.architecture = architecture.id)));
655 ALTER TABLE public.binaries_suite_arch OWNER TO dak;
658 -- Name: binary_acl; Type: TABLE; Schema: public; Owner: dak; Tablespace:
661 CREATE TABLE binary_acl (
663 access_level text NOT NULL,
664 created timestamp with time zone DEFAULT now() NOT NULL,
665 modified timestamp with time zone DEFAULT now() NOT NULL
669 ALTER TABLE public.binary_acl OWNER TO dak;
672 -- Name: binary_acl_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
675 CREATE SEQUENCE binary_acl_id_seq
683 ALTER TABLE public.binary_acl_id_seq OWNER TO dak;
686 -- Name: binary_acl_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
689 ALTER SEQUENCE binary_acl_id_seq OWNED BY binary_acl.id;
693 -- Name: binary_acl_map; Type: TABLE; Schema: public; Owner: dak; Tablespace:
696 CREATE TABLE binary_acl_map (
698 fingerprint_id integer NOT NULL,
699 architecture_id integer NOT NULL,
700 created timestamp with time zone DEFAULT now() NOT NULL,
701 modified timestamp with time zone DEFAULT now() NOT NULL
705 ALTER TABLE public.binary_acl_map OWNER TO dak;
708 -- Name: binary_acl_map_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
711 CREATE SEQUENCE binary_acl_map_id_seq
719 ALTER TABLE public.binary_acl_map_id_seq OWNER TO dak;
722 -- Name: binary_acl_map_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
725 ALTER SEQUENCE binary_acl_map_id_seq OWNED BY binary_acl_map.id;
729 -- Name: files_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
732 CREATE SEQUENCE files_id_seq
740 ALTER TABLE public.files_id_seq OWNER TO dak;
743 -- Name: files; Type: TABLE; Schema: public; Owner: dak; Tablespace:
747 id integer DEFAULT nextval('files_id_seq'::regclass) NOT NULL,
748 filename text NOT NULL,
749 size bigint NOT NULL,
750 md5sum text NOT NULL,
751 location integer NOT NULL,
752 last_used timestamp with time zone,
755 created timestamp with time zone DEFAULT now() NOT NULL,
756 modified timestamp with time zone DEFAULT now() NOT NULL
760 ALTER TABLE public.files OWNER TO dak;
763 -- Name: location_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
766 CREATE SEQUENCE location_id_seq
774 ALTER TABLE public.location_id_seq OWNER TO dak;
777 -- Name: location; Type: TABLE; Schema: public; Owner: dak; Tablespace:
780 CREATE TABLE location (
781 id integer DEFAULT nextval('location_id_seq'::regclass) NOT NULL,
786 created timestamp with time zone DEFAULT now() NOT NULL,
787 modified timestamp with time zone DEFAULT now() NOT NULL
791 ALTER TABLE public.location OWNER TO dak;
794 -- Name: binfiles_suite_component_arch; Type: VIEW; Schema: public; Owner: dak
797 CREATE VIEW binfiles_suite_component_arch AS
798 SELECT files.filename, binaries.type, location.path, location.component, bin_associations.suite, binaries.architecture FROM (((binaries JOIN bin_associations ON ((binaries.id = bin_associations.bin))) JOIN files ON ((binaries.file = files.id))) JOIN location ON ((files.location = location.id)));
801 ALTER TABLE public.binfiles_suite_component_arch OWNER TO dak;
804 -- Name: build_queue; Type: TABLE; Schema: public; Owner: dak; Tablespace:
807 CREATE TABLE build_queue (
809 queue_name text NOT NULL,
811 copy_files boolean DEFAULT false NOT NULL,
812 generate_metadata boolean DEFAULT false NOT NULL,
815 releasedescription text,
817 stay_of_execution integer DEFAULT 86400 NOT NULL,
818 created timestamp with time zone DEFAULT now() NOT NULL,
819 modified timestamp with time zone DEFAULT now() NOT NULL,
820 notautomatic boolean DEFAULT false NOT NULL,
821 CONSTRAINT build_queue_meta_sanity_check CHECK (((generate_metadata IS FALSE) OR (((origin IS NOT NULL) AND (label IS NOT NULL)) AND (releasedescription IS NOT NULL)))),
822 CONSTRAINT build_queue_stay_of_execution_check CHECK ((stay_of_execution >= 0))
826 ALTER TABLE public.build_queue OWNER TO dak;
829 -- Name: build_queue_files; Type: TABLE; Schema: public; Owner: dak; Tablespace:
832 CREATE TABLE build_queue_files (
834 build_queue_id integer NOT NULL,
835 insertdate timestamp without time zone DEFAULT now() NOT NULL,
836 lastused timestamp without time zone,
837 filename text NOT NULL,
839 created timestamp with time zone DEFAULT now() NOT NULL,
840 modified timestamp with time zone DEFAULT now() NOT NULL
844 ALTER TABLE public.build_queue_files OWNER TO dak;
847 -- Name: build_queue_files_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
850 CREATE SEQUENCE build_queue_files_id_seq
858 ALTER TABLE public.build_queue_files_id_seq OWNER TO dak;
861 -- Name: build_queue_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
864 ALTER SEQUENCE build_queue_files_id_seq OWNED BY build_queue_files.id;
868 -- Name: build_queue_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
871 CREATE SEQUENCE build_queue_id_seq
879 ALTER TABLE public.build_queue_id_seq OWNER TO dak;
882 -- Name: build_queue_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
885 ALTER SEQUENCE build_queue_id_seq OWNED BY build_queue.id;
889 -- Name: build_queue_policy_files; Type: TABLE; Schema: public; Owner: dak; Tablespace:
892 CREATE TABLE build_queue_policy_files (
893 build_queue_id integer NOT NULL,
894 file_id integer NOT NULL,
895 filename text NOT NULL,
896 created timestamp with time zone DEFAULT now() NOT NULL,
897 lastused timestamp without time zone
901 ALTER TABLE public.build_queue_policy_files OWNER TO dak;
904 -- Name: changelogs_text; Type: TABLE; Schema: public; Owner: dak; Tablespace:
907 CREATE TABLE changelogs_text (
913 ALTER TABLE public.changelogs_text OWNER TO dak;
916 -- Name: changes; Type: TABLE; Schema: public; Owner: dak; Tablespace:
919 CREATE TABLE changes (
921 changesname text NOT NULL,
922 seen timestamp with time zone DEFAULT now() NOT NULL,
923 source text NOT NULL,
924 binaries text NOT NULL,
925 architecture text NOT NULL,
926 version text NOT NULL,
927 distribution text NOT NULL,
928 urgency text NOT NULL,
929 maintainer text NOT NULL,
930 fingerprint text NOT NULL,
931 changedby text NOT NULL,
934 approved_for integer,
935 created timestamp with time zone DEFAULT now() NOT NULL,
936 modified timestamp with time zone DEFAULT now() NOT NULL,
941 ALTER TABLE public.changes OWNER TO dak;
944 -- Name: changelogs; Type: VIEW; Schema: public; Owner: dak
947 CREATE VIEW changelogs AS
948 SELECT cl.id, c.source, (c.version)::debversion AS version, c.architecture, cl.changelog, c.distribution FROM (changes c JOIN changelogs_text cl ON ((cl.id = c.changelog_id)));
951 ALTER TABLE public.changelogs OWNER TO dak;
954 -- Name: changelogs_text_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
957 CREATE SEQUENCE changelogs_text_id_seq
965 ALTER TABLE public.changelogs_text_id_seq OWNER TO dak;
968 -- Name: changelogs_text_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
971 ALTER SEQUENCE changelogs_text_id_seq OWNED BY changelogs_text.id;
975 -- Name: changes_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
978 CREATE SEQUENCE changes_id_seq
986 ALTER TABLE public.changes_id_seq OWNER TO dak;
989 -- Name: changes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
992 ALTER SEQUENCE changes_id_seq OWNED BY changes.id;
996 -- Name: changes_pending_binaries; Type: TABLE; Schema: public; Owner: dak; Tablespace:
999 CREATE TABLE changes_pending_binaries (
1000 id integer NOT NULL,
1001 change_id integer NOT NULL,
1002 package text NOT NULL,
1003 version debversion NOT NULL,
1004 architecture_id integer NOT NULL,
1006 pending_source_id integer,
1007 pending_file_id integer,
1008 created timestamp with time zone DEFAULT now() NOT NULL,
1009 modified timestamp with time zone DEFAULT now() NOT NULL,
1010 CONSTRAINT changes_pending_binaries_check CHECK (((source_id IS NOT NULL) OR (pending_source_id IS NOT NULL)))
1014 ALTER TABLE public.changes_pending_binaries OWNER TO dak;
1017 -- Name: changes_pending_binaries_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1020 CREATE SEQUENCE changes_pending_binaries_id_seq
1028 ALTER TABLE public.changes_pending_binaries_id_seq OWNER TO dak;
1031 -- Name: changes_pending_binaries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1034 ALTER SEQUENCE changes_pending_binaries_id_seq OWNED BY changes_pending_binaries.id;
1038 -- Name: changes_pending_files; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1041 CREATE TABLE changes_pending_files (
1042 id integer NOT NULL,
1043 filename text NOT NULL,
1044 size bigint NOT NULL,
1045 md5sum text NOT NULL,
1046 sha1sum text NOT NULL,
1047 sha256sum text NOT NULL,
1048 created timestamp with time zone DEFAULT now() NOT NULL,
1049 modified timestamp with time zone DEFAULT now() NOT NULL,
1050 processed boolean DEFAULT false
1054 ALTER TABLE public.changes_pending_files OWNER TO dak;
1057 -- Name: changes_pending_files_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1060 CREATE SEQUENCE changes_pending_files_id_seq
1068 ALTER TABLE public.changes_pending_files_id_seq OWNER TO dak;
1071 -- Name: changes_pending_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1074 ALTER SEQUENCE changes_pending_files_id_seq OWNED BY changes_pending_files.id;
1078 -- Name: changes_pending_files_map; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1081 CREATE TABLE changes_pending_files_map (
1082 file_id integer NOT NULL,
1083 change_id integer NOT NULL,
1084 created timestamp with time zone DEFAULT now() NOT NULL,
1085 modified timestamp with time zone DEFAULT now() NOT NULL
1089 ALTER TABLE public.changes_pending_files_map OWNER TO dak;
1092 -- Name: changes_pending_source; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1095 CREATE TABLE changes_pending_source (
1096 id integer NOT NULL,
1097 change_id integer NOT NULL,
1098 source text NOT NULL,
1099 version debversion NOT NULL,
1100 maintainer_id integer NOT NULL,
1101 changedby_id integer NOT NULL,
1102 sig_fpr integer NOT NULL,
1103 dm_upload_allowed boolean DEFAULT false NOT NULL,
1104 created timestamp with time zone DEFAULT now() NOT NULL,
1105 modified timestamp with time zone DEFAULT now() NOT NULL
1109 ALTER TABLE public.changes_pending_source OWNER TO dak;
1112 -- Name: changes_pending_source_files; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1115 CREATE TABLE changes_pending_source_files (
1116 pending_source_id integer NOT NULL,
1117 pending_file_id integer NOT NULL,
1118 created timestamp with time zone DEFAULT now() NOT NULL,
1119 modified timestamp with time zone DEFAULT now() NOT NULL
1123 ALTER TABLE public.changes_pending_source_files OWNER TO dak;
1126 -- Name: changes_pending_source_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1129 CREATE SEQUENCE changes_pending_source_id_seq
1137 ALTER TABLE public.changes_pending_source_id_seq OWNER TO dak;
1140 -- Name: changes_pending_source_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1143 ALTER SEQUENCE changes_pending_source_id_seq OWNED BY changes_pending_source.id;
1147 -- Name: changes_pool_files; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1150 CREATE TABLE changes_pool_files (
1151 changeid integer NOT NULL,
1152 fileid integer NOT NULL,
1153 created timestamp with time zone DEFAULT now() NOT NULL,
1154 modified timestamp with time zone DEFAULT now() NOT NULL
1158 ALTER TABLE public.changes_pool_files OWNER TO dak;
1161 -- Name: component_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1164 CREATE SEQUENCE component_id_seq
1172 ALTER TABLE public.component_id_seq OWNER TO dak;
1175 -- Name: component; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1178 CREATE TABLE component (
1179 id integer DEFAULT nextval('component_id_seq'::regclass) NOT NULL,
1183 created timestamp with time zone DEFAULT now() NOT NULL,
1184 modified timestamp with time zone DEFAULT now() NOT NULL
1188 ALTER TABLE public.component OWNER TO dak;
1191 -- Name: config; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1194 CREATE TABLE config (
1195 id integer NOT NULL,
1198 created timestamp with time zone DEFAULT now() NOT NULL,
1199 modified timestamp with time zone DEFAULT now() NOT NULL
1203 ALTER TABLE public.config OWNER TO dak;
1206 -- Name: config_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1209 CREATE SEQUENCE config_id_seq
1217 ALTER TABLE public.config_id_seq OWNER TO dak;
1220 -- Name: config_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1223 ALTER SEQUENCE config_id_seq OWNED BY config.id;
1227 -- Name: dsc_files_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1230 CREATE SEQUENCE dsc_files_id_seq
1238 ALTER TABLE public.dsc_files_id_seq OWNER TO dak;
1241 -- Name: dsc_files; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1244 CREATE TABLE dsc_files (
1245 id integer DEFAULT nextval('dsc_files_id_seq'::regclass) NOT NULL,
1246 source integer NOT NULL,
1247 file integer NOT NULL,
1248 created timestamp with time zone DEFAULT now() NOT NULL,
1249 modified timestamp with time zone DEFAULT now() NOT NULL
1253 ALTER TABLE public.dsc_files OWNER TO dak;
1256 -- Name: external_overrides; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1259 CREATE TABLE external_overrides (
1260 package text NOT NULL,
1262 value text NOT NULL,
1263 suite integer NOT NULL,
1264 component integer NOT NULL
1268 ALTER TABLE public.external_overrides OWNER TO dak;
1271 -- Name: extra_src_references; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1274 CREATE TABLE extra_src_references (
1275 bin_id integer NOT NULL,
1276 src_id integer NOT NULL
1280 ALTER TABLE public.extra_src_references OWNER TO dak;
1283 -- Name: file_arch_suite; Type: VIEW; Schema: public; Owner: dak
1286 CREATE VIEW file_arch_suite AS
1287 SELECT f.id AS file, f.size, b.architecture, s.id AS suite FROM files f, binaries b, bin_associations ba, suite s WHERE (((f.id = b.file) AND (b.id = ba.bin)) AND (ba.suite = s.id));
1290 ALTER TABLE public.file_arch_suite OWNER TO dak;
1293 -- Name: fingerprint_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1296 CREATE SEQUENCE fingerprint_id_seq
1304 ALTER TABLE public.fingerprint_id_seq OWNER TO dak;
1307 -- Name: fingerprint; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1310 CREATE TABLE fingerprint (
1311 id integer DEFAULT nextval('fingerprint_id_seq'::regclass) NOT NULL,
1312 fingerprint text NOT NULL,
1315 source_acl_id integer,
1316 binary_acl_id integer,
1317 binary_reject boolean DEFAULT true NOT NULL,
1318 created timestamp with time zone DEFAULT now() NOT NULL,
1319 modified timestamp with time zone DEFAULT now() NOT NULL
1323 ALTER TABLE public.fingerprint OWNER TO dak;
1326 -- Name: keyring_acl_map; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1329 CREATE TABLE keyring_acl_map (
1330 id integer NOT NULL,
1331 keyring_id integer NOT NULL,
1332 architecture_id integer NOT NULL,
1333 created timestamp with time zone DEFAULT now() NOT NULL,
1334 modified timestamp with time zone DEFAULT now() NOT NULL
1338 ALTER TABLE public.keyring_acl_map OWNER TO dak;
1341 -- Name: keyring_acl_map_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1344 CREATE SEQUENCE keyring_acl_map_id_seq
1352 ALTER TABLE public.keyring_acl_map_id_seq OWNER TO dak;
1355 -- Name: keyring_acl_map_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1358 ALTER SEQUENCE keyring_acl_map_id_seq OWNED BY keyring_acl_map.id;
1362 -- Name: keyrings; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1365 CREATE TABLE keyrings (
1366 id integer NOT NULL,
1368 default_source_acl_id integer,
1369 default_binary_acl_id integer,
1370 default_binary_reject boolean DEFAULT true NOT NULL,
1371 priority integer DEFAULT 100 NOT NULL,
1372 created timestamp with time zone DEFAULT now() NOT NULL,
1373 modified timestamp with time zone DEFAULT now() NOT NULL,
1374 active boolean DEFAULT true
1378 ALTER TABLE public.keyrings OWNER TO dak;
1381 -- Name: keyrings_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1384 CREATE SEQUENCE keyrings_id_seq
1392 ALTER TABLE public.keyrings_id_seq OWNER TO dak;
1395 -- Name: keyrings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1398 ALTER SEQUENCE keyrings_id_seq OWNED BY keyrings.id;
1402 -- Name: maintainer_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1405 CREATE SEQUENCE maintainer_id_seq
1413 ALTER TABLE public.maintainer_id_seq OWNER TO dak;
1416 -- Name: maintainer; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1419 CREATE TABLE maintainer (
1420 id integer DEFAULT nextval('maintainer_id_seq'::regclass) NOT NULL,
1422 created timestamp with time zone DEFAULT now() NOT NULL,
1423 modified timestamp with time zone DEFAULT now() NOT NULL
1427 ALTER TABLE public.maintainer OWNER TO dak;
1430 -- Name: metadata_keys; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1433 CREATE TABLE metadata_keys (
1434 key_id integer NOT NULL,
1436 ordering integer DEFAULT 0 NOT NULL
1440 ALTER TABLE public.metadata_keys OWNER TO dak;
1443 -- Name: metadata_keys_key_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1446 CREATE SEQUENCE metadata_keys_key_id_seq
1454 ALTER TABLE public.metadata_keys_key_id_seq OWNER TO dak;
1457 -- Name: metadata_keys_key_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1460 ALTER SEQUENCE metadata_keys_key_id_seq OWNED BY metadata_keys.key_id;
1464 -- Name: new_comments; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1467 CREATE TABLE new_comments (
1468 id integer NOT NULL,
1469 package text NOT NULL,
1470 version text NOT NULL,
1471 comment text NOT NULL,
1472 author text NOT NULL,
1473 notedate timestamp with time zone DEFAULT now() NOT NULL,
1474 trainee boolean DEFAULT false NOT NULL,
1475 created timestamp with time zone DEFAULT now() NOT NULL,
1476 modified timestamp with time zone DEFAULT now() NOT NULL
1480 ALTER TABLE public.new_comments OWNER TO dak;
1483 -- Name: new_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1486 CREATE SEQUENCE new_comments_id_seq
1494 ALTER TABLE public.new_comments_id_seq OWNER TO dak;
1497 -- Name: new_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1500 ALTER SEQUENCE new_comments_id_seq OWNED BY new_comments.id;
1504 -- Name: newest_all_associations; Type: VIEW; Schema: public; Owner: dak
1507 CREATE VIEW newest_all_associations AS
1508 SELECT binaries_suite_arch.package, max(binaries_suite_arch.version) AS version, binaries_suite_arch.suite, binaries_suite_arch.architecture FROM binaries_suite_arch WHERE (binaries_suite_arch.architecture = 2) GROUP BY binaries_suite_arch.package, binaries_suite_arch.suite, binaries_suite_arch.architecture;
1511 ALTER TABLE public.newest_all_associations OWNER TO dak;
1514 -- Name: newest_any_associations; Type: VIEW; Schema: public; Owner: dak
1517 CREATE VIEW newest_any_associations AS
1518 SELECT binaries_suite_arch.package, max(binaries_suite_arch.version) AS version, binaries_suite_arch.suite, binaries_suite_arch.architecture FROM binaries_suite_arch WHERE (binaries_suite_arch.architecture > 2) GROUP BY binaries_suite_arch.package, binaries_suite_arch.suite, binaries_suite_arch.architecture;
1521 ALTER TABLE public.newest_any_associations OWNER TO dak;
1524 -- Name: source_suite; Type: VIEW; Schema: public; Owner: dak
1527 CREATE VIEW source_suite AS
1528 SELECT src_associations.id, source.id AS src, source.source, source.version, src_associations.suite, suite.suite_name, source.install_date FROM ((source JOIN src_associations ON ((source.id = src_associations.source))) JOIN suite ON ((suite.id = src_associations.suite)));
1531 ALTER TABLE public.source_suite OWNER TO dak;
1534 -- Name: newest_source; Type: VIEW; Schema: public; Owner: dak
1537 CREATE VIEW newest_source AS
1538 SELECT source_suite.source, max(source_suite.version) AS version, source_suite.suite FROM source_suite GROUP BY source_suite.source, source_suite.suite;
1541 ALTER TABLE public.newest_source OWNER TO dak;
1544 -- Name: newest_src_association; Type: VIEW; Schema: public; Owner: dak
1547 CREATE VIEW newest_src_association AS
1548 SELECT source_suite.id, source_suite.src, source_suite.source, source_suite.version, source_suite.suite FROM (source_suite JOIN newest_source USING (source, version, suite));
1551 ALTER TABLE public.newest_src_association OWNER TO dak;
1554 -- Name: obsolete_all_associations; Type: VIEW; Schema: public; Owner: dak
1557 CREATE VIEW obsolete_all_associations AS
1558 SELECT almost.id, almost.bin, almost.package, almost.version, almost.suite FROM (almost_obsolete_all_associations almost JOIN newest_all_associations newest ON ((((almost.package = newest.package) AND (almost.version < newest.version)) AND (almost.suite = newest.suite))));
1561 ALTER TABLE public.obsolete_all_associations OWNER TO dak;
1564 -- Name: obsolete_any_associations; Type: VIEW; Schema: public; Owner: dak
1567 CREATE VIEW obsolete_any_associations AS
1568 SELECT binaries_suite_arch.id, binaries_suite_arch.architecture, binaries_suite_arch.version, binaries_suite_arch.package, binaries_suite_arch.suite FROM (binaries_suite_arch JOIN newest_any_associations ON (((((binaries_suite_arch.architecture = newest_any_associations.architecture) AND (binaries_suite_arch.package = newest_any_associations.package)) AND (binaries_suite_arch.suite = newest_any_associations.suite)) AND (binaries_suite_arch.version <> newest_any_associations.version))));
1571 ALTER TABLE public.obsolete_any_associations OWNER TO dak;
1574 -- Name: obsolete_any_by_all_associations; Type: VIEW; Schema: public; Owner: dak
1577 CREATE VIEW obsolete_any_by_all_associations AS
1578 SELECT binaries_suite_arch.id, binaries_suite_arch.package, binaries_suite_arch.version, binaries_suite_arch.suite, binaries_suite_arch.architecture FROM (binaries_suite_arch JOIN newest_all_associations ON (((((binaries_suite_arch.package = newest_all_associations.package) AND (binaries_suite_arch.version < newest_all_associations.version)) AND (binaries_suite_arch.suite = newest_all_associations.suite)) AND (binaries_suite_arch.architecture > 2))));
1581 ALTER TABLE public.obsolete_any_by_all_associations OWNER TO dak;
1584 -- Name: obsolete_src_associations; Type: VIEW; Schema: public; Owner: dak
1587 CREATE VIEW obsolete_src_associations AS
1588 SELECT almost.id, almost.src, almost.source, almost.version, almost.suite FROM (almost_obsolete_src_associations almost JOIN newest_src_association newest ON ((((almost.source = newest.source) AND (almost.version < newest.version)) AND (almost.suite = newest.suite))));
1591 ALTER TABLE public.obsolete_src_associations OWNER TO dak;
1594 -- Name: override; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1597 CREATE TABLE override (
1598 package text NOT NULL,
1599 suite integer NOT NULL,
1600 component integer NOT NULL,
1602 section integer NOT NULL,
1603 type integer NOT NULL,
1605 created timestamp with time zone DEFAULT now() NOT NULL,
1606 modified timestamp with time zone DEFAULT now() NOT NULL
1610 ALTER TABLE public.override OWNER TO dak;
1613 -- Name: override_type_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1616 CREATE SEQUENCE override_type_id_seq
1624 ALTER TABLE public.override_type_id_seq OWNER TO dak;
1627 -- Name: override_type; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1630 CREATE TABLE override_type (
1631 id integer DEFAULT nextval('override_type_id_seq'::regclass) NOT NULL,
1633 created timestamp with time zone DEFAULT now() NOT NULL,
1634 modified timestamp with time zone DEFAULT now() NOT NULL
1638 ALTER TABLE public.override_type OWNER TO dak;
1641 -- Name: policy_queue; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1644 CREATE TABLE policy_queue (
1645 id integer NOT NULL,
1646 queue_name text NOT NULL,
1648 perms character(4) DEFAULT '0660'::bpchar NOT NULL,
1649 change_perms character(4) DEFAULT '0660'::bpchar NOT NULL,
1650 generate_metadata boolean DEFAULT false NOT NULL,
1653 releasedescription text,
1655 stay_of_execution integer DEFAULT 86400 NOT NULL,
1656 created timestamp with time zone DEFAULT now() NOT NULL,
1657 modified timestamp with time zone DEFAULT now() NOT NULL,
1658 send_to_build_queues boolean DEFAULT false NOT NULL,
1659 CONSTRAINT policy_queue_change_perms_check CHECK ((change_perms ~ similar_escape('[0-7][0-7][0-7][0-7]'::text, NULL::text))),
1660 CONSTRAINT policy_queue_meta_sanity_check CHECK (((generate_metadata IS FALSE) OR (((origin IS NOT NULL) AND (label IS NOT NULL)) AND (releasedescription IS NOT NULL)))),
1661 CONSTRAINT policy_queue_perms_check CHECK ((perms ~ similar_escape('[0-7][0-7][0-7][0-7]'::text, NULL::text))),
1662 CONSTRAINT policy_queue_stay_of_execution_check CHECK ((stay_of_execution >= 0))
1666 ALTER TABLE public.policy_queue OWNER TO dak;
1669 -- Name: policy_queue_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1672 CREATE SEQUENCE policy_queue_id_seq
1680 ALTER TABLE public.policy_queue_id_seq OWNER TO dak;
1683 -- Name: policy_queue_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1686 ALTER SEQUENCE policy_queue_id_seq OWNED BY policy_queue.id;
1690 -- Name: priority_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1693 CREATE SEQUENCE priority_id_seq
1701 ALTER TABLE public.priority_id_seq OWNER TO dak;
1704 -- Name: priority; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1707 CREATE TABLE priority (
1708 id integer DEFAULT nextval('priority_id_seq'::regclass) NOT NULL,
1709 priority text NOT NULL,
1710 level integer NOT NULL,
1711 created timestamp with time zone DEFAULT now() NOT NULL,
1712 modified timestamp with time zone DEFAULT now() NOT NULL
1716 ALTER TABLE public.priority OWNER TO dak;
1719 -- Name: section_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1722 CREATE SEQUENCE section_id_seq
1730 ALTER TABLE public.section_id_seq OWNER TO dak;
1733 -- Name: section; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1736 CREATE TABLE section (
1737 id integer DEFAULT nextval('section_id_seq'::regclass) NOT NULL,
1738 section text NOT NULL,
1739 created timestamp with time zone DEFAULT now() NOT NULL,
1740 modified timestamp with time zone DEFAULT now() NOT NULL
1744 ALTER TABLE public.section OWNER TO dak;
1747 -- Name: source_acl; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1750 CREATE TABLE source_acl (
1751 id integer NOT NULL,
1752 access_level text NOT NULL,
1753 created timestamp with time zone DEFAULT now() NOT NULL,
1754 modified timestamp with time zone DEFAULT now() NOT NULL
1758 ALTER TABLE public.source_acl OWNER TO dak;
1761 -- Name: source_acl_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1764 CREATE SEQUENCE source_acl_id_seq
1772 ALTER TABLE public.source_acl_id_seq OWNER TO dak;
1775 -- Name: source_acl_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1778 ALTER SEQUENCE source_acl_id_seq OWNED BY source_acl.id;
1782 -- Name: source_metadata; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1785 CREATE TABLE source_metadata (
1786 src_id integer NOT NULL,
1787 key_id integer NOT NULL,
1792 ALTER TABLE public.source_metadata OWNER TO dak;
1795 -- Name: src_contents; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1798 CREATE TABLE src_contents (
1800 source_id integer NOT NULL,
1801 created timestamp with time zone DEFAULT now() NOT NULL,
1802 modified timestamp with time zone DEFAULT now() NOT NULL
1806 ALTER TABLE public.src_contents OWNER TO dak;
1809 -- Name: src_format; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1812 CREATE TABLE src_format (
1813 id integer NOT NULL,
1814 format_name text NOT NULL,
1815 created timestamp with time zone DEFAULT now() NOT NULL,
1816 modified timestamp with time zone DEFAULT now() NOT NULL
1820 ALTER TABLE public.src_format OWNER TO dak;
1823 -- Name: src_format_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1826 CREATE SEQUENCE src_format_id_seq
1834 ALTER TABLE public.src_format_id_seq OWNER TO dak;
1837 -- Name: src_format_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1840 ALTER SEQUENCE src_format_id_seq OWNED BY src_format.id;
1844 -- Name: src_uploaders; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1847 CREATE TABLE src_uploaders (
1848 id integer NOT NULL,
1849 source integer NOT NULL,
1850 maintainer integer NOT NULL,
1851 created timestamp with time zone DEFAULT now() NOT NULL,
1852 modified timestamp with time zone DEFAULT now() NOT NULL
1856 ALTER TABLE public.src_uploaders OWNER TO dak;
1859 -- Name: src_uploaders_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1862 CREATE SEQUENCE src_uploaders_id_seq
1870 ALTER TABLE public.src_uploaders_id_seq OWNER TO dak;
1873 -- Name: src_uploaders_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1876 ALTER SEQUENCE src_uploaders_id_seq OWNED BY src_uploaders.id;
1880 -- Name: suite_architectures; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1883 CREATE TABLE suite_architectures (
1884 suite integer NOT NULL,
1885 architecture integer NOT NULL,
1886 created timestamp with time zone DEFAULT now() NOT NULL,
1887 modified timestamp with time zone DEFAULT now() NOT NULL
1891 ALTER TABLE public.suite_architectures OWNER TO dak;
1894 -- Name: suite_arch_by_name; Type: VIEW; Schema: public; Owner: dak
1897 CREATE VIEW suite_arch_by_name AS
1898 SELECT suite.suite_name AS suite, a.arch_string AS arch FROM ((suite_architectures sa JOIN architecture a ON ((sa.architecture = a.id))) JOIN suite ON ((sa.suite = suite.id))) WHERE (a.arch_string <> ALL (ARRAY['all'::text, 'source'::text]));
1901 ALTER TABLE public.suite_arch_by_name OWNER TO dak;
1904 -- Name: suite_build_queue_copy; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1907 CREATE TABLE suite_build_queue_copy (
1908 suite integer NOT NULL,
1909 build_queue_id integer NOT NULL,
1910 created timestamp with time zone DEFAULT now() NOT NULL,
1911 modified timestamp with time zone DEFAULT now() NOT NULL
1915 ALTER TABLE public.suite_build_queue_copy OWNER TO dak;
1918 -- Name: suite_src_formats; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1921 CREATE TABLE suite_src_formats (
1922 suite integer NOT NULL,
1923 src_format integer NOT NULL,
1924 created timestamp with time zone DEFAULT now() NOT NULL,
1925 modified timestamp with time zone DEFAULT now() NOT NULL
1929 ALTER TABLE public.suite_src_formats OWNER TO dak;
1932 -- Name: uid_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1935 CREATE SEQUENCE uid_id_seq
1943 ALTER TABLE public.uid_id_seq OWNER TO dak;
1946 -- Name: uid; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1950 id integer DEFAULT nextval('uid_id_seq'::regclass) NOT NULL,
1953 created timestamp with time zone DEFAULT now() NOT NULL,
1954 modified timestamp with time zone DEFAULT now() NOT NULL
1958 ALTER TABLE public.uid OWNER TO dak;
1961 -- Name: upload_blocks; Type: TABLE; Schema: public; Owner: dak; Tablespace:
1964 CREATE TABLE upload_blocks (
1965 id integer NOT NULL,
1966 source text NOT NULL,
1968 fingerprint_id integer,
1970 reason text NOT NULL,
1971 created timestamp with time zone DEFAULT now() NOT NULL,
1972 modified timestamp with time zone DEFAULT now() NOT NULL,
1973 CONSTRAINT upload_blocks_check CHECK (((fingerprint_id IS NOT NULL) OR (uid_id IS NOT NULL)))
1977 ALTER TABLE public.upload_blocks OWNER TO dak;
1980 -- Name: upload_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: dak
1983 CREATE SEQUENCE upload_blocks_id_seq
1991 ALTER TABLE public.upload_blocks_id_seq OWNER TO dak;
1994 -- Name: upload_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dak
1997 ALTER SEQUENCE upload_blocks_id_seq OWNED BY upload_blocks.id;
2001 -- Name: version_check; Type: TABLE; Schema: public; Owner: dak; Tablespace:
2004 CREATE TABLE version_check (
2005 suite integer NOT NULL,
2006 "check" text NOT NULL,
2007 reference integer NOT NULL,
2008 CONSTRAINT version_check_check_check CHECK (("check" = ANY (ARRAY['Enhances'::text, 'MustBeNewerThan'::text, 'MustBeOlderThan'::text])))
2012 ALTER TABLE public.version_check OWNER TO dak;
2015 -- Name: version_checks; Type: VIEW; Schema: public; Owner: dak
2018 CREATE VIEW version_checks AS
2019 SELECT s.suite_name AS source_suite, v."check" AS condition, t.suite_name AS target_suite FROM ((suite s JOIN version_check v ON ((s.id = v.suite))) JOIN suite t ON ((v.reference = t.id))) ORDER BY s.suite_name, v."check", t.suite_name;
2022 ALTER TABLE public.version_checks OWNER TO dak;
2025 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2028 ALTER TABLE binary_acl ALTER COLUMN id SET DEFAULT nextval('binary_acl_id_seq'::regclass);
2032 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2035 ALTER TABLE binary_acl_map ALTER COLUMN id SET DEFAULT nextval('binary_acl_map_id_seq'::regclass);
2039 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2042 ALTER TABLE build_queue ALTER COLUMN id SET DEFAULT nextval('build_queue_id_seq'::regclass);
2046 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2049 ALTER TABLE build_queue_files ALTER COLUMN id SET DEFAULT nextval('build_queue_files_id_seq'::regclass);
2053 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2056 ALTER TABLE changelogs_text ALTER COLUMN id SET DEFAULT nextval('changelogs_text_id_seq'::regclass);
2060 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2063 ALTER TABLE changes ALTER COLUMN id SET DEFAULT nextval('changes_id_seq'::regclass);
2067 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2070 ALTER TABLE changes_pending_binaries ALTER COLUMN id SET DEFAULT nextval('changes_pending_binaries_id_seq'::regclass);
2074 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2077 ALTER TABLE changes_pending_files ALTER COLUMN id SET DEFAULT nextval('changes_pending_files_id_seq'::regclass);
2081 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2084 ALTER TABLE changes_pending_source ALTER COLUMN id SET DEFAULT nextval('changes_pending_source_id_seq'::regclass);
2088 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2091 ALTER TABLE config ALTER COLUMN id SET DEFAULT nextval('config_id_seq'::regclass);
2095 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2098 ALTER TABLE keyring_acl_map ALTER COLUMN id SET DEFAULT nextval('keyring_acl_map_id_seq'::regclass);
2102 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2105 ALTER TABLE keyrings ALTER COLUMN id SET DEFAULT nextval('keyrings_id_seq'::regclass);
2109 -- Name: key_id; Type: DEFAULT; Schema: public; Owner: dak
2112 ALTER TABLE metadata_keys ALTER COLUMN key_id SET DEFAULT nextval('metadata_keys_key_id_seq'::regclass);
2116 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2119 ALTER TABLE new_comments ALTER COLUMN id SET DEFAULT nextval('new_comments_id_seq'::regclass);
2123 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2126 ALTER TABLE policy_queue ALTER COLUMN id SET DEFAULT nextval('policy_queue_id_seq'::regclass);
2130 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2133 ALTER TABLE source_acl ALTER COLUMN id SET DEFAULT nextval('source_acl_id_seq'::regclass);
2137 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2140 ALTER TABLE src_format ALTER COLUMN id SET DEFAULT nextval('src_format_id_seq'::regclass);
2144 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2147 ALTER TABLE src_uploaders ALTER COLUMN id SET DEFAULT nextval('src_uploaders_id_seq'::regclass);
2151 -- Name: id; Type: DEFAULT; Schema: public; Owner: dak
2154 ALTER TABLE upload_blocks ALTER COLUMN id SET DEFAULT nextval('upload_blocks_id_seq'::regclass);
2158 -- Name: architecture_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2161 ALTER TABLE ONLY architecture
2162 ADD CONSTRAINT architecture_pkey PRIMARY KEY (id);
2166 -- Name: archive_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2169 ALTER TABLE ONLY archive
2170 ADD CONSTRAINT archive_pkey PRIMARY KEY (id);
2174 -- Name: bin_associations_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2177 ALTER TABLE ONLY bin_associations
2178 ADD CONSTRAINT bin_associations_pkey PRIMARY KEY (id);
2182 -- Name: bin_contents_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2185 ALTER TABLE ONLY bin_contents
2186 ADD CONSTRAINT bin_contents_pkey PRIMARY KEY (file, binary_id);
2190 -- Name: binaries_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2193 ALTER TABLE ONLY binaries_metadata
2194 ADD CONSTRAINT binaries_metadata_pkey PRIMARY KEY (bin_id, key_id);
2198 -- Name: binaries_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2201 ALTER TABLE ONLY binaries
2202 ADD CONSTRAINT binaries_pkey PRIMARY KEY (id);
2206 -- Name: binary_acl_access_level_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2209 ALTER TABLE ONLY binary_acl
2210 ADD CONSTRAINT binary_acl_access_level_key UNIQUE (access_level);
2214 -- Name: binary_acl_map_fingerprint_id_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2217 ALTER TABLE ONLY binary_acl_map
2218 ADD CONSTRAINT binary_acl_map_fingerprint_id_key UNIQUE (fingerprint_id, architecture_id);
2222 -- Name: binary_acl_map_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2225 ALTER TABLE ONLY binary_acl_map
2226 ADD CONSTRAINT binary_acl_map_pkey PRIMARY KEY (id);
2230 -- Name: binary_acl_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2233 ALTER TABLE ONLY binary_acl
2234 ADD CONSTRAINT binary_acl_pkey PRIMARY KEY (id);
2238 -- Name: build_queue_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2241 ALTER TABLE ONLY build_queue
2242 ADD CONSTRAINT build_queue_pkey PRIMARY KEY (id);
2246 -- Name: build_queue_policy_files_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2249 ALTER TABLE ONLY build_queue_policy_files
2250 ADD CONSTRAINT build_queue_policy_files_pkey PRIMARY KEY (build_queue_id, file_id);
2254 -- Name: build_queue_queue_name_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2257 ALTER TABLE ONLY build_queue
2258 ADD CONSTRAINT build_queue_queue_name_key UNIQUE (queue_name);
2262 -- Name: changelogs_text_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2265 ALTER TABLE ONLY changelogs_text
2266 ADD CONSTRAINT changelogs_text_pkey PRIMARY KEY (id);
2270 -- Name: changes_pending_binaries_package_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2273 ALTER TABLE ONLY changes_pending_binaries
2274 ADD CONSTRAINT changes_pending_binaries_package_key UNIQUE (package, version, architecture_id);
2278 -- Name: changes_pending_binaries_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2281 ALTER TABLE ONLY changes_pending_binaries
2282 ADD CONSTRAINT changes_pending_binaries_pkey PRIMARY KEY (id);
2286 -- Name: changes_pending_files_filename_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2289 ALTER TABLE ONLY changes_pending_files
2290 ADD CONSTRAINT changes_pending_files_filename_key UNIQUE (filename);
2294 -- Name: changes_pending_files_map_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2297 ALTER TABLE ONLY changes_pending_files_map
2298 ADD CONSTRAINT changes_pending_files_map_pkey PRIMARY KEY (file_id, change_id);
2302 -- Name: changes_pending_files_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2305 ALTER TABLE ONLY changes_pending_files
2306 ADD CONSTRAINT changes_pending_files_pkey PRIMARY KEY (id);
2310 -- Name: changes_pending_source_files_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2313 ALTER TABLE ONLY changes_pending_source_files
2314 ADD CONSTRAINT changes_pending_source_files_pkey PRIMARY KEY (pending_source_id, pending_file_id);
2318 -- Name: changes_pending_source_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2321 ALTER TABLE ONLY changes_pending_source
2322 ADD CONSTRAINT changes_pending_source_pkey PRIMARY KEY (id);
2326 -- Name: changes_pool_files_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2329 ALTER TABLE ONLY changes_pool_files
2330 ADD CONSTRAINT changes_pool_files_pkey PRIMARY KEY (changeid, fileid);
2334 -- Name: component_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2337 ALTER TABLE ONLY component
2338 ADD CONSTRAINT component_pkey PRIMARY KEY (id);
2342 -- Name: config_name_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2345 ALTER TABLE ONLY config
2346 ADD CONSTRAINT config_name_key UNIQUE (name);
2350 -- Name: config_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2353 ALTER TABLE ONLY config
2354 ADD CONSTRAINT config_pkey PRIMARY KEY (id);
2358 -- Name: dsc_files_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2361 ALTER TABLE ONLY dsc_files
2362 ADD CONSTRAINT dsc_files_pkey PRIMARY KEY (id);
2366 -- Name: external_overrides_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2369 ALTER TABLE ONLY external_overrides
2370 ADD CONSTRAINT external_overrides_pkey PRIMARY KEY (suite, component, package, key);
2374 -- Name: extra_src_references_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2377 ALTER TABLE ONLY extra_src_references
2378 ADD CONSTRAINT extra_src_references_pkey PRIMARY KEY (bin_id, src_id);
2382 -- Name: files_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2385 ALTER TABLE ONLY files
2386 ADD CONSTRAINT files_pkey PRIMARY KEY (id);
2390 -- Name: fingerprint_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2393 ALTER TABLE ONLY fingerprint
2394 ADD CONSTRAINT fingerprint_pkey PRIMARY KEY (id);
2398 -- Name: keyring_acl_map_keyring_id_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2401 ALTER TABLE ONLY keyring_acl_map
2402 ADD CONSTRAINT keyring_acl_map_keyring_id_key UNIQUE (keyring_id, architecture_id);
2406 -- Name: keyring_acl_map_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2409 ALTER TABLE ONLY keyring_acl_map
2410 ADD CONSTRAINT keyring_acl_map_pkey PRIMARY KEY (id);
2414 -- Name: keyrings_name_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2417 ALTER TABLE ONLY keyrings
2418 ADD CONSTRAINT keyrings_name_key UNIQUE (name);
2422 -- Name: keyrings_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2425 ALTER TABLE ONLY keyrings
2426 ADD CONSTRAINT keyrings_pkey PRIMARY KEY (id);
2430 -- Name: known_changes_changesname_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2433 ALTER TABLE ONLY changes
2434 ADD CONSTRAINT known_changes_changesname_key UNIQUE (changesname);
2438 -- Name: known_changes_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2441 ALTER TABLE ONLY changes
2442 ADD CONSTRAINT known_changes_pkey PRIMARY KEY (id);
2446 -- Name: location_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2449 ALTER TABLE ONLY location
2450 ADD CONSTRAINT location_pkey PRIMARY KEY (id);
2454 -- Name: maintainer_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2457 ALTER TABLE ONLY maintainer
2458 ADD CONSTRAINT maintainer_pkey PRIMARY KEY (id);
2462 -- Name: metadata_keys_key_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2465 ALTER TABLE ONLY metadata_keys
2466 ADD CONSTRAINT metadata_keys_key_key UNIQUE (key);
2470 -- Name: metadata_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2473 ALTER TABLE ONLY metadata_keys
2474 ADD CONSTRAINT metadata_keys_pkey PRIMARY KEY (key_id);
2478 -- Name: new_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2481 ALTER TABLE ONLY new_comments
2482 ADD CONSTRAINT new_comments_pkey PRIMARY KEY (id);
2486 -- Name: override_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2489 ALTER TABLE ONLY override
2490 ADD CONSTRAINT override_pkey PRIMARY KEY (suite, component, package, type);
2494 -- Name: override_type_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2497 ALTER TABLE ONLY override_type
2498 ADD CONSTRAINT override_type_pkey PRIMARY KEY (id);
2502 -- Name: policy_queue_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2505 ALTER TABLE ONLY policy_queue
2506 ADD CONSTRAINT policy_queue_pkey PRIMARY KEY (id);
2510 -- Name: policy_queue_queue_name_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2513 ALTER TABLE ONLY policy_queue
2514 ADD CONSTRAINT policy_queue_queue_name_key UNIQUE (queue_name);
2518 -- Name: priority_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2521 ALTER TABLE ONLY priority
2522 ADD CONSTRAINT priority_pkey PRIMARY KEY (id);
2526 -- Name: queue_files_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2529 ALTER TABLE ONLY build_queue_files
2530 ADD CONSTRAINT queue_files_pkey PRIMARY KEY (id);
2534 -- Name: section_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2537 ALTER TABLE ONLY section
2538 ADD CONSTRAINT section_pkey PRIMARY KEY (id);
2542 -- Name: source_acl_access_level_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2545 ALTER TABLE ONLY source_acl
2546 ADD CONSTRAINT source_acl_access_level_key UNIQUE (access_level);
2550 -- Name: source_acl_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2553 ALTER TABLE ONLY source_acl
2554 ADD CONSTRAINT source_acl_pkey PRIMARY KEY (id);
2558 -- Name: source_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2561 ALTER TABLE ONLY source_metadata
2562 ADD CONSTRAINT source_metadata_pkey PRIMARY KEY (src_id, key_id);
2566 -- Name: source_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2569 ALTER TABLE ONLY source
2570 ADD CONSTRAINT source_pkey PRIMARY KEY (id);
2574 -- Name: src_associations_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2577 ALTER TABLE ONLY src_associations
2578 ADD CONSTRAINT src_associations_pkey PRIMARY KEY (id);
2582 -- Name: src_contents_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2585 ALTER TABLE ONLY src_contents
2586 ADD CONSTRAINT src_contents_pkey PRIMARY KEY (file, source_id);
2590 -- Name: src_format_format_name_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2593 ALTER TABLE ONLY src_format
2594 ADD CONSTRAINT src_format_format_name_key UNIQUE (format_name);
2598 -- Name: src_format_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2601 ALTER TABLE ONLY src_format
2602 ADD CONSTRAINT src_format_pkey PRIMARY KEY (id);
2606 -- Name: src_uploaders_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2609 ALTER TABLE ONLY src_uploaders
2610 ADD CONSTRAINT src_uploaders_pkey PRIMARY KEY (id);
2614 -- Name: src_uploaders_source_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2617 ALTER TABLE ONLY src_uploaders
2618 ADD CONSTRAINT src_uploaders_source_key UNIQUE (source, maintainer);
2622 -- Name: suite_architectures_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2625 ALTER TABLE ONLY suite_architectures
2626 ADD CONSTRAINT suite_architectures_pkey PRIMARY KEY (suite, architecture);
2630 -- Name: suite_name_unique; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2633 ALTER TABLE ONLY suite
2634 ADD CONSTRAINT suite_name_unique UNIQUE (suite_name);
2638 -- Name: suite_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2641 ALTER TABLE ONLY suite
2642 ADD CONSTRAINT suite_pkey PRIMARY KEY (id);
2646 -- Name: suite_queue_copy_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2649 ALTER TABLE ONLY suite_build_queue_copy
2650 ADD CONSTRAINT suite_queue_copy_pkey PRIMARY KEY (suite, build_queue_id);
2654 -- Name: suite_src_formats_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2657 ALTER TABLE ONLY suite_src_formats
2658 ADD CONSTRAINT suite_src_formats_pkey PRIMARY KEY (suite, src_format);
2662 -- Name: suite_src_formats_suite_key; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2665 ALTER TABLE ONLY suite_src_formats
2666 ADD CONSTRAINT suite_src_formats_suite_key UNIQUE (suite, src_format);
2670 -- Name: uid_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2673 ALTER TABLE ONLY uid
2674 ADD CONSTRAINT uid_pkey PRIMARY KEY (id);
2678 -- Name: upload_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2681 ALTER TABLE ONLY upload_blocks
2682 ADD CONSTRAINT upload_blocks_pkey PRIMARY KEY (id);
2686 -- Name: version_check_pkey; Type: CONSTRAINT; Schema: public; Owner: dak; Tablespace:
2689 ALTER TABLE ONLY version_check
2690 ADD CONSTRAINT version_check_pkey PRIMARY KEY (suite, "check", reference);
2694 -- Name: architecture_arch_string_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2697 CREATE UNIQUE INDEX architecture_arch_string_key ON architecture USING btree (arch_string);
2701 -- Name: archive_name_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2704 CREATE UNIQUE INDEX archive_name_key ON archive USING btree (name);
2708 -- Name: bin_associations_bin; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2711 CREATE INDEX bin_associations_bin ON bin_associations USING btree (bin);
2715 -- Name: bin_associations_suite_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2718 CREATE UNIQUE INDEX bin_associations_suite_key ON bin_associations USING btree (suite, bin);
2722 -- Name: binaries_architecture_idx; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2725 CREATE INDEX binaries_architecture_idx ON binaries USING btree (architecture);
2729 -- Name: binaries_by_package; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2732 CREATE INDEX binaries_by_package ON binaries USING btree (id, package);
2736 -- Name: binaries_file_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2739 CREATE UNIQUE INDEX binaries_file_key ON binaries USING btree (file);
2743 -- Name: binaries_files; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2746 CREATE INDEX binaries_files ON binaries USING btree (file);
2750 -- Name: binaries_fingerprint; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2753 CREATE INDEX binaries_fingerprint ON binaries USING btree (sig_fpr);
2757 -- Name: binaries_id; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2760 CREATE UNIQUE INDEX binaries_id ON binaries USING btree (id);
2764 -- Name: binaries_maintainer; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2767 CREATE INDEX binaries_maintainer ON binaries USING btree (maintainer);
2771 -- Name: binaries_metadata_depends; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2774 CREATE INDEX binaries_metadata_depends ON binaries_metadata USING btree (bin_id) WHERE (key_id = 44);
2778 -- Name: binaries_metadata_provides; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2781 CREATE INDEX binaries_metadata_provides ON binaries_metadata USING btree (bin_id) WHERE (key_id = 51);
2785 -- Name: binaries_package_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2788 CREATE UNIQUE INDEX binaries_package_key ON binaries USING btree (package, version, architecture);
2792 -- Name: changesapproved_for; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2795 CREATE INDEX changesapproved_for ON changes USING btree (approved_for);
2799 -- Name: changesdistribution_ind; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2802 CREATE INDEX changesdistribution_ind ON changes USING btree (distribution);
2806 -- Name: changesin_queue; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2809 CREATE INDEX changesin_queue ON changes USING btree (in_queue);
2813 -- Name: changesin_queue_approved_for; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2816 CREATE INDEX changesin_queue_approved_for ON changes USING btree (in_queue, approved_for);
2820 -- Name: changesname_ind; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2823 CREATE INDEX changesname_ind ON changes USING btree (changesname);
2827 -- Name: changessource_ind; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2830 CREATE INDEX changessource_ind ON changes USING btree (source);
2834 -- Name: changestimestamp_ind; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2837 CREATE INDEX changestimestamp_ind ON changes USING btree (seen);
2841 -- Name: changesurgency_ind; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2844 CREATE INDEX changesurgency_ind ON changes USING btree (urgency);
2848 -- Name: component_name_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2851 CREATE UNIQUE INDEX component_name_key ON component USING btree (name);
2855 -- Name: dsc_files_file; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2858 CREATE INDEX dsc_files_file ON dsc_files USING btree (file);
2862 -- Name: dsc_files_source_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2865 CREATE UNIQUE INDEX dsc_files_source_key ON dsc_files USING btree (source, file);
2869 -- Name: files_filename_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2872 CREATE UNIQUE INDEX files_filename_key ON files USING btree (filename, location);
2876 -- Name: files_last_used; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2879 CREATE INDEX files_last_used ON files USING btree (last_used);
2883 -- Name: fingerprint_fingerprint_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2886 CREATE UNIQUE INDEX fingerprint_fingerprint_key ON fingerprint USING btree (fingerprint);
2890 -- Name: ind_bin_contents_binary; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2893 CREATE INDEX ind_bin_contents_binary ON bin_contents USING btree (binary_id);
2897 -- Name: jjt; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2900 CREATE INDEX jjt ON files USING btree (id);
2904 -- Name: jjt2; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2907 CREATE INDEX jjt2 ON files USING btree (location);
2911 -- Name: jjt3; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2914 CREATE INDEX jjt3 ON files USING btree (id, location);
2918 -- Name: jjt4; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2921 CREATE INDEX jjt4 ON binaries USING btree (source);
2925 -- Name: jjt5; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2928 CREATE INDEX jjt5 ON binaries USING btree (id, source);
2932 -- Name: jjt_override_type_idx; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2935 CREATE INDEX jjt_override_type_idx ON override USING btree (type);
2939 -- Name: maintainer_name_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2942 CREATE UNIQUE INDEX maintainer_name_key ON maintainer USING btree (name);
2946 -- Name: override_by_package; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2949 CREATE INDEX override_by_package ON override USING btree (package);
2953 -- Name: override_suite_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2956 CREATE UNIQUE INDEX override_suite_key ON override USING btree (suite, component, package, type);
2960 -- Name: override_type_type_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2963 CREATE UNIQUE INDEX override_type_type_key ON override_type USING btree (type);
2967 -- Name: priority_level_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2970 CREATE UNIQUE INDEX priority_level_key ON priority USING btree (level);
2974 -- Name: priority_priority_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2977 CREATE UNIQUE INDEX priority_priority_key ON priority USING btree (priority);
2981 -- Name: section_section_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2984 CREATE UNIQUE INDEX section_section_key ON section USING btree (section);
2988 -- Name: source_file_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2991 CREATE UNIQUE INDEX source_file_key ON source USING btree (file);
2995 -- Name: source_fingerprint; Type: INDEX; Schema: public; Owner: dak; Tablespace:
2998 CREATE INDEX source_fingerprint ON source USING btree (sig_fpr);
3002 -- Name: source_maintainer; Type: INDEX; Schema: public; Owner: dak; Tablespace:
3005 CREATE INDEX source_maintainer ON source USING btree (maintainer);
3009 -- Name: source_source_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
3012 CREATE UNIQUE INDEX source_source_key ON source USING btree (source, version);
3016 -- Name: src_associations_source; Type: INDEX; Schema: public; Owner: dak; Tablespace:
3019 CREATE INDEX src_associations_source ON src_associations USING btree (source);
3023 -- Name: src_associations_suite_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
3026 CREATE UNIQUE INDEX src_associations_suite_key ON src_associations USING btree (suite, source);
3030 -- Name: src_contents_source_id_idx; Type: INDEX; Schema: public; Owner: dak; Tablespace:
3033 CREATE INDEX src_contents_source_id_idx ON src_contents USING btree (source_id);
3037 -- Name: suite_architectures_suite_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
3040 CREATE UNIQUE INDEX suite_architectures_suite_key ON suite_architectures USING btree (suite, architecture);
3044 -- Name: suite_hash; Type: INDEX; Schema: public; Owner: dak; Tablespace:
3047 CREATE INDEX suite_hash ON suite USING hash (suite_name);
3051 -- Name: uid_uid_key; Type: INDEX; Schema: public; Owner: dak; Tablespace:
3054 CREATE UNIQUE INDEX uid_uid_key ON uid USING btree (uid);
3058 -- Name: modified_architecture; Type: TRIGGER; Schema: public; Owner: dak
3061 CREATE TRIGGER modified_architecture BEFORE UPDATE ON architecture FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3065 -- Name: modified_archive; Type: TRIGGER; Schema: public; Owner: dak
3068 CREATE TRIGGER modified_archive BEFORE UPDATE ON archive FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3072 -- Name: modified_bin_associations; Type: TRIGGER; Schema: public; Owner: dak
3075 CREATE TRIGGER modified_bin_associations BEFORE UPDATE ON bin_associations FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3079 -- Name: modified_bin_contents; Type: TRIGGER; Schema: public; Owner: dak
3082 CREATE TRIGGER modified_bin_contents BEFORE UPDATE ON bin_contents FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3086 -- Name: modified_binaries; Type: TRIGGER; Schema: public; Owner: dak
3089 CREATE TRIGGER modified_binaries BEFORE UPDATE ON binaries FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3093 -- Name: modified_binary_acl; Type: TRIGGER; Schema: public; Owner: dak
3096 CREATE TRIGGER modified_binary_acl BEFORE UPDATE ON binary_acl FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3100 -- Name: modified_binary_acl_map; Type: TRIGGER; Schema: public; Owner: dak
3103 CREATE TRIGGER modified_binary_acl_map BEFORE UPDATE ON binary_acl_map FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3107 -- Name: modified_build_queue; Type: TRIGGER; Schema: public; Owner: dak
3110 CREATE TRIGGER modified_build_queue BEFORE UPDATE ON build_queue FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3114 -- Name: modified_build_queue_files; Type: TRIGGER; Schema: public; Owner: dak
3117 CREATE TRIGGER modified_build_queue_files BEFORE UPDATE ON build_queue_files FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3121 -- Name: modified_changes; Type: TRIGGER; Schema: public; Owner: dak
3124 CREATE TRIGGER modified_changes BEFORE UPDATE ON changes FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3128 -- Name: modified_changes_pending_binaries; Type: TRIGGER; Schema: public; Owner: dak
3131 CREATE TRIGGER modified_changes_pending_binaries BEFORE UPDATE ON changes_pending_binaries FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3135 -- Name: modified_changes_pending_files; Type: TRIGGER; Schema: public; Owner: dak
3138 CREATE TRIGGER modified_changes_pending_files BEFORE UPDATE ON changes_pending_files FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3142 -- Name: modified_changes_pending_files_map; Type: TRIGGER; Schema: public; Owner: dak
3145 CREATE TRIGGER modified_changes_pending_files_map BEFORE UPDATE ON changes_pending_files_map FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3149 -- Name: modified_changes_pending_source; Type: TRIGGER; Schema: public; Owner: dak
3152 CREATE TRIGGER modified_changes_pending_source BEFORE UPDATE ON changes_pending_source FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3156 -- Name: modified_changes_pending_source_files; Type: TRIGGER; Schema: public; Owner: dak
3159 CREATE TRIGGER modified_changes_pending_source_files BEFORE UPDATE ON changes_pending_source_files FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3163 -- Name: modified_changes_pool_files; Type: TRIGGER; Schema: public; Owner: dak
3166 CREATE TRIGGER modified_changes_pool_files BEFORE UPDATE ON changes_pool_files FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3170 -- Name: modified_component; Type: TRIGGER; Schema: public; Owner: dak
3173 CREATE TRIGGER modified_component BEFORE UPDATE ON component FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3177 -- Name: modified_config; Type: TRIGGER; Schema: public; Owner: dak
3180 CREATE TRIGGER modified_config BEFORE UPDATE ON config FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3184 -- Name: modified_dsc_files; Type: TRIGGER; Schema: public; Owner: dak
3187 CREATE TRIGGER modified_dsc_files BEFORE UPDATE ON dsc_files FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3191 -- Name: modified_files; Type: TRIGGER; Schema: public; Owner: dak
3194 CREATE TRIGGER modified_files BEFORE UPDATE ON files FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3198 -- Name: modified_fingerprint; Type: TRIGGER; Schema: public; Owner: dak
3201 CREATE TRIGGER modified_fingerprint BEFORE UPDATE ON fingerprint FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3205 -- Name: modified_keyring_acl_map; Type: TRIGGER; Schema: public; Owner: dak
3208 CREATE TRIGGER modified_keyring_acl_map BEFORE UPDATE ON keyring_acl_map FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3212 -- Name: modified_keyrings; Type: TRIGGER; Schema: public; Owner: dak
3215 CREATE TRIGGER modified_keyrings BEFORE UPDATE ON keyrings FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3219 -- Name: modified_location; Type: TRIGGER; Schema: public; Owner: dak
3222 CREATE TRIGGER modified_location BEFORE UPDATE ON location FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3226 -- Name: modified_maintainer; Type: TRIGGER; Schema: public; Owner: dak
3229 CREATE TRIGGER modified_maintainer BEFORE UPDATE ON maintainer FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3233 -- Name: modified_new_comments; Type: TRIGGER; Schema: public; Owner: dak
3236 CREATE TRIGGER modified_new_comments BEFORE UPDATE ON new_comments FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3240 -- Name: modified_override; Type: TRIGGER; Schema: public; Owner: dak
3243 CREATE TRIGGER modified_override BEFORE UPDATE ON override FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3247 -- Name: modified_override_type; Type: TRIGGER; Schema: public; Owner: dak
3250 CREATE TRIGGER modified_override_type BEFORE UPDATE ON override_type FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3254 -- Name: modified_policy_queue; Type: TRIGGER; Schema: public; Owner: dak
3257 CREATE TRIGGER modified_policy_queue BEFORE UPDATE ON policy_queue FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3261 -- Name: modified_priority; Type: TRIGGER; Schema: public; Owner: dak
3264 CREATE TRIGGER modified_priority BEFORE UPDATE ON priority FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3268 -- Name: modified_section; Type: TRIGGER; Schema: public; Owner: dak
3271 CREATE TRIGGER modified_section BEFORE UPDATE ON section FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3275 -- Name: modified_source; Type: TRIGGER; Schema: public; Owner: dak
3278 CREATE TRIGGER modified_source BEFORE UPDATE ON source FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3282 -- Name: modified_source_acl; Type: TRIGGER; Schema: public; Owner: dak
3285 CREATE TRIGGER modified_source_acl BEFORE UPDATE ON source_acl FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3289 -- Name: modified_src_associations; Type: TRIGGER; Schema: public; Owner: dak
3292 CREATE TRIGGER modified_src_associations BEFORE UPDATE ON src_associations FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3296 -- Name: modified_src_contents; Type: TRIGGER; Schema: public; Owner: dak
3299 CREATE TRIGGER modified_src_contents BEFORE UPDATE ON src_contents FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3303 -- Name: modified_src_format; Type: TRIGGER; Schema: public; Owner: dak
3306 CREATE TRIGGER modified_src_format BEFORE UPDATE ON src_format FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3310 -- Name: modified_src_uploaders; Type: TRIGGER; Schema: public; Owner: dak
3313 CREATE TRIGGER modified_src_uploaders BEFORE UPDATE ON src_uploaders FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3317 -- Name: modified_suite; Type: TRIGGER; Schema: public; Owner: dak
3320 CREATE TRIGGER modified_suite BEFORE UPDATE ON suite FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3324 -- Name: modified_suite_architectures; Type: TRIGGER; Schema: public; Owner: dak
3327 CREATE TRIGGER modified_suite_architectures BEFORE UPDATE ON suite_architectures FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3331 -- Name: modified_suite_build_queue_copy; Type: TRIGGER; Schema: public; Owner: dak
3334 CREATE TRIGGER modified_suite_build_queue_copy BEFORE UPDATE ON suite_build_queue_copy FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3338 -- Name: modified_suite_src_formats; Type: TRIGGER; Schema: public; Owner: dak
3341 CREATE TRIGGER modified_suite_src_formats BEFORE UPDATE ON suite_src_formats FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3345 -- Name: modified_uid; Type: TRIGGER; Schema: public; Owner: dak
3348 CREATE TRIGGER modified_uid BEFORE UPDATE ON uid FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3352 -- Name: modified_upload_blocks; Type: TRIGGER; Schema: public; Owner: dak
3355 CREATE TRIGGER modified_upload_blocks BEFORE UPDATE ON upload_blocks FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified();
3359 -- Name: trigger_bin_associations_audit; Type: TRIGGER; Schema: public; Owner: dak
3362 CREATE TRIGGER trigger_bin_associations_audit AFTER INSERT OR DELETE ON bin_associations FOR EACH ROW EXECUTE PROCEDURE trigger_binsrc_assoc_update();
3366 -- Name: trigger_override_audit; Type: TRIGGER; Schema: public; Owner: dak
3369 CREATE TRIGGER trigger_override_audit AFTER UPDATE ON override FOR EACH ROW EXECUTE PROCEDURE trigger_override_update();
3373 -- Name: trigger_src_associations_audit; Type: TRIGGER; Schema: public; Owner: dak
3376 CREATE TRIGGER trigger_src_associations_audit AFTER INSERT OR DELETE ON src_associations FOR EACH ROW EXECUTE PROCEDURE trigger_binsrc_assoc_update();
3380 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: dak
3383 ALTER TABLE ONLY fingerprint
3384 ADD CONSTRAINT "$1" FOREIGN KEY (keyring) REFERENCES keyrings(id);
3388 -- Name: bin_associations_bin; Type: FK CONSTRAINT; Schema: public; Owner: dak
3391 ALTER TABLE ONLY bin_associations
3392 ADD CONSTRAINT bin_associations_bin FOREIGN KEY (bin) REFERENCES binaries(id) MATCH FULL;
3396 -- Name: bin_associations_suite; Type: FK CONSTRAINT; Schema: public; Owner: dak
3399 ALTER TABLE ONLY bin_associations
3400 ADD CONSTRAINT bin_associations_suite FOREIGN KEY (suite) REFERENCES suite(id) MATCH FULL;
3404 -- Name: bin_contents_bin_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3407 ALTER TABLE ONLY bin_contents
3408 ADD CONSTRAINT bin_contents_bin_fkey FOREIGN KEY (binary_id) REFERENCES binaries(id) ON DELETE CASCADE;
3412 -- Name: binaries_architecture; Type: FK CONSTRAINT; Schema: public; Owner: dak
3415 ALTER TABLE ONLY binaries
3416 ADD CONSTRAINT binaries_architecture FOREIGN KEY (architecture) REFERENCES architecture(id) MATCH FULL;
3420 -- Name: binaries_file; Type: FK CONSTRAINT; Schema: public; Owner: dak
3423 ALTER TABLE ONLY binaries
3424 ADD CONSTRAINT binaries_file FOREIGN KEY (file) REFERENCES files(id) MATCH FULL;
3428 -- Name: binaries_maintainer; Type: FK CONSTRAINT; Schema: public; Owner: dak
3431 ALTER TABLE ONLY binaries
3432 ADD CONSTRAINT binaries_maintainer FOREIGN KEY (maintainer) REFERENCES maintainer(id) MATCH FULL;
3436 -- Name: binaries_metadata_bin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3439 ALTER TABLE ONLY binaries_metadata
3440 ADD CONSTRAINT binaries_metadata_bin_id_fkey FOREIGN KEY (bin_id) REFERENCES binaries(id) ON DELETE CASCADE;
3444 -- Name: binaries_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3447 ALTER TABLE ONLY binaries_metadata
3448 ADD CONSTRAINT binaries_metadata_key_id_fkey FOREIGN KEY (key_id) REFERENCES metadata_keys(key_id);
3452 -- Name: binaries_sig_fpr; Type: FK CONSTRAINT; Schema: public; Owner: dak
3455 ALTER TABLE ONLY binaries
3456 ADD CONSTRAINT binaries_sig_fpr FOREIGN KEY (sig_fpr) REFERENCES fingerprint(id) MATCH FULL;
3460 -- Name: binaries_source; Type: FK CONSTRAINT; Schema: public; Owner: dak
3463 ALTER TABLE ONLY binaries
3464 ADD CONSTRAINT binaries_source FOREIGN KEY (source) REFERENCES source(id) MATCH FULL;
3468 -- Name: binary_acl_map_architecture_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3471 ALTER TABLE ONLY binary_acl_map
3472 ADD CONSTRAINT binary_acl_map_architecture_id_fkey FOREIGN KEY (architecture_id) REFERENCES architecture(id);
3476 -- Name: binary_acl_map_fingerprint_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3479 ALTER TABLE ONLY binary_acl_map
3480 ADD CONSTRAINT binary_acl_map_fingerprint_id_fkey FOREIGN KEY (fingerprint_id) REFERENCES fingerprint(id);
3484 -- Name: build_queue_files_build_queue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3487 ALTER TABLE ONLY build_queue_files
3488 ADD CONSTRAINT build_queue_files_build_queue_id_fkey FOREIGN KEY (build_queue_id) REFERENCES build_queue(id) ON DELETE CASCADE;
3492 -- Name: build_queue_policy_files_build_queue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3495 ALTER TABLE ONLY build_queue_policy_files
3496 ADD CONSTRAINT build_queue_policy_files_build_queue_id_fkey FOREIGN KEY (build_queue_id) REFERENCES build_queue(id) ON DELETE CASCADE;
3500 -- Name: build_queue_policy_files_file_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3503 ALTER TABLE ONLY build_queue_policy_files
3504 ADD CONSTRAINT build_queue_policy_files_file_id_fkey FOREIGN KEY (file_id) REFERENCES changes_pending_files(id) ON DELETE CASCADE;
3508 -- Name: changes_pending_binaries_architecture_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3511 ALTER TABLE ONLY changes_pending_binaries
3512 ADD CONSTRAINT changes_pending_binaries_architecture_id_fkey FOREIGN KEY (architecture_id) REFERENCES architecture(id);
3516 -- Name: changes_pending_binaries_change_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3519 ALTER TABLE ONLY changes_pending_binaries
3520 ADD CONSTRAINT changes_pending_binaries_change_id_fkey FOREIGN KEY (change_id) REFERENCES changes(id);
3524 -- Name: changes_pending_binaries_pending_file_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3527 ALTER TABLE ONLY changes_pending_binaries
3528 ADD CONSTRAINT changes_pending_binaries_pending_file_id_fkey FOREIGN KEY (pending_file_id) REFERENCES changes_pending_files(id);
3532 -- Name: changes_pending_binaries_pending_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3535 ALTER TABLE ONLY changes_pending_binaries
3536 ADD CONSTRAINT changes_pending_binaries_pending_source_id_fkey FOREIGN KEY (pending_source_id) REFERENCES changes_pending_source(id);
3540 -- Name: changes_pending_binaries_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3543 ALTER TABLE ONLY changes_pending_binaries
3544 ADD CONSTRAINT changes_pending_binaries_source_id_fkey FOREIGN KEY (source_id) REFERENCES source(id);
3548 -- Name: changes_pending_files_map_change_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3551 ALTER TABLE ONLY changes_pending_files_map
3552 ADD CONSTRAINT changes_pending_files_map_change_id_fkey FOREIGN KEY (change_id) REFERENCES changes(id);
3556 -- Name: changes_pending_files_map_file_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3559 ALTER TABLE ONLY changes_pending_files_map
3560 ADD CONSTRAINT changes_pending_files_map_file_id_fkey FOREIGN KEY (file_id) REFERENCES changes_pending_files(id);
3564 -- Name: changes_pending_source_change_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3567 ALTER TABLE ONLY changes_pending_source
3568 ADD CONSTRAINT changes_pending_source_change_id_fkey FOREIGN KEY (change_id) REFERENCES changes(id);
3572 -- Name: changes_pending_source_changedby_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3575 ALTER TABLE ONLY changes_pending_source
3576 ADD CONSTRAINT changes_pending_source_changedby_id_fkey FOREIGN KEY (changedby_id) REFERENCES maintainer(id);
3580 -- Name: changes_pending_source_files_pending_file_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3583 ALTER TABLE ONLY changes_pending_source_files
3584 ADD CONSTRAINT changes_pending_source_files_pending_file_id_fkey FOREIGN KEY (pending_file_id) REFERENCES changes_pending_files(id);
3588 -- Name: changes_pending_source_files_pending_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3591 ALTER TABLE ONLY changes_pending_source_files
3592 ADD CONSTRAINT changes_pending_source_files_pending_source_id_fkey FOREIGN KEY (pending_source_id) REFERENCES changes_pending_source(id);
3596 -- Name: changes_pending_source_maintainer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3599 ALTER TABLE ONLY changes_pending_source
3600 ADD CONSTRAINT changes_pending_source_maintainer_id_fkey FOREIGN KEY (maintainer_id) REFERENCES maintainer(id);
3604 -- Name: changes_pending_source_sig_fpr_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3607 ALTER TABLE ONLY changes_pending_source
3608 ADD CONSTRAINT changes_pending_source_sig_fpr_fkey FOREIGN KEY (sig_fpr) REFERENCES fingerprint(id);
3612 -- Name: changes_pool_files_changeid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3615 ALTER TABLE ONLY changes_pool_files
3616 ADD CONSTRAINT changes_pool_files_changeid_fkey FOREIGN KEY (changeid) REFERENCES changes(id) ON DELETE CASCADE;
3620 -- Name: changes_pool_files_fileid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3623 ALTER TABLE ONLY changes_pool_files
3624 ADD CONSTRAINT changes_pool_files_fileid_fkey FOREIGN KEY (fileid) REFERENCES files(id) ON DELETE RESTRICT;
3628 -- Name: dsc_files_file; Type: FK CONSTRAINT; Schema: public; Owner: dak
3631 ALTER TABLE ONLY dsc_files
3632 ADD CONSTRAINT dsc_files_file FOREIGN KEY (file) REFERENCES files(id) MATCH FULL;
3636 -- Name: dsc_files_source; Type: FK CONSTRAINT; Schema: public; Owner: dak
3639 ALTER TABLE ONLY dsc_files
3640 ADD CONSTRAINT dsc_files_source FOREIGN KEY (source) REFERENCES source(id) MATCH FULL;
3644 -- Name: external_overrides_component_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3647 ALTER TABLE ONLY external_overrides
3648 ADD CONSTRAINT external_overrides_component_fkey FOREIGN KEY (component) REFERENCES component(id);
3652 -- Name: external_overrides_suite_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3655 ALTER TABLE ONLY external_overrides
3656 ADD CONSTRAINT external_overrides_suite_fkey FOREIGN KEY (suite) REFERENCES suite(id);
3660 -- Name: extra_src_references_bin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3663 ALTER TABLE ONLY extra_src_references
3664 ADD CONSTRAINT extra_src_references_bin_id_fkey FOREIGN KEY (bin_id) REFERENCES binaries(id) ON DELETE CASCADE;
3668 -- Name: extra_src_references_src_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3671 ALTER TABLE ONLY extra_src_references
3672 ADD CONSTRAINT extra_src_references_src_id_fkey FOREIGN KEY (src_id) REFERENCES source(id) ON DELETE RESTRICT;
3676 -- Name: files_location; Type: FK CONSTRAINT; Schema: public; Owner: dak
3679 ALTER TABLE ONLY files
3680 ADD CONSTRAINT files_location FOREIGN KEY (location) REFERENCES location(id) MATCH FULL;
3684 -- Name: fingerprint_binary_acl_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3687 ALTER TABLE ONLY fingerprint
3688 ADD CONSTRAINT fingerprint_binary_acl_id_fkey FOREIGN KEY (binary_acl_id) REFERENCES binary_acl(id);
3692 -- Name: fingerprint_source_acl_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3695 ALTER TABLE ONLY fingerprint
3696 ADD CONSTRAINT fingerprint_source_acl_id_fkey FOREIGN KEY (source_acl_id) REFERENCES source_acl(id);
3700 -- Name: fingerprint_uid; Type: FK CONSTRAINT; Schema: public; Owner: dak
3703 ALTER TABLE ONLY fingerprint
3704 ADD CONSTRAINT fingerprint_uid FOREIGN KEY (uid) REFERENCES uid(id) MATCH FULL;
3708 -- Name: keyring_acl_map_architecture_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3711 ALTER TABLE ONLY keyring_acl_map
3712 ADD CONSTRAINT keyring_acl_map_architecture_id_fkey FOREIGN KEY (architecture_id) REFERENCES architecture(id);
3716 -- Name: keyring_acl_map_keyring_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3719 ALTER TABLE ONLY keyring_acl_map
3720 ADD CONSTRAINT keyring_acl_map_keyring_id_fkey FOREIGN KEY (keyring_id) REFERENCES keyrings(id);
3724 -- Name: keyrings_default_binary_acl_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3727 ALTER TABLE ONLY keyrings
3728 ADD CONSTRAINT keyrings_default_binary_acl_id_fkey FOREIGN KEY (default_binary_acl_id) REFERENCES binary_acl(id);
3732 -- Name: keyrings_default_source_acl_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3735 ALTER TABLE ONLY keyrings
3736 ADD CONSTRAINT keyrings_default_source_acl_id_fkey FOREIGN KEY (default_source_acl_id) REFERENCES source_acl(id);
3740 -- Name: known_changes_approved_for_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3743 ALTER TABLE ONLY changes
3744 ADD CONSTRAINT known_changes_approved_for_fkey FOREIGN KEY (in_queue) REFERENCES policy_queue(id) ON DELETE RESTRICT;
3748 -- Name: known_changes_in_queue_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3751 ALTER TABLE ONLY changes
3752 ADD CONSTRAINT known_changes_in_queue_fkey FOREIGN KEY (in_queue) REFERENCES policy_queue(id) ON DELETE RESTRICT;
3756 -- Name: location_archive_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3759 ALTER TABLE ONLY location
3760 ADD CONSTRAINT location_archive_fkey FOREIGN KEY (archive) REFERENCES archive(id);
3764 -- Name: location_component_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3767 ALTER TABLE ONLY location
3768 ADD CONSTRAINT location_component_fkey FOREIGN KEY (component) REFERENCES component(id);
3772 -- Name: override_component; Type: FK CONSTRAINT; Schema: public; Owner: dak
3775 ALTER TABLE ONLY override
3776 ADD CONSTRAINT override_component FOREIGN KEY (component) REFERENCES component(id) MATCH FULL;
3780 -- Name: override_priority; Type: FK CONSTRAINT; Schema: public; Owner: dak
3783 ALTER TABLE ONLY override
3784 ADD CONSTRAINT override_priority FOREIGN KEY (priority) REFERENCES priority(id) MATCH FULL;
3788 -- Name: override_section; Type: FK CONSTRAINT; Schema: public; Owner: dak
3791 ALTER TABLE ONLY override
3792 ADD CONSTRAINT override_section FOREIGN KEY (section) REFERENCES section(id) MATCH FULL;
3796 -- Name: override_suite; Type: FK CONSTRAINT; Schema: public; Owner: dak
3799 ALTER TABLE ONLY override
3800 ADD CONSTRAINT override_suite FOREIGN KEY (suite) REFERENCES suite(id) MATCH FULL;
3804 -- Name: override_type; Type: FK CONSTRAINT; Schema: public; Owner: dak
3807 ALTER TABLE ONLY override
3808 ADD CONSTRAINT override_type FOREIGN KEY (type) REFERENCES override_type(id) MATCH FULL;
3812 -- Name: queue_files_fileid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3815 ALTER TABLE ONLY build_queue_files
3816 ADD CONSTRAINT queue_files_fileid_fkey FOREIGN KEY (fileid) REFERENCES files(id) ON DELETE CASCADE;
3820 -- Name: source_changedby; Type: FK CONSTRAINT; Schema: public; Owner: dak
3823 ALTER TABLE ONLY source
3824 ADD CONSTRAINT source_changedby FOREIGN KEY (changedby) REFERENCES maintainer(id) MATCH FULL;
3828 -- Name: source_file; Type: FK CONSTRAINT; Schema: public; Owner: dak
3831 ALTER TABLE ONLY source
3832 ADD CONSTRAINT source_file FOREIGN KEY (file) REFERENCES files(id) MATCH FULL;
3836 -- Name: source_maintainer; Type: FK CONSTRAINT; Schema: public; Owner: dak
3839 ALTER TABLE ONLY source
3840 ADD CONSTRAINT source_maintainer FOREIGN KEY (maintainer) REFERENCES maintainer(id) MATCH FULL;
3844 -- Name: source_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3847 ALTER TABLE ONLY source_metadata
3848 ADD CONSTRAINT source_metadata_key_id_fkey FOREIGN KEY (key_id) REFERENCES metadata_keys(key_id);
3852 -- Name: source_metadata_src_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3855 ALTER TABLE ONLY source_metadata
3856 ADD CONSTRAINT source_metadata_src_id_fkey FOREIGN KEY (src_id) REFERENCES source(id) ON DELETE CASCADE;
3860 -- Name: source_sig_fpr; Type: FK CONSTRAINT; Schema: public; Owner: dak
3863 ALTER TABLE ONLY source
3864 ADD CONSTRAINT source_sig_fpr FOREIGN KEY (sig_fpr) REFERENCES fingerprint(id) MATCH FULL;
3868 -- Name: src_associations_source; Type: FK CONSTRAINT; Schema: public; Owner: dak
3871 ALTER TABLE ONLY src_associations
3872 ADD CONSTRAINT src_associations_source FOREIGN KEY (source) REFERENCES source(id) MATCH FULL;
3876 -- Name: src_associations_suite; Type: FK CONSTRAINT; Schema: public; Owner: dak
3879 ALTER TABLE ONLY src_associations
3880 ADD CONSTRAINT src_associations_suite FOREIGN KEY (suite) REFERENCES suite(id) MATCH FULL;
3884 -- Name: src_contents_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3887 ALTER TABLE ONLY src_contents
3888 ADD CONSTRAINT src_contents_source_id_fkey FOREIGN KEY (source_id) REFERENCES source(id) ON DELETE CASCADE;
3892 -- Name: src_format_key; Type: FK CONSTRAINT; Schema: public; Owner: dak
3895 ALTER TABLE ONLY suite_src_formats
3896 ADD CONSTRAINT src_format_key FOREIGN KEY (src_format) REFERENCES src_format(id);
3900 -- Name: src_uploaders_maintainer; Type: FK CONSTRAINT; Schema: public; Owner: dak
3903 ALTER TABLE ONLY src_uploaders
3904 ADD CONSTRAINT src_uploaders_maintainer FOREIGN KEY (maintainer) REFERENCES maintainer(id) ON DELETE CASCADE;
3908 -- Name: src_uploaders_source; Type: FK CONSTRAINT; Schema: public; Owner: dak
3911 ALTER TABLE ONLY src_uploaders
3912 ADD CONSTRAINT src_uploaders_source FOREIGN KEY (source) REFERENCES source(id) ON DELETE CASCADE;
3916 -- Name: suite_architectures_architectur; Type: FK CONSTRAINT; Schema: public; Owner: dak
3919 ALTER TABLE ONLY suite_architectures
3920 ADD CONSTRAINT suite_architectures_architectur FOREIGN KEY (architecture) REFERENCES architecture(id) MATCH FULL;
3924 -- Name: suite_architectures_suite; Type: FK CONSTRAINT; Schema: public; Owner: dak
3927 ALTER TABLE ONLY suite_architectures
3928 ADD CONSTRAINT suite_architectures_suite FOREIGN KEY (suite) REFERENCES suite(id) MATCH FULL;
3932 -- Name: suite_build_queue_copy_build_queue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3935 ALTER TABLE ONLY suite_build_queue_copy
3936 ADD CONSTRAINT suite_build_queue_copy_build_queue_id_fkey FOREIGN KEY (build_queue_id) REFERENCES build_queue(id) ON DELETE RESTRICT;
3940 -- Name: suite_key; Type: FK CONSTRAINT; Schema: public; Owner: dak
3943 ALTER TABLE ONLY suite_src_formats
3944 ADD CONSTRAINT suite_key FOREIGN KEY (suite) REFERENCES suite(id);
3948 -- Name: suite_policy_queue_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3951 ALTER TABLE ONLY suite
3952 ADD CONSTRAINT suite_policy_queue_fkey FOREIGN KEY (policy_queue_id) REFERENCES policy_queue(id) ON DELETE RESTRICT;
3956 -- Name: suite_queue_copy_suite_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3959 ALTER TABLE ONLY suite_build_queue_copy
3960 ADD CONSTRAINT suite_queue_copy_suite_fkey FOREIGN KEY (suite) REFERENCES suite(id);
3964 -- Name: upload_blocks_fingerprint_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3967 ALTER TABLE ONLY upload_blocks
3968 ADD CONSTRAINT upload_blocks_fingerprint_id_fkey FOREIGN KEY (fingerprint_id) REFERENCES fingerprint(id);
3972 -- Name: upload_blocks_uid_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3975 ALTER TABLE ONLY upload_blocks
3976 ADD CONSTRAINT upload_blocks_uid_id_fkey FOREIGN KEY (uid_id) REFERENCES uid(id);
3980 -- Name: version_check_reference_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3983 ALTER TABLE ONLY version_check
3984 ADD CONSTRAINT version_check_reference_fkey FOREIGN KEY (reference) REFERENCES suite(id);
3988 -- Name: version_check_suite_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dak
3991 ALTER TABLE ONLY version_check
3992 ADD CONSTRAINT version_check_suite_fkey FOREIGN KEY (suite) REFERENCES suite(id);
3996 -- Name: audit; Type: ACL; Schema: -; Owner: dak
3999 REVOKE ALL ON SCHEMA audit FROM PUBLIC;
4000 REVOKE ALL ON SCHEMA audit FROM dak;
4001 GRANT ALL ON SCHEMA audit TO dak;
4002 GRANT USAGE ON SCHEMA audit TO PUBLIC;
4003 GRANT USAGE ON SCHEMA audit TO ftpteam;
4004 GRANT USAGE ON SCHEMA audit TO ftpmaster;
4008 -- Name: public; Type: ACL; Schema: -; Owner: postgres
4011 REVOKE ALL ON SCHEMA public FROM PUBLIC;
4012 REVOKE ALL ON SCHEMA public FROM postgres;
4013 GRANT ALL ON SCHEMA public TO postgres;
4014 GRANT ALL ON SCHEMA public TO PUBLIC;
4017 SET search_path = audit, pg_catalog;
4020 -- Name: package_changes; Type: ACL; Schema: audit; Owner: dak
4023 REVOKE ALL ON TABLE package_changes FROM PUBLIC;
4024 REVOKE ALL ON TABLE package_changes FROM dak;
4025 GRANT ALL ON TABLE package_changes TO dak;
4026 GRANT SELECT ON TABLE package_changes TO PUBLIC;
4029 SET search_path = public, pg_catalog;
4032 -- Name: bin_associations_id_seq; Type: ACL; Schema: public; Owner: dak
4035 REVOKE ALL ON SEQUENCE bin_associations_id_seq FROM PUBLIC;
4036 REVOKE ALL ON SEQUENCE bin_associations_id_seq FROM dak;
4037 GRANT ALL ON SEQUENCE bin_associations_id_seq TO dak;
4038 GRANT SELECT ON SEQUENCE bin_associations_id_seq TO PUBLIC;
4039 GRANT ALL ON SEQUENCE bin_associations_id_seq TO ftpmaster;
4043 -- Name: bin_associations; Type: ACL; Schema: public; Owner: dak
4046 REVOKE ALL ON TABLE bin_associations FROM PUBLIC;
4047 REVOKE ALL ON TABLE bin_associations FROM dak;
4048 GRANT ALL ON TABLE bin_associations TO dak;
4049 GRANT SELECT ON TABLE bin_associations TO PUBLIC;
4050 GRANT ALL ON TABLE bin_associations TO ftpmaster;
4051 GRANT DELETE ON TABLE bin_associations TO ftpteam;
4055 -- Name: binaries_id_seq; Type: ACL; Schema: public; Owner: dak
4058 REVOKE ALL ON SEQUENCE binaries_id_seq FROM PUBLIC;
4059 REVOKE ALL ON SEQUENCE binaries_id_seq FROM dak;
4060 GRANT ALL ON SEQUENCE binaries_id_seq TO dak;
4061 GRANT SELECT ON SEQUENCE binaries_id_seq TO PUBLIC;
4062 GRANT ALL ON SEQUENCE binaries_id_seq TO ftpmaster;
4066 -- Name: binaries; Type: ACL; Schema: public; Owner: dak
4069 REVOKE ALL ON TABLE binaries FROM PUBLIC;
4070 REVOKE ALL ON TABLE binaries FROM dak;
4071 GRANT ALL ON TABLE binaries TO dak;
4072 GRANT SELECT ON TABLE binaries TO PUBLIC;
4073 GRANT ALL ON TABLE binaries TO ftpmaster;
4077 -- Name: bin_associations_binaries; Type: ACL; Schema: public; Owner: dak
4080 REVOKE ALL ON TABLE bin_associations_binaries FROM PUBLIC;
4081 REVOKE ALL ON TABLE bin_associations_binaries FROM dak;
4082 GRANT ALL ON TABLE bin_associations_binaries TO dak;
4083 GRANT SELECT ON TABLE bin_associations_binaries TO ftpmaster;
4084 GRANT SELECT ON TABLE bin_associations_binaries TO PUBLIC;
4088 -- Name: source_id_seq; Type: ACL; Schema: public; Owner: dak
4091 REVOKE ALL ON SEQUENCE source_id_seq FROM PUBLIC;
4092 REVOKE ALL ON SEQUENCE source_id_seq FROM dak;
4093 GRANT ALL ON SEQUENCE source_id_seq TO dak;
4094 GRANT SELECT ON SEQUENCE source_id_seq TO PUBLIC;
4095 GRANT ALL ON SEQUENCE source_id_seq TO ftpmaster;
4099 -- Name: source; Type: ACL; Schema: public; Owner: dak
4102 REVOKE ALL ON TABLE source FROM PUBLIC;
4103 REVOKE ALL ON TABLE source FROM dak;
4104 GRANT ALL ON TABLE source TO dak;
4105 GRANT SELECT ON TABLE source TO PUBLIC;
4106 GRANT ALL ON TABLE source TO ftpmaster;
4110 -- Name: src_associations_id_seq; Type: ACL; Schema: public; Owner: dak
4113 REVOKE ALL ON SEQUENCE src_associations_id_seq FROM PUBLIC;
4114 REVOKE ALL ON SEQUENCE src_associations_id_seq FROM dak;
4115 GRANT ALL ON SEQUENCE src_associations_id_seq TO dak;
4116 GRANT SELECT ON SEQUENCE src_associations_id_seq TO PUBLIC;
4117 GRANT ALL ON SEQUENCE src_associations_id_seq TO ftpmaster;
4121 -- Name: src_associations; Type: ACL; Schema: public; Owner: dak
4124 REVOKE ALL ON TABLE src_associations FROM PUBLIC;
4125 REVOKE ALL ON TABLE src_associations FROM dak;
4126 GRANT ALL ON TABLE src_associations TO dak;
4127 GRANT SELECT ON TABLE src_associations TO PUBLIC;
4128 GRANT ALL ON TABLE src_associations TO ftpmaster;
4129 GRANT DELETE ON TABLE src_associations TO ftpteam;
4133 -- Name: src_associations_bin; Type: ACL; Schema: public; Owner: dak
4136 REVOKE ALL ON TABLE src_associations_bin FROM PUBLIC;
4137 REVOKE ALL ON TABLE src_associations_bin FROM dak;
4138 GRANT ALL ON TABLE src_associations_bin TO dak;
4139 GRANT SELECT ON TABLE src_associations_bin TO ftpmaster;
4140 GRANT SELECT ON TABLE src_associations_bin TO PUBLIC;
4144 -- Name: almost_obsolete_all_associations; Type: ACL; Schema: public; Owner: dak
4147 REVOKE ALL ON TABLE almost_obsolete_all_associations FROM PUBLIC;
4148 REVOKE ALL ON TABLE almost_obsolete_all_associations FROM dak;
4149 GRANT ALL ON TABLE almost_obsolete_all_associations TO dak;
4150 GRANT SELECT ON TABLE almost_obsolete_all_associations TO ftpmaster;
4151 GRANT SELECT ON TABLE almost_obsolete_all_associations TO PUBLIC;
4155 -- Name: any_associations_source; Type: ACL; Schema: public; Owner: dak
4158 REVOKE ALL ON TABLE any_associations_source FROM PUBLIC;
4159 REVOKE ALL ON TABLE any_associations_source FROM dak;
4160 GRANT ALL ON TABLE any_associations_source TO dak;
4161 GRANT SELECT ON TABLE any_associations_source TO ftpmaster;
4162 GRANT SELECT ON TABLE any_associations_source TO PUBLIC;
4166 -- Name: src_associations_src; Type: ACL; Schema: public; Owner: dak
4169 REVOKE ALL ON TABLE src_associations_src FROM PUBLIC;
4170 REVOKE ALL ON TABLE src_associations_src FROM dak;
4171 GRANT ALL ON TABLE src_associations_src TO dak;
4172 GRANT SELECT ON TABLE src_associations_src TO ftpmaster;
4173 GRANT SELECT ON TABLE src_associations_src TO PUBLIC;
4177 -- Name: almost_obsolete_src_associations; Type: ACL; Schema: public; Owner: dak
4180 REVOKE ALL ON TABLE almost_obsolete_src_associations FROM PUBLIC;
4181 REVOKE ALL ON TABLE almost_obsolete_src_associations FROM dak;
4182 GRANT ALL ON TABLE almost_obsolete_src_associations TO dak;
4183 GRANT SELECT ON TABLE almost_obsolete_src_associations TO ftpmaster;
4184 GRANT SELECT ON TABLE almost_obsolete_src_associations TO PUBLIC;
4188 -- Name: architecture_id_seq; Type: ACL; Schema: public; Owner: dak
4191 REVOKE ALL ON SEQUENCE architecture_id_seq FROM PUBLIC;
4192 REVOKE ALL ON SEQUENCE architecture_id_seq FROM dak;
4193 GRANT ALL ON SEQUENCE architecture_id_seq TO dak;
4194 GRANT SELECT ON SEQUENCE architecture_id_seq TO PUBLIC;
4195 GRANT ALL ON SEQUENCE architecture_id_seq TO ftpmaster;
4199 -- Name: architecture; Type: ACL; Schema: public; Owner: dak
4202 REVOKE ALL ON TABLE architecture FROM PUBLIC;
4203 REVOKE ALL ON TABLE architecture FROM dak;
4204 GRANT ALL ON TABLE architecture TO dak;
4205 GRANT SELECT ON TABLE architecture TO PUBLIC;
4206 GRANT ALL ON TABLE architecture TO ftpmaster;
4210 -- Name: archive_id_seq; Type: ACL; Schema: public; Owner: dak
4213 REVOKE ALL ON SEQUENCE archive_id_seq FROM PUBLIC;
4214 REVOKE ALL ON SEQUENCE archive_id_seq FROM dak;
4215 GRANT ALL ON SEQUENCE archive_id_seq TO dak;
4216 GRANT SELECT ON SEQUENCE archive_id_seq TO PUBLIC;
4217 GRANT ALL ON SEQUENCE archive_id_seq TO ftpmaster;
4221 -- Name: archive; Type: ACL; Schema: public; Owner: dak
4224 REVOKE ALL ON TABLE archive FROM PUBLIC;
4225 REVOKE ALL ON TABLE archive FROM dak;
4226 GRANT ALL ON TABLE archive TO dak;
4227 GRANT SELECT ON TABLE archive TO PUBLIC;
4228 GRANT ALL ON TABLE archive TO ftpmaster;
4232 -- Name: bin_contents; Type: ACL; Schema: public; Owner: dak
4235 REVOKE ALL ON TABLE bin_contents FROM PUBLIC;
4236 REVOKE ALL ON TABLE bin_contents FROM dak;
4237 GRANT ALL ON TABLE bin_contents TO dak;
4238 GRANT SELECT ON TABLE bin_contents TO PUBLIC;
4239 GRANT ALL ON TABLE bin_contents TO ftpmaster;
4243 -- Name: binaries_metadata; Type: ACL; Schema: public; Owner: dak
4246 REVOKE ALL ON TABLE binaries_metadata FROM PUBLIC;
4247 REVOKE ALL ON TABLE binaries_metadata FROM dak;
4248 GRANT ALL ON TABLE binaries_metadata TO dak;
4249 GRANT SELECT,INSERT,UPDATE ON TABLE binaries_metadata TO ftpmaster;
4250 GRANT SELECT ON TABLE binaries_metadata TO PUBLIC;
4254 -- Name: suite_id_seq; Type: ACL; Schema: public; Owner: dak
4257 REVOKE ALL ON SEQUENCE suite_id_seq FROM PUBLIC;
4258 REVOKE ALL ON SEQUENCE suite_id_seq FROM dak;
4259 GRANT ALL ON SEQUENCE suite_id_seq TO dak;
4260 GRANT SELECT ON SEQUENCE suite_id_seq TO PUBLIC;
4261 GRANT ALL ON SEQUENCE suite_id_seq TO ftpmaster;
4265 -- Name: suite; Type: ACL; Schema: public; Owner: dak
4268 REVOKE ALL ON TABLE suite FROM PUBLIC;
4269 REVOKE ALL ON TABLE suite FROM dak;
4270 GRANT ALL ON TABLE suite TO dak;
4271 GRANT SELECT ON TABLE suite TO PUBLIC;
4272 GRANT ALL ON TABLE suite TO ftpmaster;
4276 -- Name: binaries_suite_arch; Type: ACL; Schema: public; Owner: dak
4279 REVOKE ALL ON TABLE binaries_suite_arch FROM PUBLIC;
4280 REVOKE ALL ON TABLE binaries_suite_arch FROM dak;
4281 GRANT ALL ON TABLE binaries_suite_arch TO dak;
4282 GRANT SELECT ON TABLE binaries_suite_arch TO ftpmaster;
4283 GRANT SELECT ON TABLE binaries_suite_arch TO PUBLIC;
4287 -- Name: binary_acl; Type: ACL; Schema: public; Owner: dak
4290 REVOKE ALL ON TABLE binary_acl FROM PUBLIC;
4291 REVOKE ALL ON TABLE binary_acl FROM dak;
4292 GRANT ALL ON TABLE binary_acl TO dak;
4293 GRANT SELECT ON TABLE binary_acl TO PUBLIC;
4294 GRANT ALL ON TABLE binary_acl TO ftpmaster;
4298 -- Name: binary_acl_id_seq; Type: ACL; Schema: public; Owner: dak
4301 REVOKE ALL ON SEQUENCE binary_acl_id_seq FROM PUBLIC;
4302 REVOKE ALL ON SEQUENCE binary_acl_id_seq FROM dak;
4303 GRANT ALL ON SEQUENCE binary_acl_id_seq TO dak;
4304 GRANT ALL ON SEQUENCE binary_acl_id_seq TO ftpmaster;
4305 GRANT SELECT ON SEQUENCE binary_acl_id_seq TO PUBLIC;
4309 -- Name: binary_acl_map; Type: ACL; Schema: public; Owner: dak
4312 REVOKE ALL ON TABLE binary_acl_map FROM PUBLIC;
4313 REVOKE ALL ON TABLE binary_acl_map FROM dak;
4314 GRANT ALL ON TABLE binary_acl_map TO dak;
4315 GRANT SELECT ON TABLE binary_acl_map TO PUBLIC;
4316 GRANT ALL ON TABLE binary_acl_map TO ftpmaster;
4320 -- Name: binary_acl_map_id_seq; Type: ACL; Schema: public; Owner: dak
4323 REVOKE ALL ON SEQUENCE binary_acl_map_id_seq FROM PUBLIC;
4324 REVOKE ALL ON SEQUENCE binary_acl_map_id_seq FROM dak;
4325 GRANT ALL ON SEQUENCE binary_acl_map_id_seq TO dak;
4326 GRANT ALL ON SEQUENCE binary_acl_map_id_seq TO ftpmaster;
4327 GRANT SELECT ON SEQUENCE binary_acl_map_id_seq TO PUBLIC;
4331 -- Name: files_id_seq; Type: ACL; Schema: public; Owner: dak
4334 REVOKE ALL ON SEQUENCE files_id_seq FROM PUBLIC;
4335 REVOKE ALL ON SEQUENCE files_id_seq FROM dak;
4336 GRANT ALL ON SEQUENCE files_id_seq TO dak;
4337 GRANT SELECT ON SEQUENCE files_id_seq TO PUBLIC;
4338 GRANT ALL ON SEQUENCE files_id_seq TO ftpmaster;
4342 -- Name: files; Type: ACL; Schema: public; Owner: dak
4345 REVOKE ALL ON TABLE files FROM PUBLIC;
4346 REVOKE ALL ON TABLE files FROM dak;
4347 GRANT ALL ON TABLE files TO dak;
4348 GRANT SELECT ON TABLE files TO PUBLIC;
4349 GRANT ALL ON TABLE files TO ftpmaster;
4353 -- Name: location_id_seq; Type: ACL; Schema: public; Owner: dak
4356 REVOKE ALL ON SEQUENCE location_id_seq FROM PUBLIC;
4357 REVOKE ALL ON SEQUENCE location_id_seq FROM dak;
4358 GRANT ALL ON SEQUENCE location_id_seq TO dak;
4359 GRANT SELECT ON SEQUENCE location_id_seq TO PUBLIC;
4360 GRANT ALL ON SEQUENCE location_id_seq TO ftpmaster;
4364 -- Name: location; Type: ACL; Schema: public; Owner: dak
4367 REVOKE ALL ON TABLE location FROM PUBLIC;
4368 REVOKE ALL ON TABLE location FROM dak;
4369 GRANT ALL ON TABLE location TO dak;
4370 GRANT SELECT ON TABLE location TO PUBLIC;
4371 GRANT ALL ON TABLE location TO ftpmaster;
4375 -- Name: binfiles_suite_component_arch; Type: ACL; Schema: public; Owner: dak
4378 REVOKE ALL ON TABLE binfiles_suite_component_arch FROM PUBLIC;
4379 REVOKE ALL ON TABLE binfiles_suite_component_arch FROM dak;
4380 GRANT ALL ON TABLE binfiles_suite_component_arch TO dak;
4381 GRANT SELECT ON TABLE binfiles_suite_component_arch TO ftpmaster;
4382 GRANT SELECT ON TABLE binfiles_suite_component_arch TO PUBLIC;
4386 -- Name: build_queue; Type: ACL; Schema: public; Owner: dak
4389 REVOKE ALL ON TABLE build_queue FROM PUBLIC;
4390 REVOKE ALL ON TABLE build_queue FROM dak;
4391 GRANT ALL ON TABLE build_queue TO dak;
4392 GRANT SELECT ON TABLE build_queue TO PUBLIC;
4393 GRANT ALL ON TABLE build_queue TO ftpmaster;
4397 -- Name: build_queue_files; Type: ACL; Schema: public; Owner: dak
4400 REVOKE ALL ON TABLE build_queue_files FROM PUBLIC;
4401 REVOKE ALL ON TABLE build_queue_files FROM dak;
4402 GRANT ALL ON TABLE build_queue_files TO dak;
4403 GRANT SELECT ON TABLE build_queue_files TO PUBLIC;
4404 GRANT ALL ON TABLE build_queue_files TO ftpmaster;
4408 -- Name: build_queue_files_id_seq; Type: ACL; Schema: public; Owner: dak
4411 REVOKE ALL ON SEQUENCE build_queue_files_id_seq FROM PUBLIC;
4412 REVOKE ALL ON SEQUENCE build_queue_files_id_seq FROM dak;
4413 GRANT ALL ON SEQUENCE build_queue_files_id_seq TO dak;
4414 GRANT ALL ON SEQUENCE build_queue_files_id_seq TO ftpmaster;
4415 GRANT SELECT ON SEQUENCE build_queue_files_id_seq TO PUBLIC;
4419 -- Name: build_queue_id_seq; Type: ACL; Schema: public; Owner: dak
4422 REVOKE ALL ON SEQUENCE build_queue_id_seq FROM PUBLIC;
4423 REVOKE ALL ON SEQUENCE build_queue_id_seq FROM dak;
4424 GRANT ALL ON SEQUENCE build_queue_id_seq TO dak;
4425 GRANT ALL ON SEQUENCE build_queue_id_seq TO ftpmaster;
4426 GRANT SELECT ON SEQUENCE build_queue_id_seq TO PUBLIC;
4430 -- Name: build_queue_policy_files; Type: ACL; Schema: public; Owner: dak
4433 REVOKE ALL ON TABLE build_queue_policy_files FROM PUBLIC;
4434 REVOKE ALL ON TABLE build_queue_policy_files FROM dak;
4435 GRANT ALL ON TABLE build_queue_policy_files TO dak;
4436 GRANT SELECT,INSERT,UPDATE ON TABLE build_queue_policy_files TO ftpmaster;
4437 GRANT SELECT ON TABLE build_queue_policy_files TO PUBLIC;
4441 -- Name: changelogs_text; Type: ACL; Schema: public; Owner: dak
4444 REVOKE ALL ON TABLE changelogs_text FROM PUBLIC;
4445 REVOKE ALL ON TABLE changelogs_text FROM dak;
4446 GRANT ALL ON TABLE changelogs_text TO dak;
4447 GRANT SELECT ON TABLE changelogs_text TO PUBLIC;
4448 GRANT ALL ON TABLE changelogs_text TO ftpmaster;
4452 -- Name: changes; Type: ACL; Schema: public; Owner: dak
4455 REVOKE ALL ON TABLE changes FROM PUBLIC;
4456 REVOKE ALL ON TABLE changes FROM dak;
4457 GRANT ALL ON TABLE changes TO dak;
4458 GRANT ALL ON TABLE changes TO ftpmaster;
4459 GRANT SELECT ON TABLE changes TO PUBLIC;
4460 GRANT DELETE,UPDATE ON TABLE changes TO ftpteam;
4464 -- Name: changelogs; Type: ACL; Schema: public; Owner: dak
4467 REVOKE ALL ON TABLE changelogs FROM PUBLIC;
4468 REVOKE ALL ON TABLE changelogs FROM dak;
4469 GRANT ALL ON TABLE changelogs TO dak;
4470 GRANT SELECT ON TABLE changelogs TO PUBLIC;
4471 GRANT ALL ON TABLE changelogs TO ftpmaster;
4475 -- Name: changelogs_text_id_seq; Type: ACL; Schema: public; Owner: dak
4478 REVOKE ALL ON SEQUENCE changelogs_text_id_seq FROM PUBLIC;
4479 REVOKE ALL ON SEQUENCE changelogs_text_id_seq FROM dak;
4480 GRANT ALL ON SEQUENCE changelogs_text_id_seq TO dak;
4481 GRANT ALL ON SEQUENCE changelogs_text_id_seq TO ftpmaster;
4482 GRANT SELECT ON SEQUENCE changelogs_text_id_seq TO PUBLIC;
4486 -- Name: changes_id_seq; Type: ACL; Schema: public; Owner: dak
4489 REVOKE ALL ON SEQUENCE changes_id_seq FROM PUBLIC;
4490 REVOKE ALL ON SEQUENCE changes_id_seq FROM dak;
4491 GRANT ALL ON SEQUENCE changes_id_seq TO dak;
4492 GRANT ALL ON SEQUENCE changes_id_seq TO ftpmaster;
4493 GRANT SELECT ON SEQUENCE changes_id_seq TO PUBLIC;
4497 -- Name: changes_pending_binaries; Type: ACL; Schema: public; Owner: dak
4500 REVOKE ALL ON TABLE changes_pending_binaries FROM PUBLIC;
4501 REVOKE ALL ON TABLE changes_pending_binaries FROM dak;
4502 GRANT ALL ON TABLE changes_pending_binaries TO dak;
4503 GRANT SELECT ON TABLE changes_pending_binaries TO PUBLIC;
4504 GRANT ALL ON TABLE changes_pending_binaries TO ftpmaster;
4508 -- Name: changes_pending_binaries_id_seq; Type: ACL; Schema: public; Owner: dak
4511 REVOKE ALL ON SEQUENCE changes_pending_binaries_id_seq FROM PUBLIC;
4512 REVOKE ALL ON SEQUENCE changes_pending_binaries_id_seq FROM dak;
4513 GRANT ALL ON SEQUENCE changes_pending_binaries_id_seq TO dak;
4514 GRANT ALL ON SEQUENCE changes_pending_binaries_id_seq TO ftpmaster;
4515 GRANT SELECT ON SEQUENCE changes_pending_binaries_id_seq TO PUBLIC;
4519 -- Name: changes_pending_files; Type: ACL; Schema: public; Owner: dak
4522 REVOKE ALL ON TABLE changes_pending_files FROM PUBLIC;
4523 REVOKE ALL ON TABLE changes_pending_files FROM dak;
4524 GRANT ALL ON TABLE changes_pending_files TO dak;
4525 GRANT SELECT ON TABLE changes_pending_files TO PUBLIC;
4526 GRANT ALL ON TABLE changes_pending_files TO ftpmaster;
4527 GRANT DELETE ON TABLE changes_pending_files TO ftpteam;
4531 -- Name: changes_pending_files_id_seq; Type: ACL; Schema: public; Owner: dak
4534 REVOKE ALL ON SEQUENCE changes_pending_files_id_seq FROM PUBLIC;
4535 REVOKE ALL ON SEQUENCE changes_pending_files_id_seq FROM dak;
4536 GRANT ALL ON SEQUENCE changes_pending_files_id_seq TO dak;
4537 GRANT ALL ON SEQUENCE changes_pending_files_id_seq TO ftpmaster;
4538 GRANT SELECT ON SEQUENCE changes_pending_files_id_seq TO PUBLIC;
4539 GRANT USAGE ON SEQUENCE changes_pending_files_id_seq TO ftpteam;
4543 -- Name: changes_pending_files_map; Type: ACL; Schema: public; Owner: dak
4546 REVOKE ALL ON TABLE changes_pending_files_map FROM PUBLIC;
4547 REVOKE ALL ON TABLE changes_pending_files_map FROM dak;
4548 GRANT ALL ON TABLE changes_pending_files_map TO dak;
4549 GRANT SELECT,INSERT,DELETE ON TABLE changes_pending_files_map TO ftpteam;
4550 GRANT SELECT ON TABLE changes_pending_files_map TO PUBLIC;
4554 -- Name: changes_pending_source; Type: ACL; Schema: public; Owner: dak
4557 REVOKE ALL ON TABLE changes_pending_source FROM PUBLIC;
4558 REVOKE ALL ON TABLE changes_pending_source FROM dak;
4559 GRANT ALL ON TABLE changes_pending_source TO dak;
4560 GRANT SELECT ON TABLE changes_pending_source TO PUBLIC;
4561 GRANT ALL ON TABLE changes_pending_source TO ftpmaster;
4565 -- Name: changes_pending_source_files; Type: ACL; Schema: public; Owner: dak
4568 REVOKE ALL ON TABLE changes_pending_source_files FROM PUBLIC;
4569 REVOKE ALL ON TABLE changes_pending_source_files FROM dak;
4570 GRANT ALL ON TABLE changes_pending_source_files TO dak;
4571 GRANT SELECT ON TABLE changes_pending_source_files TO PUBLIC;
4572 GRANT ALL ON TABLE changes_pending_source_files TO ftpmaster;
4576 -- Name: changes_pending_source_id_seq; Type: ACL; Schema: public; Owner: dak
4579 REVOKE ALL ON SEQUENCE changes_pending_source_id_seq FROM PUBLIC;
4580 REVOKE ALL ON SEQUENCE changes_pending_source_id_seq FROM dak;
4581 GRANT ALL ON SEQUENCE changes_pending_source_id_seq TO dak;
4582 GRANT ALL ON SEQUENCE changes_pending_source_id_seq TO ftpmaster;
4583 GRANT SELECT ON SEQUENCE changes_pending_source_id_seq TO PUBLIC;
4587 -- Name: changes_pool_files; Type: ACL; Schema: public; Owner: dak
4590 REVOKE ALL ON TABLE changes_pool_files FROM PUBLIC;
4591 REVOKE ALL ON TABLE changes_pool_files FROM dak;
4592 GRANT ALL ON TABLE changes_pool_files TO dak;
4593 GRANT SELECT ON TABLE changes_pool_files TO PUBLIC;
4594 GRANT ALL ON TABLE changes_pool_files TO ftpmaster;
4595 GRANT DELETE ON TABLE changes_pool_files TO ftpteam;
4599 -- Name: component_id_seq; Type: ACL; Schema: public; Owner: dak
4602 REVOKE ALL ON SEQUENCE component_id_seq FROM PUBLIC;
4603 REVOKE ALL ON SEQUENCE component_id_seq FROM dak;
4604 GRANT ALL ON SEQUENCE component_id_seq TO dak;
4605 GRANT SELECT ON SEQUENCE component_id_seq TO PUBLIC;
4606 GRANT ALL ON SEQUENCE component_id_seq TO ftpmaster;
4610 -- Name: component; Type: ACL; Schema: public; Owner: dak
4613 REVOKE ALL ON TABLE component FROM PUBLIC;
4614 REVOKE ALL ON TABLE component FROM dak;
4615 GRANT ALL ON TABLE component TO dak;
4616 GRANT SELECT ON TABLE component TO PUBLIC;
4617 GRANT ALL ON TABLE component TO ftpmaster;
4621 -- Name: config; Type: ACL; Schema: public; Owner: dak
4624 REVOKE ALL ON TABLE config FROM PUBLIC;
4625 REVOKE ALL ON TABLE config FROM dak;
4626 GRANT ALL ON TABLE config TO dak;
4627 GRANT ALL ON TABLE config TO ftpmaster;
4628 GRANT SELECT ON TABLE config TO ftpteam;
4629 GRANT SELECT ON TABLE config TO PUBLIC;
4633 -- Name: config_id_seq; Type: ACL; Schema: public; Owner: dak
4636 REVOKE ALL ON SEQUENCE config_id_seq FROM PUBLIC;
4637 REVOKE ALL ON SEQUENCE config_id_seq FROM dak;
4638 GRANT ALL ON SEQUENCE config_id_seq TO dak;
4639 GRANT ALL ON SEQUENCE config_id_seq TO ftpmaster;
4640 GRANT SELECT ON SEQUENCE config_id_seq TO PUBLIC;
4644 -- Name: dsc_files_id_seq; Type: ACL; Schema: public; Owner: dak
4647 REVOKE ALL ON SEQUENCE dsc_files_id_seq FROM PUBLIC;
4648 REVOKE ALL ON SEQUENCE dsc_files_id_seq FROM dak;
4649 GRANT ALL ON SEQUENCE dsc_files_id_seq TO dak;
4650 GRANT SELECT ON SEQUENCE dsc_files_id_seq TO PUBLIC;
4651 GRANT ALL ON SEQUENCE dsc_files_id_seq TO ftpmaster;
4655 -- Name: dsc_files; Type: ACL; Schema: public; Owner: dak
4658 REVOKE ALL ON TABLE dsc_files FROM PUBLIC;
4659 REVOKE ALL ON TABLE dsc_files FROM dak;
4660 GRANT ALL ON TABLE dsc_files TO dak;
4661 GRANT SELECT ON TABLE dsc_files TO PUBLIC;
4662 GRANT ALL ON TABLE dsc_files TO ftpmaster;
4666 -- Name: external_overrides; Type: ACL; Schema: public; Owner: dak
4669 REVOKE ALL ON TABLE external_overrides FROM PUBLIC;
4670 REVOKE ALL ON TABLE external_overrides FROM dak;
4671 GRANT ALL ON TABLE external_overrides TO dak;
4672 GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE external_overrides TO ftpmaster;
4673 GRANT SELECT ON TABLE external_overrides TO PUBLIC;
4677 -- Name: extra_src_references; Type: ACL; Schema: public; Owner: dak
4680 REVOKE ALL ON TABLE extra_src_references FROM PUBLIC;
4681 REVOKE ALL ON TABLE extra_src_references FROM dak;
4682 GRANT ALL ON TABLE extra_src_references TO dak;
4683 GRANT SELECT,INSERT,UPDATE ON TABLE extra_src_references TO ftpmaster;
4684 GRANT SELECT ON TABLE extra_src_references TO PUBLIC;
4688 -- Name: file_arch_suite; Type: ACL; Schema: public; Owner: dak
4691 REVOKE ALL ON TABLE file_arch_suite FROM PUBLIC;
4692 REVOKE ALL ON TABLE file_arch_suite FROM dak;
4693 GRANT ALL ON TABLE file_arch_suite TO dak;
4694 GRANT ALL ON TABLE file_arch_suite TO ftpmaster;
4695 GRANT SELECT ON TABLE file_arch_suite TO PUBLIC;
4699 -- Name: fingerprint_id_seq; Type: ACL; Schema: public; Owner: dak
4702 REVOKE ALL ON SEQUENCE fingerprint_id_seq FROM PUBLIC;
4703 REVOKE ALL ON SEQUENCE fingerprint_id_seq FROM dak;
4704 GRANT ALL ON SEQUENCE fingerprint_id_seq TO dak;
4705 GRANT SELECT ON SEQUENCE fingerprint_id_seq TO PUBLIC;
4706 GRANT ALL ON SEQUENCE fingerprint_id_seq TO ftpmaster;
4710 -- Name: fingerprint; Type: ACL; Schema: public; Owner: dak
4713 REVOKE ALL ON TABLE fingerprint FROM PUBLIC;
4714 REVOKE ALL ON TABLE fingerprint FROM dak;
4715 GRANT ALL ON TABLE fingerprint TO dak;
4716 GRANT SELECT ON TABLE fingerprint TO PUBLIC;
4717 GRANT ALL ON TABLE fingerprint TO ftpmaster;
4721 -- Name: keyring_acl_map; Type: ACL; Schema: public; Owner: dak
4724 REVOKE ALL ON TABLE keyring_acl_map FROM PUBLIC;
4725 REVOKE ALL ON TABLE keyring_acl_map FROM dak;
4726 GRANT ALL ON TABLE keyring_acl_map TO dak;
4727 GRANT SELECT ON TABLE keyring_acl_map TO PUBLIC;
4728 GRANT ALL ON TABLE keyring_acl_map TO ftpmaster;
4732 -- Name: keyring_acl_map_id_seq; Type: ACL; Schema: public; Owner: dak
4735 REVOKE ALL ON SEQUENCE keyring_acl_map_id_seq FROM PUBLIC;
4736 REVOKE ALL ON SEQUENCE keyring_acl_map_id_seq FROM dak;
4737 GRANT ALL ON SEQUENCE keyring_acl_map_id_seq TO dak;
4738 GRANT ALL ON SEQUENCE keyring_acl_map_id_seq TO ftpmaster;
4739 GRANT SELECT ON SEQUENCE keyring_acl_map_id_seq TO PUBLIC;
4743 -- Name: keyrings; Type: ACL; Schema: public; Owner: dak
4746 REVOKE ALL ON TABLE keyrings FROM PUBLIC;
4747 REVOKE ALL ON TABLE keyrings FROM dak;
4748 GRANT ALL ON TABLE keyrings TO dak;
4749 GRANT SELECT ON TABLE keyrings TO PUBLIC;
4750 GRANT ALL ON TABLE keyrings TO ftpmaster;
4754 -- Name: keyrings_id_seq; Type: ACL; Schema: public; Owner: dak
4757 REVOKE ALL ON SEQUENCE keyrings_id_seq FROM PUBLIC;
4758 REVOKE ALL ON SEQUENCE keyrings_id_seq FROM dak;
4759 GRANT ALL ON SEQUENCE keyrings_id_seq TO dak;
4760 GRANT SELECT ON SEQUENCE keyrings_id_seq TO PUBLIC;
4761 GRANT ALL ON SEQUENCE keyrings_id_seq TO ftpmaster;
4765 -- Name: maintainer_id_seq; Type: ACL; Schema: public; Owner: dak
4768 REVOKE ALL ON SEQUENCE maintainer_id_seq FROM PUBLIC;
4769 REVOKE ALL ON SEQUENCE maintainer_id_seq FROM dak;
4770 GRANT ALL ON SEQUENCE maintainer_id_seq TO dak;
4771 GRANT SELECT ON SEQUENCE maintainer_id_seq TO PUBLIC;
4772 GRANT ALL ON SEQUENCE maintainer_id_seq TO ftpmaster;
4776 -- Name: maintainer; Type: ACL; Schema: public; Owner: dak
4779 REVOKE ALL ON TABLE maintainer FROM PUBLIC;
4780 REVOKE ALL ON TABLE maintainer FROM dak;
4781 GRANT ALL ON TABLE maintainer TO dak;
4782 GRANT SELECT ON TABLE maintainer TO PUBLIC;
4783 GRANT ALL ON TABLE maintainer TO ftpmaster;
4787 -- Name: metadata_keys; Type: ACL; Schema: public; Owner: dak
4790 REVOKE ALL ON TABLE metadata_keys FROM PUBLIC;
4791 REVOKE ALL ON TABLE metadata_keys FROM dak;
4792 GRANT ALL ON TABLE metadata_keys TO dak;
4793 GRANT SELECT,INSERT,UPDATE ON TABLE metadata_keys TO ftpmaster;
4794 GRANT SELECT ON TABLE metadata_keys TO PUBLIC;
4798 -- Name: metadata_keys_key_id_seq; Type: ACL; Schema: public; Owner: dak
4801 REVOKE ALL ON SEQUENCE metadata_keys_key_id_seq FROM PUBLIC;
4802 REVOKE ALL ON SEQUENCE metadata_keys_key_id_seq FROM dak;
4803 GRANT ALL ON SEQUENCE metadata_keys_key_id_seq TO dak;
4804 GRANT ALL ON SEQUENCE metadata_keys_key_id_seq TO ftpmaster;
4805 GRANT SELECT ON SEQUENCE metadata_keys_key_id_seq TO PUBLIC;
4809 -- Name: new_comments; Type: ACL; Schema: public; Owner: dak
4812 REVOKE ALL ON TABLE new_comments FROM PUBLIC;
4813 REVOKE ALL ON TABLE new_comments FROM dak;
4814 GRANT ALL ON TABLE new_comments TO dak;
4815 GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE new_comments TO ftptrainee;
4816 GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE new_comments TO ftpteam;
4817 GRANT ALL ON TABLE new_comments TO ftpmaster;
4821 -- Name: new_comments_id_seq; Type: ACL; Schema: public; Owner: dak
4824 REVOKE ALL ON SEQUENCE new_comments_id_seq FROM PUBLIC;
4825 REVOKE ALL ON SEQUENCE new_comments_id_seq FROM dak;
4826 GRANT ALL ON SEQUENCE new_comments_id_seq TO dak;
4827 GRANT SELECT,UPDATE ON SEQUENCE new_comments_id_seq TO ftptrainee;
4828 GRANT SELECT,UPDATE ON SEQUENCE new_comments_id_seq TO ftpteam;
4829 GRANT ALL ON SEQUENCE new_comments_id_seq TO ftpmaster;
4830 GRANT SELECT ON SEQUENCE new_comments_id_seq TO PUBLIC;
4834 -- Name: newest_all_associations; Type: ACL; Schema: public; Owner: dak
4837 REVOKE ALL ON TABLE newest_all_associations FROM PUBLIC;
4838 REVOKE ALL ON TABLE newest_all_associations FROM dak;
4839 GRANT ALL ON TABLE newest_all_associations TO dak;
4840 GRANT SELECT ON TABLE newest_all_associations TO ftpmaster;
4841 GRANT SELECT ON TABLE newest_all_associations TO PUBLIC;
4845 -- Name: newest_any_associations; Type: ACL; Schema: public; Owner: dak
4848 REVOKE ALL ON TABLE newest_any_associations FROM PUBLIC;
4849 REVOKE ALL ON TABLE newest_any_associations FROM dak;
4850 GRANT ALL ON TABLE newest_any_associations TO dak;
4851 GRANT SELECT ON TABLE newest_any_associations TO ftpmaster;
4852 GRANT SELECT ON TABLE newest_any_associations TO PUBLIC;
4856 -- Name: source_suite; Type: ACL; Schema: public; Owner: dak
4859 REVOKE ALL ON TABLE source_suite FROM PUBLIC;
4860 REVOKE ALL ON TABLE source_suite FROM dak;
4861 GRANT ALL ON TABLE source_suite TO dak;
4862 GRANT SELECT ON TABLE source_suite TO ftpmaster;
4863 GRANT SELECT ON TABLE source_suite TO PUBLIC;
4867 -- Name: newest_source; Type: ACL; Schema: public; Owner: dak
4870 REVOKE ALL ON TABLE newest_source FROM PUBLIC;
4871 REVOKE ALL ON TABLE newest_source FROM dak;
4872 GRANT ALL ON TABLE newest_source TO dak;
4873 GRANT SELECT ON TABLE newest_source TO ftpmaster;
4874 GRANT SELECT ON TABLE newest_source TO PUBLIC;
4878 -- Name: newest_src_association; Type: ACL; Schema: public; Owner: dak
4881 REVOKE ALL ON TABLE newest_src_association FROM PUBLIC;
4882 REVOKE ALL ON TABLE newest_src_association FROM dak;
4883 GRANT ALL ON TABLE newest_src_association TO dak;
4884 GRANT SELECT ON TABLE newest_src_association TO ftpmaster;
4885 GRANT SELECT ON TABLE newest_src_association TO PUBLIC;
4889 -- Name: obsolete_all_associations; Type: ACL; Schema: public; Owner: dak
4892 REVOKE ALL ON TABLE obsolete_all_associations FROM PUBLIC;
4893 REVOKE ALL ON TABLE obsolete_all_associations FROM dak;
4894 GRANT ALL ON TABLE obsolete_all_associations TO dak;
4895 GRANT SELECT ON TABLE obsolete_all_associations TO ftpmaster;
4896 GRANT SELECT ON TABLE obsolete_all_associations TO PUBLIC;
4900 -- Name: obsolete_any_associations; Type: ACL; Schema: public; Owner: dak
4903 REVOKE ALL ON TABLE obsolete_any_associations FROM PUBLIC;
4904 REVOKE ALL ON TABLE obsolete_any_associations FROM dak;
4905 GRANT ALL ON TABLE obsolete_any_associations TO dak;
4906 GRANT SELECT ON TABLE obsolete_any_associations TO ftpmaster;
4907 GRANT SELECT ON TABLE obsolete_any_associations TO PUBLIC;
4911 -- Name: obsolete_any_by_all_associations; Type: ACL; Schema: public; Owner: dak
4914 REVOKE ALL ON TABLE obsolete_any_by_all_associations FROM PUBLIC;
4915 REVOKE ALL ON TABLE obsolete_any_by_all_associations FROM dak;
4916 GRANT ALL ON TABLE obsolete_any_by_all_associations TO dak;
4917 GRANT SELECT ON TABLE obsolete_any_by_all_associations TO ftpmaster;
4918 GRANT SELECT ON TABLE obsolete_any_by_all_associations TO PUBLIC;
4922 -- Name: obsolete_src_associations; Type: ACL; Schema: public; Owner: dak
4925 REVOKE ALL ON TABLE obsolete_src_associations FROM PUBLIC;
4926 REVOKE ALL ON TABLE obsolete_src_associations FROM dak;
4927 GRANT ALL ON TABLE obsolete_src_associations TO dak;
4928 GRANT SELECT ON TABLE obsolete_src_associations TO ftpmaster;
4929 GRANT SELECT ON TABLE obsolete_src_associations TO PUBLIC;
4933 -- Name: override; Type: ACL; Schema: public; Owner: dak
4936 REVOKE ALL ON TABLE override FROM PUBLIC;
4937 REVOKE ALL ON TABLE override FROM dak;
4938 GRANT ALL ON TABLE override TO dak;
4939 GRANT SELECT ON TABLE override TO PUBLIC;
4940 GRANT ALL ON TABLE override TO ftpmaster;
4941 GRANT INSERT,DELETE,UPDATE ON TABLE override TO ftpteam;
4945 -- Name: override_type_id_seq; Type: ACL; Schema: public; Owner: dak
4948 REVOKE ALL ON SEQUENCE override_type_id_seq FROM PUBLIC;
4949 REVOKE ALL ON SEQUENCE override_type_id_seq FROM dak;
4950 GRANT ALL ON SEQUENCE override_type_id_seq TO dak;
4951 GRANT SELECT ON SEQUENCE override_type_id_seq TO PUBLIC;
4952 GRANT ALL ON SEQUENCE override_type_id_seq TO ftpmaster;
4956 -- Name: override_type; Type: ACL; Schema: public; Owner: dak
4959 REVOKE ALL ON TABLE override_type FROM PUBLIC;
4960 REVOKE ALL ON TABLE override_type FROM dak;
4961 GRANT ALL ON TABLE override_type TO dak;
4962 GRANT SELECT ON TABLE override_type TO PUBLIC;
4963 GRANT ALL ON TABLE override_type TO ftpmaster;
4967 -- Name: policy_queue; Type: ACL; Schema: public; Owner: dak
4970 REVOKE ALL ON TABLE policy_queue FROM PUBLIC;
4971 REVOKE ALL ON TABLE policy_queue FROM dak;
4972 GRANT ALL ON TABLE policy_queue TO dak;
4973 GRANT SELECT ON TABLE policy_queue TO PUBLIC;
4974 GRANT ALL ON TABLE policy_queue TO ftpmaster;
4978 -- Name: policy_queue_id_seq; Type: ACL; Schema: public; Owner: dak
4981 REVOKE ALL ON SEQUENCE policy_queue_id_seq FROM PUBLIC;
4982 REVOKE ALL ON SEQUENCE policy_queue_id_seq FROM dak;
4983 GRANT ALL ON SEQUENCE policy_queue_id_seq TO dak;
4984 GRANT ALL ON SEQUENCE policy_queue_id_seq TO ftpmaster;
4985 GRANT SELECT ON SEQUENCE policy_queue_id_seq TO PUBLIC;
4989 -- Name: priority_id_seq; Type: ACL; Schema: public; Owner: dak
4992 REVOKE ALL ON SEQUENCE priority_id_seq FROM PUBLIC;
4993 REVOKE ALL ON SEQUENCE priority_id_seq FROM dak;
4994 GRANT ALL ON SEQUENCE priority_id_seq TO dak;
4995 GRANT SELECT ON SEQUENCE priority_id_seq TO PUBLIC;
4996 GRANT ALL ON SEQUENCE priority_id_seq TO ftpmaster;
5000 -- Name: priority; Type: ACL; Schema: public; Owner: dak
5003 REVOKE ALL ON TABLE priority FROM PUBLIC;
5004 REVOKE ALL ON TABLE priority FROM dak;
5005 GRANT ALL ON TABLE priority TO dak;
5006 GRANT SELECT ON TABLE priority TO PUBLIC;
5007 GRANT ALL ON TABLE priority TO ftpmaster;
5011 -- Name: section_id_seq; Type: ACL; Schema: public; Owner: dak
5014 REVOKE ALL ON SEQUENCE section_id_seq FROM PUBLIC;
5015 REVOKE ALL ON SEQUENCE section_id_seq FROM dak;
5016 GRANT ALL ON SEQUENCE section_id_seq TO dak;
5017 GRANT SELECT ON SEQUENCE section_id_seq TO PUBLIC;
5018 GRANT ALL ON SEQUENCE section_id_seq TO ftpmaster;
5022 -- Name: section; Type: ACL; Schema: public; Owner: dak
5025 REVOKE ALL ON TABLE section FROM PUBLIC;
5026 REVOKE ALL ON TABLE section FROM dak;
5027 GRANT ALL ON TABLE section TO dak;
5028 GRANT SELECT ON TABLE section TO PUBLIC;
5029 GRANT ALL ON TABLE section TO ftpmaster;
5033 -- Name: source_acl; Type: ACL; Schema: public; Owner: dak
5036 REVOKE ALL ON TABLE source_acl FROM PUBLIC;
5037 REVOKE ALL ON TABLE source_acl FROM dak;
5038 GRANT ALL ON TABLE source_acl TO dak;
5039 GRANT SELECT ON TABLE source_acl TO PUBLIC;
5040 GRANT ALL ON TABLE source_acl TO ftpmaster;
5044 -- Name: source_acl_id_seq; Type: ACL; Schema: public; Owner: dak
5047 REVOKE ALL ON SEQUENCE source_acl_id_seq FROM PUBLIC;
5048 REVOKE ALL ON SEQUENCE source_acl_id_seq FROM dak;
5049 GRANT ALL ON SEQUENCE source_acl_id_seq TO dak;
5050 GRANT ALL ON SEQUENCE source_acl_id_seq TO ftpmaster;
5051 GRANT SELECT ON SEQUENCE source_acl_id_seq TO PUBLIC;
5055 -- Name: source_metadata; Type: ACL; Schema: public; Owner: dak
5058 REVOKE ALL ON TABLE source_metadata FROM PUBLIC;
5059 REVOKE ALL ON TABLE source_metadata FROM dak;
5060 GRANT ALL ON TABLE source_metadata TO dak;
5061 GRANT SELECT,INSERT,UPDATE ON TABLE source_metadata TO ftpmaster;
5062 GRANT SELECT ON TABLE source_metadata TO PUBLIC;
5066 -- Name: src_contents; Type: ACL; Schema: public; Owner: dak
5069 REVOKE ALL ON TABLE src_contents FROM PUBLIC;
5070 REVOKE ALL ON TABLE src_contents FROM dak;
5071 GRANT ALL ON TABLE src_contents TO dak;
5072 GRANT SELECT,INSERT,UPDATE ON TABLE src_contents TO ftpmaster;
5073 GRANT SELECT ON TABLE src_contents TO PUBLIC;
5077 -- Name: src_format; Type: ACL; Schema: public; Owner: dak
5080 REVOKE ALL ON TABLE src_format FROM PUBLIC;
5081 REVOKE ALL ON TABLE src_format FROM dak;
5082 GRANT ALL ON TABLE src_format TO dak;
5083 GRANT SELECT ON TABLE src_format TO PUBLIC;
5084 GRANT ALL ON TABLE src_format TO ftpmaster;
5088 -- Name: src_format_id_seq; Type: ACL; Schema: public; Owner: dak
5091 REVOKE ALL ON SEQUENCE src_format_id_seq FROM PUBLIC;
5092 REVOKE ALL ON SEQUENCE src_format_id_seq FROM dak;
5093 GRANT ALL ON SEQUENCE src_format_id_seq TO dak;
5094 GRANT ALL ON SEQUENCE src_format_id_seq TO ftpmaster;
5095 GRANT SELECT ON SEQUENCE src_format_id_seq TO PUBLIC;
5099 -- Name: src_uploaders; Type: ACL; Schema: public; Owner: dak
5102 REVOKE ALL ON TABLE src_uploaders FROM PUBLIC;
5103 REVOKE ALL ON TABLE src_uploaders FROM dak;
5104 GRANT ALL ON TABLE src_uploaders TO dak;
5105 GRANT SELECT ON TABLE src_uploaders TO PUBLIC;
5106 GRANT ALL ON TABLE src_uploaders TO ftpmaster;
5110 -- Name: src_uploaders_id_seq; Type: ACL; Schema: public; Owner: dak
5113 REVOKE ALL ON SEQUENCE src_uploaders_id_seq FROM PUBLIC;
5114 REVOKE ALL ON SEQUENCE src_uploaders_id_seq FROM dak;
5115 GRANT ALL ON SEQUENCE src_uploaders_id_seq TO dak;
5116 GRANT SELECT ON SEQUENCE src_uploaders_id_seq TO PUBLIC;
5117 GRANT ALL ON SEQUENCE src_uploaders_id_seq TO ftpmaster;
5121 -- Name: suite_architectures; Type: ACL; Schema: public; Owner: dak
5124 REVOKE ALL ON TABLE suite_architectures FROM PUBLIC;
5125 REVOKE ALL ON TABLE suite_architectures FROM dak;
5126 GRANT ALL ON TABLE suite_architectures TO dak;
5127 GRANT SELECT ON TABLE suite_architectures TO PUBLIC;
5128 GRANT ALL ON TABLE suite_architectures TO ftpmaster;
5132 -- Name: suite_arch_by_name; Type: ACL; Schema: public; Owner: dak
5135 REVOKE ALL ON TABLE suite_arch_by_name FROM PUBLIC;
5136 REVOKE ALL ON TABLE suite_arch_by_name FROM dak;
5137 GRANT ALL ON TABLE suite_arch_by_name TO dak;
5138 GRANT SELECT ON TABLE suite_arch_by_name TO PUBLIC;
5139 GRANT SELECT ON TABLE suite_arch_by_name TO ftpmaster;
5143 -- Name: suite_build_queue_copy; Type: ACL; Schema: public; Owner: dak
5146 REVOKE ALL ON TABLE suite_build_queue_copy FROM PUBLIC;
5147 REVOKE ALL ON TABLE suite_build_queue_copy FROM dak;
5148 GRANT ALL ON TABLE suite_build_queue_copy TO dak;
5149 GRANT SELECT ON TABLE suite_build_queue_copy TO PUBLIC;
5150 GRANT ALL ON TABLE suite_build_queue_copy TO ftpmaster;
5154 -- Name: suite_src_formats; Type: ACL; Schema: public; Owner: dak
5157 REVOKE ALL ON TABLE suite_src_formats FROM PUBLIC;
5158 REVOKE ALL ON TABLE suite_src_formats FROM dak;
5159 GRANT ALL ON TABLE suite_src_formats TO dak;
5160 GRANT SELECT ON TABLE suite_src_formats TO PUBLIC;
5161 GRANT ALL ON TABLE suite_src_formats TO ftpmaster;
5165 -- Name: uid_id_seq; Type: ACL; Schema: public; Owner: dak
5168 REVOKE ALL ON SEQUENCE uid_id_seq FROM PUBLIC;
5169 REVOKE ALL ON SEQUENCE uid_id_seq FROM dak;
5170 GRANT ALL ON SEQUENCE uid_id_seq TO dak;
5171 GRANT SELECT ON SEQUENCE uid_id_seq TO PUBLIC;
5172 GRANT ALL ON SEQUENCE uid_id_seq TO ftpmaster;
5176 -- Name: uid; Type: ACL; Schema: public; Owner: dak
5179 REVOKE ALL ON TABLE uid FROM PUBLIC;
5180 REVOKE ALL ON TABLE uid FROM dak;
5181 GRANT ALL ON TABLE uid TO dak;
5182 GRANT SELECT ON TABLE uid TO PUBLIC;
5183 GRANT ALL ON TABLE uid TO ftpmaster;
5187 -- Name: upload_blocks; Type: ACL; Schema: public; Owner: dak
5190 REVOKE ALL ON TABLE upload_blocks FROM PUBLIC;
5191 REVOKE ALL ON TABLE upload_blocks FROM dak;
5192 GRANT ALL ON TABLE upload_blocks TO dak;
5193 GRANT SELECT ON TABLE upload_blocks TO PUBLIC;
5194 GRANT ALL ON TABLE upload_blocks TO ftpmaster;
5198 -- Name: upload_blocks_id_seq; Type: ACL; Schema: public; Owner: dak
5201 REVOKE ALL ON SEQUENCE upload_blocks_id_seq FROM PUBLIC;
5202 REVOKE ALL ON SEQUENCE upload_blocks_id_seq FROM dak;
5203 GRANT ALL ON SEQUENCE upload_blocks_id_seq TO dak;
5204 GRANT ALL ON SEQUENCE upload_blocks_id_seq TO ftpmaster;
5205 GRANT SELECT ON SEQUENCE upload_blocks_id_seq TO PUBLIC;
5209 -- Name: version_check; Type: ACL; Schema: public; Owner: dak
5212 REVOKE ALL ON TABLE version_check FROM PUBLIC;
5213 REVOKE ALL ON TABLE version_check FROM dak;
5214 GRANT ALL ON TABLE version_check TO dak;
5215 GRANT SELECT,INSERT,UPDATE ON TABLE version_check TO ftpmaster;
5216 GRANT SELECT ON TABLE version_check TO PUBLIC;
5220 -- Name: version_checks; Type: ACL; Schema: public; Owner: dak
5223 REVOKE ALL ON TABLE version_checks FROM PUBLIC;
5224 REVOKE ALL ON TABLE version_checks FROM dak;
5225 GRANT ALL ON TABLE version_checks TO dak;
5226 GRANT SELECT ON TABLE version_checks TO PUBLIC;
5230 -- PostgreSQL database dump complete
5233 -- Set schema version
5234 INSERT INTO config (name, value) VALUES ('db_revision', 68);