· 9 years ago · Jan 21, 2017, 11:28 PM
1--- schema/base.sql 2017-01-21 23:24:17.370893417 +0000
2+++ schema/base2.sql 2017-01-21 23:24:59.378069796 +0000
3@@ -2,218 +2,309 @@
4 -- PostgreSQL database dump
5 --
6
7+-- Dumped from database version 9.5.5
8+-- Dumped by pg_dump version 9.5.5
9+
10 SET statement_timeout = 0;
11 SET lock_timeout = 0;
12 SET client_encoding = 'UTF8';
13 SET standard_conforming_strings = on;
14 SET check_function_bodies = false;
15 SET client_min_messages = warning;
16+SET row_security = off;
17+
18+--
19+-- Name: membership; Type: COMMENT; Schema: -; Owner: web
20+--
21+
22+COMMENT ON DATABASE membership IS 'URY database for EVERYTHING.';
23+
24
25 --
26--- Name: bapsplanner; Type: SCHEMA; Schema: -; Owner: myradio
27+-- Name: bapsplanner; Type: SCHEMA; Schema: -; Owner: bapsweb
28 --
29
30 CREATE SCHEMA bapsplanner;
31
32
33-ALTER SCHEMA bapsplanner OWNER TO myradio;
34+ALTER SCHEMA bapsplanner OWNER TO bapsweb;
35
36 --
37--- Name: SCHEMA bapsplanner; Type: COMMENT; Schema: -; Owner: myradio
38+-- Name: SCHEMA bapsplanner; Type: COMMENT; Schema: -; Owner: bapsweb
39 --
40
41 COMMENT ON SCHEMA bapsplanner IS 'Used by Show Planner.';
42
43
44 --
45--- Name: jukebox; Type: SCHEMA; Schema: -; Owner: myradio
46+-- Name: deploy; Type: SCHEMA; Schema: -; Owner: web
47+--
48+
49+CREATE SCHEMA deploy;
50+
51+
52+ALTER SCHEMA deploy OWNER TO web;
53+
54+--
55+-- Name: SCHEMA deploy; Type: COMMENT; Schema: -; Owner: web
56+--
57+
58+COMMENT ON SCHEMA deploy IS 'used by Studio Infomation Service. Deprecated somewhat.';
59+
60+
61+--
62+-- Name: jukebox; Type: SCHEMA; Schema: -; Owner: uryjukebox
63 --
64
65 CREATE SCHEMA jukebox;
66
67
68-ALTER SCHEMA jukebox OWNER TO myradio;
69+ALTER SCHEMA jukebox OWNER TO uryjukebox;
70
71 --
72--- Name: SCHEMA jukebox; Type: COMMENT; Schema: -; Owner: myradio
73+-- Name: SCHEMA jukebox; Type: COMMENT; Schema: -; Owner: uryjukebox
74 --
75
76 COMMENT ON SCHEMA jukebox IS 'Used by jukebox auto-music-player.';
77
78
79 --
80--- Name: mail; Type: SCHEMA; Schema: -; Owner: myradio
81+-- Name: loggerng; Type: SCHEMA; Schema: -; Owner: loggerng
82+--
83+
84+CREATE SCHEMA loggerng;
85+
86+
87+ALTER SCHEMA loggerng OWNER TO loggerng;
88+
89+--
90+-- Name: SCHEMA loggerng; Type: COMMENT; Schema: -; Owner: loggerng
91+--
92+
93+COMMENT ON SCHEMA loggerng IS 'Used by the Logger.';
94+
95+
96+--
97+-- Name: loggerng_test; Type: SCHEMA; Schema: -; Owner: loggerng_test
98+--
99+
100+CREATE SCHEMA loggerng_test;
101+
102+
103+ALTER SCHEMA loggerng_test OWNER TO loggerng_test;
104+
105+--
106+-- Name: SCHEMA loggerng_test; Type: COMMENT; Schema: -; Owner: loggerng_test
107+--
108+
109+COMMENT ON SCHEMA loggerng_test IS 'Schema for testing loggerng-server';
110+
111+
112+--
113+-- Name: mail; Type: SCHEMA; Schema: -; Owner: web
114 --
115
116 CREATE SCHEMA mail;
117
118
119-ALTER SCHEMA mail OWNER TO myradio;
120+ALTER SCHEMA mail OWNER TO web;
121
122 --
123--- Name: SCHEMA mail; Type: COMMENT; Schema: -; Owner: myradio
124+-- Name: SCHEMA mail; Type: COMMENT; Schema: -; Owner: web
125 --
126
127 COMMENT ON SCHEMA mail IS 'Mailing lists.';
128
129
130 --
131--- Name: metadata; Type: SCHEMA; Schema: -; Owner: myradio
132+-- Name: metadata; Type: SCHEMA; Schema: -; Owner: web
133 --
134
135 CREATE SCHEMA metadata;
136
137
138-ALTER SCHEMA metadata OWNER TO myradio;
139+ALTER SCHEMA metadata OWNER TO web;
140
141 --
142--- Name: SCHEMA metadata; Type: COMMENT; Schema: -; Owner: myradio
143+-- Name: SCHEMA metadata; Type: COMMENT; Schema: -; Owner: web
144 --
145
146-COMMENT ON SCHEMA metadata IS 'Metadata systems.';
147+COMMENT ON SCHEMA metadata IS 'Metadata systems. Not long for this world?';
148
149
150 --
151--- Name: music; Type: SCHEMA; Schema: -; Owner: myradio
152+-- Name: music; Type: SCHEMA; Schema: -; Owner: web
153 --
154
155 CREATE SCHEMA music;
156
157
158-ALTER SCHEMA music OWNER TO myradio;
159+ALTER SCHEMA music OWNER TO web;
160
161 --
162--- Name: SCHEMA music; Type: COMMENT; Schema: -; Owner: myradio
163+-- Name: SCHEMA music; Type: COMMENT; Schema: -; Owner: web
164 --
165
166 COMMENT ON SCHEMA music IS 'Charts and possibly other stuff too.';
167
168
169 --
170--- Name: myradio; Type: SCHEMA; Schema: -; Owner: myradio
171+-- Name: myradio; Type: SCHEMA; Schema: -; Owner: web
172 --
173
174 CREATE SCHEMA myradio;
175
176
177-ALTER SCHEMA myradio OWNER TO myradio;
178+ALTER SCHEMA myradio OWNER TO web;
179
180 --
181--- Name: myury; Type: SCHEMA; Schema: -; Owner: myradio
182+-- Name: myury; Type: SCHEMA; Schema: -; Owner: web
183 --
184
185 CREATE SCHEMA myury;
186
187
188-ALTER SCHEMA myury OWNER TO myradio;
189+ALTER SCHEMA myury OWNER TO web;
190
191 --
192--- Name: SCHEMA myury; Type: COMMENT; Schema: -; Owner: myradio
193+-- Name: SCHEMA myury; Type: COMMENT; Schema: -; Owner: web
194 --
195
196 COMMENT ON SCHEMA myury IS 'Schema for new/migrated data for the Members Internal replacement';
197
198
199 --
200--- Name: people; Type: SCHEMA; Schema: -; Owner: myradio
201+-- Name: people; Type: SCHEMA; Schema: -; Owner: web
202 --
203
204 CREATE SCHEMA people;
205
206
207-ALTER SCHEMA people OWNER TO myradio;
208+ALTER SCHEMA people OWNER TO web;
209
210 --
211--- Name: SCHEMA people; Type: COMMENT; Schema: -; Owner: myradio
212+-- Name: SCHEMA people; Type: COMMENT; Schema: -; Owner: web
213 --
214
215 COMMENT ON SCHEMA people IS 'Tables for the LeRouge Extensible Roles (Or User Groups) Engine, as well as the quotes board.';
216
217
218 --
219--- Name: schedule; Type: SCHEMA; Schema: -; Owner: myradio
220+-- Name: rapier; Type: SCHEMA; Schema: -; Owner: web
221+--
222+
223+CREATE SCHEMA rapier;
224+
225+
226+ALTER SCHEMA rapier OWNER TO web;
227+
228+--
229+-- Name: SCHEMA rapier; Type: COMMENT; Schema: -; Owner: web
230+--
231+
232+COMMENT ON SCHEMA rapier IS 'Internal information for Rapier, the API for Electronic Radio. UNUSED (Probably).';
233+
234+
235+--
236+-- Name: schedule; Type: SCHEMA; Schema: -; Owner: web
237 --
238
239 CREATE SCHEMA schedule;
240
241
242-ALTER SCHEMA schedule OWNER TO myradio;
243+ALTER SCHEMA schedule OWNER TO web;
244
245 --
246--- Name: SCHEMA schedule; Type: COMMENT; Schema: -; Owner: myradio
247+-- Name: SCHEMA schedule; Type: COMMENT; Schema: -; Owner: web
248 --
249
250-COMMENT ON SCHEMA schedule IS 'Schema for the MyRadio schedule.';
251+COMMENT ON SCHEMA schedule IS 'Schema for the URY schedule. New tables should go here, but legacy schedule tables are in the public schema under the sched_ prefix.';
252
253
254 --
255--- Name: sis2; Type: SCHEMA; Schema: -; Owner: myradio
256+-- Name: sis2; Type: SCHEMA; Schema: -; Owner: sis
257 --
258
259 CREATE SCHEMA sis2;
260
261
262-ALTER SCHEMA sis2 OWNER TO myradio;
263+ALTER SCHEMA sis2 OWNER TO sis;
264
265 --
266--- Name: SCHEMA sis2; Type: COMMENT; Schema: -; Owner: myradio
267+-- Name: SCHEMA sis2; Type: COMMENT; Schema: -; Owner: sis
268 --
269
270 COMMENT ON SCHEMA sis2 IS 'Used by Studio Infomation Service. Deprecated somewhat.';
271
272
273 --
274--- Name: tracklist; Type: SCHEMA; Schema: -; Owner: myradio
275+-- Name: smsd; Type: SCHEMA; Schema: -; Owner: xsms
276+--
277+
278+CREATE SCHEMA smsd;
279+
280+
281+ALTER SCHEMA smsd OWNER TO xsms;
282+
283+--
284+-- Name: SCHEMA smsd; Type: COMMENT; Schema: -; Owner: xsms
285+--
286+
287+COMMENT ON SCHEMA smsd IS 'Stores internal metadata for the Gammu SMS Daemon';
288+
289+
290+--
291+-- Name: tracklist; Type: SCHEMA; Schema: -; Owner: web
292 --
293
294 CREATE SCHEMA tracklist;
295
296
297-ALTER SCHEMA tracklist OWNER TO myradio;
298+ALTER SCHEMA tracklist OWNER TO web;
299
300 --
301--- Name: SCHEMA tracklist; Type: COMMENT; Schema: -; Owner: myradio
302+-- Name: SCHEMA tracklist; Type: COMMENT; Schema: -; Owner: web
303 --
304
305 COMMENT ON SCHEMA tracklist IS 'Provides a schema that logs played out tracks for PPL track returns';
306
307
308 --
309--- Name: uryplayer; Type: SCHEMA; Schema: -; Owner: myradio
310+-- Name: uryplayer; Type: SCHEMA; Schema: -; Owner: web
311 --
312
313 CREATE SCHEMA uryplayer;
314
315
316-ALTER SCHEMA uryplayer OWNER TO myradio;
317+ALTER SCHEMA uryplayer OWNER TO web;
318
319 --
320--- Name: SCHEMA uryplayer; Type: COMMENT; Schema: -; Owner: myradio
321+-- Name: SCHEMA uryplayer; Type: COMMENT; Schema: -; Owner: web
322 --
323
324 COMMENT ON SCHEMA uryplayer IS 'URY Player';
325
326
327 --
328--- Name: webcam; Type: SCHEMA; Schema: -; Owner: myradio
329+-- Name: webcam; Type: SCHEMA; Schema: -; Owner: web
330 --
331
332 CREATE SCHEMA webcam;
333
334
335-ALTER SCHEMA webcam OWNER TO myradio;
336+ALTER SCHEMA webcam OWNER TO web;
337
338 --
339--- Name: website; Type: SCHEMA; Schema: -; Owner: myradio
340+-- Name: website; Type: SCHEMA; Schema: -; Owner: web
341 --
342
343 CREATE SCHEMA website;
344
345
346-ALTER SCHEMA website OWNER TO myradio;
347+ALTER SCHEMA website OWNER TO web;
348
349 --
350--- Name: SCHEMA website; Type: COMMENT; Schema: -; Owner: myradio
351+-- Name: SCHEMA website; Type: COMMENT; Schema: -; Owner: web
352 --
353
354 COMMENT ON SCHEMA website IS 'Collection of data relating to the operation of the public-facing website.';
355@@ -233,42 +324,92 @@
356 COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
357
358
359+--
360+-- Name: unaccent; Type: EXTENSION; Schema: -; Owner:
361+--
362+
363+CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public;
364+
365+
366+--
367+-- Name: EXTENSION unaccent; Type: COMMENT; Schema: -; Owner:
368+--
369+
370+COMMENT ON EXTENSION unaccent IS 'text search dictionary that removes accents';
371+
372+
373 SET search_path = public, pg_catalog;
374
375 --
376--- Name: bapstotracklist(); Type: FUNCTION; Schema: public; Owner: myradio
377+-- Name: showtime; Type: TYPE; Schema: public; Owner: web
378 --
379
380-CREATE FUNCTION bapstotracklist() RETURNS trigger
381- LANGUAGE plpgsql
382- AS $$DECLARE
383-audid INTEGER;
384-BEGIN
385- IF ((TG_OP = 'UPDATE')
386- AND ((SELECT COUNT(*) FROM (SELECT sel.action FROM selector sel WHERE sel.action >= 4 AND sel.action <= 11 ORDER BY sel.time DESC LIMIT 1)AS seltop INNER JOIN tracklist.selbaps bsel ON (seltop.action = bsel.selaction) WHERE bsel.bapsloc = NEW."serverid" AND (NEW."timeplayed" >= (SELECT sel.time FROM selector sel ORDER BY sel.time DESC LIMIT 1) ) ) = 1 )
387- AND ((SELECT COUNT(*) FROM baps_audio ba WHERE ba.audioid = NEW."audioid" AND ba.trackid > 0 ) = 1 )
388- AND ((NEW."timestopped" - NEW."timeplayed" > '00:00:30') )
389- AND ((SELECT COUNT(*) FROM tracklist.tracklist WHERE bapsaudioid = NEW."audiologid") = 0)
390- )
391+CREATE TYPE showtime AS (
392+ unixstart integer,
393+ unixend integer,
394+ description character varying
395+);
396+
397
398- THEN
399- INSERT INTO tracklist.tracklist (source, timestart, timestop, timeslotid, bapsaudioid)
400- VALUES ('b', NEW."timeplayed", NEW."timestopped", (SELECT show_season_timeslot_id FROM schedule.show_season_timeslot WHERE start_time <= NOW() AND (start_time + duration) >= NOW()ORDER BY show_season_timeslot_id ASC LIMIT 1 ), NEW."audiologid" )
401- RETURNING audiologid INTO audid;
402- INSERT INTO tracklist.track_rec
403- VALUES ("audid", (SELECT rec.recordid FROM rec_track rec INNER JOIN baps_audio ba USING (trackid)
404- WHERE ba.audioid = NEW."audioid"), (SELECT trackid FROM baps_audio WHERE audioid = NEW."audioid"));
405+ALTER TYPE showtime OWNER TO web;
406
407+--
408+-- Name: armor(bytea); Type: FUNCTION; Schema: public; Owner: postgres
409+--
410
411- END IF;
412- RETURN NULL;
413-END $$;
414+CREATE FUNCTION armor(bytea) RETURNS text
415+ LANGUAGE c IMMUTABLE STRICT
416+ AS '$libdir/pgcrypto', 'pg_armor';
417
418
419-ALTER FUNCTION public.bapstotracklist() OWNER TO myradio;
420+ALTER FUNCTION public.armor(bytea) OWNER TO postgres;
421
422 --
423--- Name: clear_item_func(); Type: FUNCTION; Schema: public; Owner: myradio
424+-- Name: bapstotracklist(); Type: FUNCTION; Schema: public; Owner: web
425+--
426+
427+CREATE FUNCTION bapstotracklist() RETURNS trigger
428+ LANGUAGE plpgsql
429+ AS $$
430+DECLARE
431+ audid INTEGER;
432+BEGIN
433+ IF ((TG_OP = 'UPDATE')
434+ AND ((SELECT COUNT(*) FROM (SELECT sel.action FROM selector sel
435+ WHERE sel.action >= 4 AND sel.action <= 11
436+ ORDER BY sel.TIME DESC LIMIT 1) AS seltop
437+ INNER JOIN tracklist.selbaps bsel ON (seltop.action = bsel.selaction)
438+ WHERE bsel.bapsloc = NEW."serverid" AND (NEW."timeplayed" >= (SELECT sel.TIME FROM selector sel
439+ ORDER BY sel.TIME DESC
440+ LIMIT 1))) = 1)
441+ AND ((SELECT COUNT(*) FROM baps_audio ba WHERE ba.audioid = NEW."audioid" AND ba.trackid > 0) = 1)
442+ AND ((NEW."timestopped" - NEW."timeplayed" > '00:00:30'))
443+ AND ((SELECT COUNT(*) FROM tracklist.tracklist WHERE bapsaudioid = NEW."audiologid") = 0))
444+ THEN
445+ INSERT INTO tracklist.tracklist (SOURCE, timestart, timestop, timeslotid, bapsaudioid)
446+ VALUES ('b', NEW."timeplayed", NEW."timestopped", (SELECT show_season_timeslot_id FROM schedule.show_season_timeslot
447+ WHERE start_time <= NOW()
448+ AND (start_time + duration) >= NOW()
449+ AND show_season_id != 0
450+ ORDER BY show_season_timeslot_id ASC
451+ LIMIT 1),
452+ NEW."audiologid")
453+ RETURNING audiologid INTO audid;
454+ INSERT INTO tracklist.track_rec
455+ VALUES ("audid", (SELECT rec.recordid FROM rec_track rec
456+ INNER JOIN baps_audio ba USING (trackid)
457+ WHERE ba.audioid = NEW."audioid"),
458+ (SELECT trackid FROM baps_audio WHERE audioid = NEW."audioid"));
459+ END IF;
460+ RETURN NULL;
461+END;
462+$$;
463+
464+
465+ALTER FUNCTION public.bapstotracklist() OWNER TO web;
466+
467+--
468+-- Name: clear_item_func(); Type: FUNCTION; Schema: public; Owner: pgsql
469 --
470
471 CREATE FUNCTION clear_item_func() RETURNS trigger
472@@ -289,10 +430,407 @@
473 $$;
474
475
476-ALTER FUNCTION public.clear_item_func() OWNER TO myradio;
477+ALTER FUNCTION public.clear_item_func() OWNER TO pgsql;
478
479 --
480--- Name: process_gammu_text(); Type: FUNCTION; Schema: public; Owner: myradio
481+-- Name: crypt(text, text); Type: FUNCTION; Schema: public; Owner: postgres
482+--
483+
484+CREATE FUNCTION crypt(text, text) RETURNS text
485+ LANGUAGE c IMMUTABLE STRICT
486+ AS '$libdir/pgcrypto', 'pg_crypt';
487+
488+
489+ALTER FUNCTION public.crypt(text, text) OWNER TO postgres;
490+
491+--
492+-- Name: dearmor(text); Type: FUNCTION; Schema: public; Owner: postgres
493+--
494+
495+CREATE FUNCTION dearmor(text) RETURNS bytea
496+ LANGUAGE c IMMUTABLE STRICT
497+ AS '$libdir/pgcrypto', 'pg_dearmor';
498+
499+
500+ALTER FUNCTION public.dearmor(text) OWNER TO postgres;
501+
502+--
503+-- Name: decrypt(bytea, bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
504+--
505+
506+CREATE FUNCTION decrypt(bytea, bytea, text) RETURNS bytea
507+ LANGUAGE c IMMUTABLE STRICT
508+ AS '$libdir/pgcrypto', 'pg_decrypt';
509+
510+
511+ALTER FUNCTION public.decrypt(bytea, bytea, text) OWNER TO postgres;
512+
513+--
514+-- Name: decrypt_iv(bytea, bytea, bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
515+--
516+
517+CREATE FUNCTION decrypt_iv(bytea, bytea, bytea, text) RETURNS bytea
518+ LANGUAGE c IMMUTABLE STRICT
519+ AS '$libdir/pgcrypto', 'pg_decrypt_iv';
520+
521+
522+ALTER FUNCTION public.decrypt_iv(bytea, bytea, bytea, text) OWNER TO postgres;
523+
524+--
525+-- Name: digest(bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
526+--
527+
528+CREATE FUNCTION digest(bytea, text) RETURNS bytea
529+ LANGUAGE c IMMUTABLE STRICT
530+ AS '$libdir/pgcrypto', 'pg_digest';
531+
532+
533+ALTER FUNCTION public.digest(bytea, text) OWNER TO postgres;
534+
535+--
536+-- Name: digest(text, text); Type: FUNCTION; Schema: public; Owner: postgres
537+--
538+
539+CREATE FUNCTION digest(text, text) RETURNS bytea
540+ LANGUAGE c IMMUTABLE STRICT
541+ AS '$libdir/pgcrypto', 'pg_digest';
542+
543+
544+ALTER FUNCTION public.digest(text, text) OWNER TO postgres;
545+
546+--
547+-- Name: encrypt(bytea, bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
548+--
549+
550+CREATE FUNCTION encrypt(bytea, bytea, text) RETURNS bytea
551+ LANGUAGE c IMMUTABLE STRICT
552+ AS '$libdir/pgcrypto', 'pg_encrypt';
553+
554+
555+ALTER FUNCTION public.encrypt(bytea, bytea, text) OWNER TO postgres;
556+
557+--
558+-- Name: encrypt_iv(bytea, bytea, bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
559+--
560+
561+CREATE FUNCTION encrypt_iv(bytea, bytea, bytea, text) RETURNS bytea
562+ LANGUAGE c IMMUTABLE STRICT
563+ AS '$libdir/pgcrypto', 'pg_encrypt_iv';
564+
565+
566+ALTER FUNCTION public.encrypt_iv(bytea, bytea, bytea, text) OWNER TO postgres;
567+
568+--
569+-- Name: gen_random_bytes(integer); Type: FUNCTION; Schema: public; Owner: postgres
570+--
571+
572+CREATE FUNCTION gen_random_bytes(integer) RETURNS bytea
573+ LANGUAGE c STRICT
574+ AS '$libdir/pgcrypto', 'pg_random_bytes';
575+
576+
577+ALTER FUNCTION public.gen_random_bytes(integer) OWNER TO postgres;
578+
579+--
580+-- Name: gen_salt(text); Type: FUNCTION; Schema: public; Owner: postgres
581+--
582+
583+CREATE FUNCTION gen_salt(text) RETURNS text
584+ LANGUAGE c STRICT
585+ AS '$libdir/pgcrypto', 'pg_gen_salt';
586+
587+
588+ALTER FUNCTION public.gen_salt(text) OWNER TO postgres;
589+
590+--
591+-- Name: gen_salt(text, integer); Type: FUNCTION; Schema: public; Owner: postgres
592+--
593+
594+CREATE FUNCTION gen_salt(text, integer) RETURNS text
595+ LANGUAGE c STRICT
596+ AS '$libdir/pgcrypto', 'pg_gen_salt_rounds';
597+
598+
599+ALTER FUNCTION public.gen_salt(text, integer) OWNER TO postgres;
600+
601+--
602+-- Name: hmac(bytea, bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
603+--
604+
605+CREATE FUNCTION hmac(bytea, bytea, text) RETURNS bytea
606+ LANGUAGE c IMMUTABLE STRICT
607+ AS '$libdir/pgcrypto', 'pg_hmac';
608+
609+
610+ALTER FUNCTION public.hmac(bytea, bytea, text) OWNER TO postgres;
611+
612+--
613+-- Name: hmac(text, text, text); Type: FUNCTION; Schema: public; Owner: postgres
614+--
615+
616+CREATE FUNCTION hmac(text, text, text) RETURNS bytea
617+ LANGUAGE c IMMUTABLE STRICT
618+ AS '$libdir/pgcrypto', 'pg_hmac';
619+
620+
621+ALTER FUNCTION public.hmac(text, text, text) OWNER TO postgres;
622+
623+--
624+-- Name: pastshows(integer, integer); Type: FUNCTION; Schema: public; Owner: web
625+--
626+
627+CREATE FUNCTION pastshows(integer, integer) RETURNS SETOF showtime
628+ LANGUAGE sql
629+ AS $_$
630+SELECT
631+ CAST(EXTRACT(EPOCH FROM st.starttime) AS integer) AS unixstart,
632+ CAST(EXTRACT(EPOCH FROM st.endtime) AS integer) AS unixend,
633+ se.summary || ' by ' ||
634+ array_to_string ( array(
635+ SELECT substring(inside_m.fname,1,1)||'. '|| inside_m.sname
636+ FROM sched_timeslot inside_st
637+ NATURAL JOIN sched_entry inside_se
638+ NATURAL JOIN sched_memberentry inside_sm
639+ NATURAL JOIN member inside_m
640+ WHERE inside_st.starttime >= timestamp 'epoch' + $1 * INTERVAL '1 second'
641+ AND inside_st.endtime <= timestamp 'epoch' + $2 * INTERVAL '1 second'
642+ AND inside_st.timeslotid = st.timeslotid
643+ ), ', ') AS description
644+FROM sched_timeslot st
645+ NATURAL JOIN sched_entry se
646+ NATURAL JOIN sched_memberentry sm
647+ NATURAL JOIN member m
648+WHERE st.starttime >= timestamp 'epoch' + $1 * INTERVAL '1 second'
649+ AND st.endtime <= timestamp 'epoch' + $2 * INTERVAL '1 second'
650+GROUP BY st.timeslotid,se.summary,st.starttime,st.endtime
651+ORDER BY st.starttime;
652+$_$;
653+
654+
655+ALTER FUNCTION public.pastshows(integer, integer) OWNER TO web;
656+
657+--
658+-- Name: pgp_key_id(bytea); Type: FUNCTION; Schema: public; Owner: postgres
659+--
660+
661+CREATE FUNCTION pgp_key_id(bytea) RETURNS text
662+ LANGUAGE c IMMUTABLE STRICT
663+ AS '$libdir/pgcrypto', 'pgp_key_id_w';
664+
665+
666+ALTER FUNCTION public.pgp_key_id(bytea) OWNER TO postgres;
667+
668+--
669+-- Name: pgp_pub_decrypt(bytea, bytea); Type: FUNCTION; Schema: public; Owner: postgres
670+--
671+
672+CREATE FUNCTION pgp_pub_decrypt(bytea, bytea) RETURNS text
673+ LANGUAGE c IMMUTABLE STRICT
674+ AS '$libdir/pgcrypto', 'pgp_pub_decrypt_text';
675+
676+
677+ALTER FUNCTION public.pgp_pub_decrypt(bytea, bytea) OWNER TO postgres;
678+
679+--
680+-- Name: pgp_pub_decrypt(bytea, bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
681+--
682+
683+CREATE FUNCTION pgp_pub_decrypt(bytea, bytea, text) RETURNS text
684+ LANGUAGE c IMMUTABLE STRICT
685+ AS '$libdir/pgcrypto', 'pgp_pub_decrypt_text';
686+
687+
688+ALTER FUNCTION public.pgp_pub_decrypt(bytea, bytea, text) OWNER TO postgres;
689+
690+--
691+-- Name: pgp_pub_decrypt(bytea, bytea, text, text); Type: FUNCTION; Schema: public; Owner: postgres
692+--
693+
694+CREATE FUNCTION pgp_pub_decrypt(bytea, bytea, text, text) RETURNS text
695+ LANGUAGE c IMMUTABLE STRICT
696+ AS '$libdir/pgcrypto', 'pgp_pub_decrypt_text';
697+
698+
699+ALTER FUNCTION public.pgp_pub_decrypt(bytea, bytea, text, text) OWNER TO postgres;
700+
701+--
702+-- Name: pgp_pub_decrypt_bytea(bytea, bytea); Type: FUNCTION; Schema: public; Owner: postgres
703+--
704+
705+CREATE FUNCTION pgp_pub_decrypt_bytea(bytea, bytea) RETURNS bytea
706+ LANGUAGE c IMMUTABLE STRICT
707+ AS '$libdir/pgcrypto', 'pgp_pub_decrypt_bytea';
708+
709+
710+ALTER FUNCTION public.pgp_pub_decrypt_bytea(bytea, bytea) OWNER TO postgres;
711+
712+--
713+-- Name: pgp_pub_decrypt_bytea(bytea, bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
714+--
715+
716+CREATE FUNCTION pgp_pub_decrypt_bytea(bytea, bytea, text) RETURNS bytea
717+ LANGUAGE c IMMUTABLE STRICT
718+ AS '$libdir/pgcrypto', 'pgp_pub_decrypt_bytea';
719+
720+
721+ALTER FUNCTION public.pgp_pub_decrypt_bytea(bytea, bytea, text) OWNER TO postgres;
722+
723+--
724+-- Name: pgp_pub_decrypt_bytea(bytea, bytea, text, text); Type: FUNCTION; Schema: public; Owner: postgres
725+--
726+
727+CREATE FUNCTION pgp_pub_decrypt_bytea(bytea, bytea, text, text) RETURNS bytea
728+ LANGUAGE c IMMUTABLE STRICT
729+ AS '$libdir/pgcrypto', 'pgp_pub_decrypt_bytea';
730+
731+
732+ALTER FUNCTION public.pgp_pub_decrypt_bytea(bytea, bytea, text, text) OWNER TO postgres;
733+
734+--
735+-- Name: pgp_pub_encrypt(text, bytea); Type: FUNCTION; Schema: public; Owner: postgres
736+--
737+
738+CREATE FUNCTION pgp_pub_encrypt(text, bytea) RETURNS bytea
739+ LANGUAGE c STRICT
740+ AS '$libdir/pgcrypto', 'pgp_pub_encrypt_text';
741+
742+
743+ALTER FUNCTION public.pgp_pub_encrypt(text, bytea) OWNER TO postgres;
744+
745+--
746+-- Name: pgp_pub_encrypt(text, bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
747+--
748+
749+CREATE FUNCTION pgp_pub_encrypt(text, bytea, text) RETURNS bytea
750+ LANGUAGE c STRICT
751+ AS '$libdir/pgcrypto', 'pgp_pub_encrypt_text';
752+
753+
754+ALTER FUNCTION public.pgp_pub_encrypt(text, bytea, text) OWNER TO postgres;
755+
756+--
757+-- Name: pgp_pub_encrypt_bytea(bytea, bytea); Type: FUNCTION; Schema: public; Owner: postgres
758+--
759+
760+CREATE FUNCTION pgp_pub_encrypt_bytea(bytea, bytea) RETURNS bytea
761+ LANGUAGE c STRICT
762+ AS '$libdir/pgcrypto', 'pgp_pub_encrypt_bytea';
763+
764+
765+ALTER FUNCTION public.pgp_pub_encrypt_bytea(bytea, bytea) OWNER TO postgres;
766+
767+--
768+-- Name: pgp_pub_encrypt_bytea(bytea, bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
769+--
770+
771+CREATE FUNCTION pgp_pub_encrypt_bytea(bytea, bytea, text) RETURNS bytea
772+ LANGUAGE c STRICT
773+ AS '$libdir/pgcrypto', 'pgp_pub_encrypt_bytea';
774+
775+
776+ALTER FUNCTION public.pgp_pub_encrypt_bytea(bytea, bytea, text) OWNER TO postgres;
777+
778+--
779+-- Name: pgp_sym_decrypt(bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
780+--
781+
782+CREATE FUNCTION pgp_sym_decrypt(bytea, text) RETURNS text
783+ LANGUAGE c IMMUTABLE STRICT
784+ AS '$libdir/pgcrypto', 'pgp_sym_decrypt_text';
785+
786+
787+ALTER FUNCTION public.pgp_sym_decrypt(bytea, text) OWNER TO postgres;
788+
789+--
790+-- Name: pgp_sym_decrypt(bytea, text, text); Type: FUNCTION; Schema: public; Owner: postgres
791+--
792+
793+CREATE FUNCTION pgp_sym_decrypt(bytea, text, text) RETURNS text
794+ LANGUAGE c IMMUTABLE STRICT
795+ AS '$libdir/pgcrypto', 'pgp_sym_decrypt_text';
796+
797+
798+ALTER FUNCTION public.pgp_sym_decrypt(bytea, text, text) OWNER TO postgres;
799+
800+--
801+-- Name: pgp_sym_decrypt_bytea(bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
802+--
803+
804+CREATE FUNCTION pgp_sym_decrypt_bytea(bytea, text) RETURNS bytea
805+ LANGUAGE c IMMUTABLE STRICT
806+ AS '$libdir/pgcrypto', 'pgp_sym_decrypt_bytea';
807+
808+
809+ALTER FUNCTION public.pgp_sym_decrypt_bytea(bytea, text) OWNER TO postgres;
810+
811+--
812+-- Name: pgp_sym_decrypt_bytea(bytea, text, text); Type: FUNCTION; Schema: public; Owner: postgres
813+--
814+
815+CREATE FUNCTION pgp_sym_decrypt_bytea(bytea, text, text) RETURNS bytea
816+ LANGUAGE c IMMUTABLE STRICT
817+ AS '$libdir/pgcrypto', 'pgp_sym_decrypt_bytea';
818+
819+
820+ALTER FUNCTION public.pgp_sym_decrypt_bytea(bytea, text, text) OWNER TO postgres;
821+
822+--
823+-- Name: pgp_sym_encrypt(text, text); Type: FUNCTION; Schema: public; Owner: postgres
824+--
825+
826+CREATE FUNCTION pgp_sym_encrypt(text, text) RETURNS bytea
827+ LANGUAGE c STRICT
828+ AS '$libdir/pgcrypto', 'pgp_sym_encrypt_text';
829+
830+
831+ALTER FUNCTION public.pgp_sym_encrypt(text, text) OWNER TO postgres;
832+
833+--
834+-- Name: pgp_sym_encrypt(text, text, text); Type: FUNCTION; Schema: public; Owner: postgres
835+--
836+
837+CREATE FUNCTION pgp_sym_encrypt(text, text, text) RETURNS bytea
838+ LANGUAGE c STRICT
839+ AS '$libdir/pgcrypto', 'pgp_sym_encrypt_text';
840+
841+
842+ALTER FUNCTION public.pgp_sym_encrypt(text, text, text) OWNER TO postgres;
843+
844+--
845+-- Name: pgp_sym_encrypt_bytea(bytea, text); Type: FUNCTION; Schema: public; Owner: postgres
846+--
847+
848+CREATE FUNCTION pgp_sym_encrypt_bytea(bytea, text) RETURNS bytea
849+ LANGUAGE c STRICT
850+ AS '$libdir/pgcrypto', 'pgp_sym_encrypt_bytea';
851+
852+
853+ALTER FUNCTION public.pgp_sym_encrypt_bytea(bytea, text) OWNER TO postgres;
854+
855+--
856+-- Name: pgp_sym_encrypt_bytea(bytea, text, text); Type: FUNCTION; Schema: public; Owner: postgres
857+--
858+
859+CREATE FUNCTION pgp_sym_encrypt_bytea(bytea, text, text) RETURNS bytea
860+ LANGUAGE c STRICT
861+ AS '$libdir/pgcrypto', 'pgp_sym_encrypt_bytea';
862+
863+
864+ALTER FUNCTION public.pgp_sym_encrypt_bytea(bytea, text, text) OWNER TO postgres;
865+
866+--
867+-- Name: plpgsql_call_handler(); Type: FUNCTION; Schema: public; Owner: postgres
868+--
869+
870+CREATE FUNCTION plpgsql_call_handler() RETURNS language_handler
871+ LANGUAGE c
872+ AS '$libdir/plpgsql', 'plpgsql_call_handler';
873+
874+
875+ALTER FUNCTION public.plpgsql_call_handler() OWNER TO postgres;
876+
877+--
878+-- Name: process_gammu_text(); Type: FUNCTION; Schema: public; Owner: web
879 --
880
881 CREATE FUNCTION process_gammu_text() RETURNS trigger
882@@ -301,7 +839,7 @@
883 IF (TG_OP = 'INSERT') THEN
884 IF (SELECT show_season_timeslot_id FROM schedule.show_season_timeslot WHERE start_time <= NOW() AND (start_time + duration) >= NOW() ORDER BY show_season_timeslot_id ASC LIMIT 1) IS NOT NULL THEN
885 INSERT INTO sis2.messages (commtypeid, timeslotid, sender, subject, content, statusid)
886-
887+
888 VALUES (2, (SELECT show_season_timeslot_id FROM schedule.show_season_timeslot WHERE start_time <= NOW() AND (start_time + duration) >= NOW() ORDER BY show_season_timeslot_id ASC LIMIT 1), NEW."SenderNumber", NEW."TextDecoded", NEW."TextDecoded", 1);
889 RETURN NEW;
890 ELSE
891@@ -315,10 +853,10 @@
892 $$;
893
894
895-ALTER FUNCTION public.process_gammu_text() OWNER TO myradio;
896+ALTER FUNCTION public.process_gammu_text() OWNER TO web;
897
898 --
899--- Name: set_shelfcode_func(); Type: FUNCTION; Schema: public; Owner: myradio
900+-- Name: set_shelfcode_func(); Type: FUNCTION; Schema: public; Owner: pgsql
901 --
902
903 CREATE FUNCTION set_shelfcode_func() RETURNS trigger
904@@ -327,8 +865,10 @@
905 myshelfnumber integer DEFAULT 0;
906 recordrow RECORD;
907 BEGIN
908+
909 IF ((NEW.media='7' OR NEW.media='2') AND NEW.format='a') THEN
910 FOR recordrow IN SELECT * FROM rec_record WHERE media=NEW.media AND (format='7' OR format='2') AND shelfletter=NEW.shelfletter ORDER BY shelfnumber LOOP
911+
912 IF recordrow.shelfnumber > myshelfnumber+1 THEN
913 EXIT;
914 END IF;
915@@ -348,28 +888,28 @@
916 $$;
917
918
919-ALTER FUNCTION public.set_shelfcode_func() OWNER TO myradio;
920+ALTER FUNCTION public.set_shelfcode_func() OWNER TO pgsql;
921
922 --
923--- Name: update_timestamp(); Type: FUNCTION; Schema: public; Owner: myradio
924+-- Name: update_timestamp(); Type: FUNCTION; Schema: public; Owner: web
925 --
926
927 CREATE FUNCTION update_timestamp() RETURNS trigger
928 LANGUAGE plpgsql
929- AS $$
930- BEGIN
931- NEW."UpdatedInDB" := LOCALTIMESTAMP(0);
932- RETURN NEW;
933- END;
934+ AS $$
935+ BEGIN
936+ NEW."UpdatedInDB" := LOCALTIMESTAMP(0);
937+ RETURN NEW;
938+ END;
939 $$;
940
941
942-ALTER FUNCTION public.update_timestamp() OWNER TO myradio;
943+ALTER FUNCTION public.update_timestamp() OWNER TO web;
944
945 SET search_path = bapsplanner, pg_catalog;
946
947 --
948--- Name: auto_playlists_autoplaylistid_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: myradio
949+-- Name: auto_playlists_autoplaylistid_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: web
950 --
951
952 CREATE SEQUENCE auto_playlists_autoplaylistid_seq
953@@ -380,14 +920,14 @@
954 CACHE 1;
955
956
957-ALTER TABLE bapsplanner.auto_playlists_autoplaylistid_seq OWNER TO myradio;
958+ALTER TABLE auto_playlists_autoplaylistid_seq OWNER TO web;
959
960 SET default_tablespace = '';
961
962 SET default_with_oids = false;
963
964 --
965--- Name: auto_playlists; Type: TABLE; Schema: bapsplanner; Owner: myradio; Tablespace:
966+-- Name: auto_playlists; Type: TABLE; Schema: bapsplanner; Owner: postgres
967 --
968
969 CREATE TABLE auto_playlists (
970@@ -397,40 +937,33 @@
971 );
972
973
974-ALTER TABLE bapsplanner.auto_playlists OWNER TO myradio;
975+ALTER TABLE auto_playlists OWNER TO postgres;
976
977 --
978--- Name: client_ids_client_id_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: myradio
979+-- Name: client_ids; Type: TABLE; Schema: bapsplanner; Owner: web
980 --
981
982-CREATE SEQUENCE client_ids_client_id_seq
983- START WITH 1
984- INCREMENT BY 1
985- NO MINVALUE
986- NO MAXVALUE
987- CACHE 1;
988+CREATE TABLE client_ids (
989+ client_id integer NOT NULL,
990+ show_season_timeslot_id integer,
991+ session_id character varying(64)
992+);
993
994
995-ALTER TABLE bapsplanner.client_ids_client_id_seq OWNER TO myradio;
996+ALTER TABLE client_ids OWNER TO web;
997
998 --
999--- Name: client_ids; Type: TABLE; Schema: bapsplanner; Owner: myradio; Tablespace:
1000+-- Name: TABLE client_ids; Type: COMMENT; Schema: bapsplanner; Owner: web
1001 --
1002
1003-CREATE TABLE client_ids (
1004- client_id integer DEFAULT nextval('client_ids_client_id_seq'::regclass) NOT NULL,
1005- show_season_timeslot_id integer,
1006- session_id character varying(64)
1007-);
1008-
1009+COMMENT ON TABLE client_ids IS 'Enables tracking of individual windows instead of sessions - a session may have more than one window open.';
1010
1011-ALTER TABLE bapsplanner.client_ids OWNER TO myradio;
1012
1013 --
1014--- Name: managed_items_manageditemid_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: myradio
1015+-- Name: client_ids_client_id_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: web
1016 --
1017
1018-CREATE SEQUENCE managed_items_manageditemid_seq
1019+CREATE SEQUENCE client_ids_client_id_seq
1020 START WITH 1
1021 INCREMENT BY 1
1022 NO MINVALUE
1023@@ -438,14 +971,21 @@
1024 CACHE 1;
1025
1026
1027-ALTER TABLE bapsplanner.managed_items_manageditemid_seq OWNER TO myradio;
1028+ALTER TABLE client_ids_client_id_seq OWNER TO web;
1029
1030 --
1031--- Name: managed_items; Type: TABLE; Schema: bapsplanner; Owner: myradio; Tablespace:
1032+-- Name: client_ids_client_id_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: web
1033+--
1034+
1035+ALTER SEQUENCE client_ids_client_id_seq OWNED BY client_ids.client_id;
1036+
1037+
1038+--
1039+-- Name: managed_items; Type: TABLE; Schema: bapsplanner; Owner: web
1040 --
1041
1042 CREATE TABLE managed_items (
1043- manageditemid integer DEFAULT nextval('managed_items_manageditemid_seq'::regclass) NOT NULL,
1044+ manageditemid integer NOT NULL,
1045 managedplaylistid integer NOT NULL,
1046 title character varying NOT NULL,
1047 length time without time zone,
1048@@ -455,10 +995,31 @@
1049 );
1050
1051
1052-ALTER TABLE bapsplanner.managed_items OWNER TO myradio;
1053+ALTER TABLE managed_items OWNER TO web;
1054+
1055+--
1056+-- Name: managed_items_manageditemid_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: web
1057+--
1058+
1059+CREATE SEQUENCE managed_items_manageditemid_seq
1060+ START WITH 1
1061+ INCREMENT BY 1
1062+ NO MINVALUE
1063+ NO MAXVALUE
1064+ CACHE 1;
1065+
1066+
1067+ALTER TABLE managed_items_manageditemid_seq OWNER TO web;
1068+
1069+--
1070+-- Name: managed_items_manageditemid_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: web
1071+--
1072+
1073+ALTER SEQUENCE managed_items_manageditemid_seq OWNED BY managed_items.manageditemid;
1074+
1075
1076 --
1077--- Name: managed_items_managedplaylistid_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: myradio
1078+-- Name: managed_items_managedplaylistid_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: web
1079 --
1080
1081 CREATE SEQUENCE managed_items_managedplaylistid_seq
1082@@ -469,17 +1030,17 @@
1083 CACHE 1;
1084
1085
1086-ALTER TABLE bapsplanner.managed_items_managedplaylistid_seq OWNER TO myradio;
1087+ALTER TABLE managed_items_managedplaylistid_seq OWNER TO web;
1088
1089 --
1090--- Name: managed_items_managedplaylistid_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: myradio
1091+-- Name: managed_items_managedplaylistid_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: web
1092 --
1093
1094 ALTER SEQUENCE managed_items_managedplaylistid_seq OWNED BY managed_items.managedplaylistid;
1095
1096
1097 --
1098--- Name: managed_playlists; Type: TABLE; Schema: bapsplanner; Owner: myradio; Tablespace:
1099+-- Name: managed_playlists; Type: TABLE; Schema: bapsplanner; Owner: web
1100 --
1101
1102 CREATE TABLE managed_playlists (
1103@@ -490,17 +1051,17 @@
1104 );
1105
1106
1107-ALTER TABLE bapsplanner.managed_playlists OWNER TO myradio;
1108+ALTER TABLE managed_playlists OWNER TO web;
1109
1110 --
1111--- Name: COLUMN managed_playlists.item_ttl; Type: COMMENT; Schema: bapsplanner; Owner: myradio
1112+-- Name: COLUMN managed_playlists.item_ttl; Type: COMMENT; Schema: bapsplanner; Owner: web
1113 --
1114
1115 COMMENT ON COLUMN managed_playlists.item_ttl IS 'The default period of time an item in this playlist will live for, in seconds. A value of NULL will not expire.';
1116
1117
1118 --
1119--- Name: managed_playlists_managedplaylistid_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: myradio
1120+-- Name: managed_playlists_managedplaylistid_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: web
1121 --
1122
1123 CREATE SEQUENCE managed_playlists_managedplaylistid_seq
1124@@ -511,17 +1072,17 @@
1125 CACHE 1;
1126
1127
1128-ALTER TABLE bapsplanner.managed_playlists_managedplaylistid_seq OWNER TO myradio;
1129+ALTER TABLE managed_playlists_managedplaylistid_seq OWNER TO web;
1130
1131 --
1132--- Name: managed_playlists_managedplaylistid_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: myradio
1133+-- Name: managed_playlists_managedplaylistid_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: web
1134 --
1135
1136 ALTER SEQUENCE managed_playlists_managedplaylistid_seq OWNED BY managed_playlists.managedplaylistid;
1137
1138
1139 --
1140--- Name: managed_user_items; Type: TABLE; Schema: bapsplanner; Owner: myradio; Tablespace:
1141+-- Name: managed_user_items; Type: TABLE; Schema: bapsplanner; Owner: web
1142 --
1143
1144 CREATE TABLE managed_user_items (
1145@@ -533,10 +1094,10 @@
1146 );
1147
1148
1149-ALTER TABLE bapsplanner.managed_user_items OWNER TO myradio;
1150+ALTER TABLE managed_user_items OWNER TO web;
1151
1152 --
1153--- Name: secure_play_token; Type: TABLE; Schema: bapsplanner; Owner: myradio; Tablespace:
1154+-- Name: secure_play_token; Type: TABLE; Schema: bapsplanner; Owner: web
1155 --
1156
1157 CREATE TABLE secure_play_token (
1158@@ -547,17 +1108,17 @@
1159 );
1160
1161
1162-ALTER TABLE bapsplanner.secure_play_token OWNER TO myradio;
1163+ALTER TABLE secure_play_token OWNER TO web;
1164
1165 --
1166--- Name: TABLE secure_play_token; Type: COMMENT; Schema: bapsplanner; Owner: myradio
1167+-- Name: TABLE secure_play_token; Type: COMMENT; Schema: bapsplanner; Owner: web
1168 --
1169
1170 COMMENT ON TABLE secure_play_token IS 'Stores ''tokens'' that allow a user to play a file - once the file is played the token is removed preventing downloads or sharing.';
1171
1172
1173 --
1174--- Name: timeslot_change_ops; Type: TABLE; Schema: bapsplanner; Owner: myradio; Tablespace:
1175+-- Name: timeslot_change_ops; Type: TABLE; Schema: bapsplanner; Owner: web
1176 --
1177
1178 CREATE TABLE timeslot_change_ops (
1179@@ -568,17 +1129,17 @@
1180 );
1181
1182
1183-ALTER TABLE bapsplanner.timeslot_change_ops OWNER TO myradio;
1184+ALTER TABLE timeslot_change_ops OWNER TO web;
1185
1186 --
1187--- Name: TABLE timeslot_change_ops; Type: COMMENT; Schema: bapsplanner; Owner: myradio
1188+-- Name: TABLE timeslot_change_ops; Type: COMMENT; Schema: bapsplanner; Owner: web
1189 --
1190
1191 COMMENT ON TABLE timeslot_change_ops IS 'Stores changes to a show plan in the Planner''s standard JSON Operation Notation (JSONON)';
1192
1193
1194 --
1195--- Name: timeslot_change_ops_timeslot_change_set_id_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: myradio
1196+-- Name: timeslot_change_ops_timeslot_change_set_id_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: web
1197 --
1198
1199 CREATE SEQUENCE timeslot_change_ops_timeslot_change_set_id_seq
1200@@ -589,17 +1150,17 @@
1201 CACHE 1;
1202
1203
1204-ALTER TABLE bapsplanner.timeslot_change_ops_timeslot_change_set_id_seq OWNER TO myradio;
1205+ALTER TABLE timeslot_change_ops_timeslot_change_set_id_seq OWNER TO web;
1206
1207 --
1208--- Name: timeslot_change_ops_timeslot_change_set_id_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: myradio
1209+-- Name: timeslot_change_ops_timeslot_change_set_id_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: web
1210 --
1211
1212 ALTER SEQUENCE timeslot_change_ops_timeslot_change_set_id_seq OWNED BY timeslot_change_ops.timeslot_change_set_id;
1213
1214
1215 --
1216--- Name: timeslot_items; Type: TABLE; Schema: bapsplanner; Owner: myradio; Tablespace:
1217+-- Name: timeslot_items; Type: TABLE; Schema: bapsplanner; Owner: web
1218 --
1219
1220 CREATE TABLE timeslot_items (
1221@@ -614,10 +1175,10 @@
1222 );
1223
1224
1225-ALTER TABLE bapsplanner.timeslot_items OWNER TO myradio;
1226+ALTER TABLE timeslot_items OWNER TO web;
1227
1228 --
1229--- Name: timeslot_items_timeslot_item_id_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: myradio
1230+-- Name: timeslot_items_timeslot_item_id_seq; Type: SEQUENCE; Schema: bapsplanner; Owner: web
1231 --
1232
1233 CREATE SEQUENCE timeslot_items_timeslot_item_id_seq
1234@@ -628,19 +1189,105 @@
1235 CACHE 1;
1236
1237
1238-ALTER TABLE bapsplanner.timeslot_items_timeslot_item_id_seq OWNER TO myradio;
1239+ALTER TABLE timeslot_items_timeslot_item_id_seq OWNER TO web;
1240
1241 --
1242--- Name: timeslot_items_timeslot_item_id_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: myradio
1243+-- Name: timeslot_items_timeslot_item_id_seq; Type: SEQUENCE OWNED BY; Schema: bapsplanner; Owner: web
1244 --
1245
1246 ALTER SEQUENCE timeslot_items_timeslot_item_id_seq OWNED BY timeslot_items.timeslot_item_id;
1247
1248
1249+SET search_path = deploy, pg_catalog;
1250+
1251+--
1252+-- Name: myury; Type: TABLE; Schema: deploy; Owner: web
1253+--
1254+
1255+CREATE TABLE myury (
1256+ memberid integer NOT NULL,
1257+ migrated boolean DEFAULT false,
1258+ enforced boolean DEFAULT false
1259+);
1260+
1261+
1262+ALTER TABLE myury OWNER TO web;
1263+
1264+--
1265+-- Name: showplanner; Type: TABLE; Schema: deploy; Owner: web
1266+--
1267+
1268+CREATE TABLE showplanner (
1269+ memberid integer NOT NULL,
1270+ migrated boolean DEFAULT false,
1271+ enforced boolean DEFAULT false,
1272+ helptab boolean DEFAULT true
1273+);
1274+
1275+
1276+ALTER TABLE showplanner OWNER TO web;
1277+
1278+SET search_path = website, pg_catalog;
1279+
1280+--
1281+-- Name: banner_campaign; Type: TABLE; Schema: website; Owner: django
1282+--
1283+
1284+CREATE TABLE banner_campaign (
1285+ memberid integer,
1286+ approvedid integer,
1287+ effective_from timestamp with time zone NOT NULL,
1288+ effective_to timestamp with time zone,
1289+ banner_campaign_id integer NOT NULL,
1290+ banner_location_id integer NOT NULL,
1291+ banner_id integer NOT NULL
1292+);
1293+
1294+
1295+ALTER TABLE banner_campaign OWNER TO django;
1296+
1297+--
1298+-- Name: banner_campaign_banner_campaign_id_seq; Type: SEQUENCE; Schema: website; Owner: django
1299+--
1300+
1301+CREATE SEQUENCE banner_campaign_banner_campaign_id_seq
1302+ START WITH 1
1303+ INCREMENT BY 1
1304+ NO MINVALUE
1305+ NO MAXVALUE
1306+ CACHE 1;
1307+
1308+
1309+ALTER TABLE banner_campaign_banner_campaign_id_seq OWNER TO django;
1310+
1311+--
1312+-- Name: banner_campaign_banner_campaign_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: django
1313+--
1314+
1315+ALTER SEQUENCE banner_campaign_banner_campaign_id_seq OWNED BY banner_campaign.banner_campaign_id;
1316+
1317+
1318 SET search_path = jukebox, pg_catalog;
1319
1320 --
1321--- Name: playlist_entries; Type: TABLE; Schema: jukebox; Owner: myradio; Tablespace:
1322+-- Name: playlist_availability; Type: TABLE; Schema: jukebox; Owner: web
1323+--
1324+
1325+CREATE TABLE playlist_availability (
1326+ memberid integer,
1327+ approvedid integer,
1328+ effective_from timestamp with time zone NOT NULL,
1329+ effective_to timestamp with time zone,
1330+ playlist_availability_id integer DEFAULT nextval('website.banner_campaign_banner_campaign_id_seq'::regclass) NOT NULL,
1331+ weight integer NOT NULL,
1332+ playlistid character varying NOT NULL
1333+);
1334+
1335+
1336+ALTER TABLE playlist_availability OWNER TO web;
1337+
1338+--
1339+-- Name: playlist_entries; Type: TABLE; Schema: jukebox; Owner: web
1340 --
1341
1342 CREATE TABLE playlist_entries (
1343@@ -652,10 +1299,10 @@
1344 );
1345
1346
1347-ALTER TABLE jukebox.playlist_entries OWNER TO myradio;
1348+ALTER TABLE playlist_entries OWNER TO web;
1349
1350 --
1351--- Name: playlist_entries_entryid_seq; Type: SEQUENCE; Schema: jukebox; Owner: myradio
1352+-- Name: playlist_entries_entryid_seq; Type: SEQUENCE; Schema: jukebox; Owner: web
1353 --
1354
1355 CREATE SEQUENCE playlist_entries_entryid_seq
1356@@ -666,17 +1313,17 @@
1357 CACHE 1;
1358
1359
1360-ALTER TABLE jukebox.playlist_entries_entryid_seq OWNER TO myradio;
1361+ALTER TABLE playlist_entries_entryid_seq OWNER TO web;
1362
1363 --
1364--- Name: playlist_entries_entryid_seq; Type: SEQUENCE OWNED BY; Schema: jukebox; Owner: myradio
1365+-- Name: playlist_entries_entryid_seq; Type: SEQUENCE OWNED BY; Schema: jukebox; Owner: web
1366 --
1367
1368 ALTER SEQUENCE playlist_entries_entryid_seq OWNED BY playlist_entries.entryid;
1369
1370
1371 --
1372--- Name: playlist_revisions; Type: TABLE; Schema: jukebox; Owner: myradio; Tablespace:
1373+-- Name: playlist_revisions; Type: TABLE; Schema: jukebox; Owner: web
1374 --
1375
1376 CREATE TABLE playlist_revisions (
1377@@ -688,10 +1335,10 @@
1378 );
1379
1380
1381-ALTER TABLE jukebox.playlist_revisions OWNER TO myradio;
1382+ALTER TABLE playlist_revisions OWNER TO web;
1383
1384 --
1385--- Name: playlist_timeslot_id_seq; Type: SEQUENCE; Schema: jukebox; Owner: myradio
1386+-- Name: playlist_timeslot_id_seq; Type: SEQUENCE; Schema: jukebox; Owner: web
1387 --
1388
1389 CREATE SEQUENCE playlist_timeslot_id_seq
1390@@ -702,35 +1349,34 @@
1391 CACHE 1;
1392
1393
1394-ALTER TABLE jukebox.playlist_timeslot_id_seq OWNER TO myradio;
1395+ALTER TABLE playlist_timeslot_id_seq OWNER TO web;
1396
1397 --
1398--- Name: playlist_timeslot; Type: TABLE; Schema: jukebox; Owner: myradio; Tablespace:
1399+-- Name: playlist_timeslot; Type: TABLE; Schema: jukebox; Owner: web
1400 --
1401
1402 CREATE TABLE playlist_timeslot (
1403 id integer DEFAULT nextval('playlist_timeslot_id_seq'::regclass) NOT NULL,
1404 memberid integer NOT NULL,
1405 approvedid integer,
1406- weight integer NOT NULL,
1407- playlistid character varying(15) NOT NULL,
1408 day smallint NOT NULL,
1409 start_time time without time zone NOT NULL,
1410- end_time time without time zone NOT NULL
1411+ end_time time without time zone NOT NULL,
1412+ playlist_availability_id integer NOT NULL
1413 );
1414
1415
1416-ALTER TABLE jukebox.playlist_timeslot OWNER TO myradio;
1417+ALTER TABLE playlist_timeslot OWNER TO web;
1418
1419 --
1420--- Name: COLUMN playlist_timeslot.day; Type: COMMENT; Schema: jukebox; Owner: myradio
1421+-- Name: COLUMN playlist_timeslot.day; Type: COMMENT; Schema: jukebox; Owner: web
1422 --
1423
1424 COMMENT ON COLUMN playlist_timeslot.day IS '1-7 (1=Monday)';
1425
1426
1427 --
1428--- Name: playlists; Type: TABLE; Schema: jukebox; Owner: myradio; Tablespace:
1429+-- Name: playlists; Type: TABLE; Schema: jukebox; Owner: web
1430 --
1431
1432 CREATE TABLE playlists (
1433@@ -746,24 +1392,24 @@
1434 );
1435
1436
1437-ALTER TABLE jukebox.playlists OWNER TO myradio;
1438+ALTER TABLE playlists OWNER TO web;
1439
1440 --
1441--- Name: COLUMN playlists.weight; Type: COMMENT; Schema: jukebox; Owner: myradio
1442+-- Name: COLUMN playlists.weight; Type: COMMENT; Schema: jukebox; Owner: web
1443 --
1444
1445 COMMENT ON COLUMN playlists.weight IS 'Relative to the other playlists, how often should a track from this be played on the jukebox? If 0, never play it.';
1446
1447
1448 --
1449--- Name: COLUMN playlists.weightx; Type: COMMENT; Schema: jukebox; Owner: myradio
1450+-- Name: COLUMN playlists.weightx; Type: COMMENT; Schema: jukebox; Owner: web
1451 --
1452
1453 COMMENT ON COLUMN playlists.weightx IS 'Weightings for post-watershed jukebox.';
1454
1455
1456 --
1457--- Name: request; Type: TABLE; Schema: jukebox; Owner: myradio; Tablespace:
1458+-- Name: request; Type: TABLE; Schema: jukebox; Owner: web
1459 --
1460
1461 CREATE TABLE request (
1462@@ -775,10 +1421,10 @@
1463 );
1464
1465
1466-ALTER TABLE jukebox.request OWNER TO myradio;
1467+ALTER TABLE request OWNER TO web;
1468
1469 --
1470--- Name: request_request_id_seq; Type: SEQUENCE; Schema: jukebox; Owner: myradio
1471+-- Name: request_request_id_seq; Type: SEQUENCE; Schema: jukebox; Owner: web
1472 --
1473
1474 CREATE SEQUENCE request_request_id_seq
1475@@ -789,33 +1435,17 @@
1476 CACHE 1;
1477
1478
1479-ALTER TABLE jukebox.request_request_id_seq OWNER TO myradio;
1480+ALTER TABLE request_request_id_seq OWNER TO web;
1481
1482 --
1483--- Name: request_request_id_seq; Type: SEQUENCE OWNED BY; Schema: jukebox; Owner: myradio
1484+-- Name: request_request_id_seq; Type: SEQUENCE OWNED BY; Schema: jukebox; Owner: web
1485 --
1486
1487 ALTER SEQUENCE request_request_id_seq OWNED BY request.request_id;
1488
1489
1490 --
1491--- Name: requests; Type: TABLE; Schema: jukebox; Owner: myradio; Tablespace:
1492---
1493-
1494-CREATE TABLE requests (
1495- "user" integer NOT NULL,
1496- start timestamp with time zone NOT NULL,
1497- "end" timestamp with time zone NOT NULL,
1498- format character varying(4) NOT NULL,
1499- title character varying(64),
1500- removed boolean DEFAULT false NOT NULL
1501-);
1502-
1503-
1504-ALTER TABLE jukebox.requests OWNER TO myradio;
1505-
1506---
1507--- Name: silence_log; Type: TABLE; Schema: jukebox; Owner: myradio; Tablespace:
1508+-- Name: silence_log; Type: TABLE; Schema: jukebox; Owner: web
1509 --
1510
1511 CREATE TABLE silence_log (
1512@@ -826,17 +1456,17 @@
1513 );
1514
1515
1516-ALTER TABLE jukebox.silence_log OWNER TO myradio;
1517+ALTER TABLE silence_log OWNER TO web;
1518
1519 --
1520--- Name: TABLE silence_log; Type: COMMENT; Schema: jukebox; Owner: myradio
1521+-- Name: TABLE silence_log; Type: COMMENT; Schema: jukebox; Owner: web
1522 --
1523
1524 COMMENT ON TABLE silence_log IS 'Stores a log of silence events';
1525
1526
1527 --
1528--- Name: silence; Type: VIEW; Schema: jukebox; Owner: myradio
1529+-- Name: silence; Type: VIEW; Schema: jukebox; Owner: web
1530 --
1531
1532 CREATE VIEW silence AS
1533@@ -847,17 +1477,17 @@
1534 LIMIT 1;
1535
1536
1537-ALTER TABLE jukebox.silence OWNER TO myradio;
1538+ALTER TABLE silence OWNER TO web;
1539
1540 --
1541--- Name: VIEW silence; Type: COMMENT; Schema: jukebox; Owner: myradio
1542+-- Name: VIEW silence; Type: COMMENT; Schema: jukebox; Owner: web
1543 --
1544
1545 COMMENT ON VIEW silence IS 'Gets start time of a current silence event. Should check if time is > 1 second';
1546
1547
1548 --
1549--- Name: silence_log_silenceid_seq; Type: SEQUENCE; Schema: jukebox; Owner: myradio
1550+-- Name: silence_log_silenceid_seq; Type: SEQUENCE; Schema: jukebox; Owner: web
1551 --
1552
1553 CREATE SEQUENCE silence_log_silenceid_seq
1554@@ -868,17 +1498,17 @@
1555 CACHE 1;
1556
1557
1558-ALTER TABLE jukebox.silence_log_silenceid_seq OWNER TO myradio;
1559+ALTER TABLE silence_log_silenceid_seq OWNER TO web;
1560
1561 --
1562--- Name: silence_log_silenceid_seq; Type: SEQUENCE OWNED BY; Schema: jukebox; Owner: myradio
1563+-- Name: silence_log_silenceid_seq; Type: SEQUENCE OWNED BY; Schema: jukebox; Owner: web
1564 --
1565
1566 ALTER SEQUENCE silence_log_silenceid_seq OWNED BY silence_log.silenceid;
1567
1568
1569 --
1570--- Name: track_blacklist; Type: TABLE; Schema: jukebox; Owner: myradio; Tablespace:
1571+-- Name: track_blacklist; Type: TABLE; Schema: jukebox; Owner: web
1572 --
1573
1574 CREATE TABLE track_blacklist (
1575@@ -886,19 +1516,87 @@
1576 );
1577
1578
1579-ALTER TABLE jukebox.track_blacklist OWNER TO myradio;
1580+ALTER TABLE track_blacklist OWNER TO web;
1581
1582 --
1583--- Name: TABLE track_blacklist; Type: COMMENT; Schema: jukebox; Owner: myradio
1584+-- Name: TABLE track_blacklist; Type: COMMENT; Schema: jukebox; Owner: web
1585 --
1586
1587 COMMENT ON TABLE track_blacklist IS 'A list of Tracks that should, under no circumstances, be played on the jukebox.';
1588
1589
1590+SET search_path = loggerng, pg_catalog;
1591+
1592+--
1593+-- Name: logs; Type: TABLE; Schema: loggerng; Owner: web
1594+--
1595+
1596+CREATE TABLE logs (
1597+ start timestamp with time zone NOT NULL,
1598+ "end" timestamp with time zone NOT NULL,
1599+ completed boolean DEFAULT false NOT NULL,
1600+ deleted boolean DEFAULT false NOT NULL,
1601+ format character varying(4) NOT NULL,
1602+ progress real
1603+);
1604+
1605+
1606+ALTER TABLE logs OWNER TO web;
1607+
1608+--
1609+-- Name: requests; Type: TABLE; Schema: loggerng; Owner: web
1610+--
1611+
1612+CREATE TABLE requests (
1613+ "user" integer NOT NULL,
1614+ start timestamp with time zone NOT NULL,
1615+ "end" timestamp with time zone NOT NULL,
1616+ format character varying(4) NOT NULL,
1617+ title character varying(64),
1618+ removed boolean DEFAULT false NOT NULL
1619+);
1620+
1621+
1622+ALTER TABLE requests OWNER TO web;
1623+
1624+SET search_path = loggerng_test, pg_catalog;
1625+
1626+--
1627+-- Name: logs; Type: TABLE; Schema: loggerng_test; Owner: web
1628+--
1629+
1630+CREATE TABLE logs (
1631+ start timestamp with time zone NOT NULL,
1632+ "end" timestamp with time zone NOT NULL,
1633+ completed boolean DEFAULT false NOT NULL,
1634+ deleted boolean DEFAULT false NOT NULL,
1635+ format character varying(4) NOT NULL,
1636+ progress real
1637+);
1638+
1639+
1640+ALTER TABLE logs OWNER TO web;
1641+
1642+--
1643+-- Name: requests; Type: TABLE; Schema: loggerng_test; Owner: web
1644+--
1645+
1646+CREATE TABLE requests (
1647+ "user" integer NOT NULL,
1648+ start timestamp with time zone NOT NULL,
1649+ "end" timestamp with time zone NOT NULL,
1650+ format character varying(4) NOT NULL,
1651+ title character varying(64),
1652+ removed boolean DEFAULT false NOT NULL
1653+);
1654+
1655+
1656+ALTER TABLE requests OWNER TO web;
1657+
1658 SET search_path = mail, pg_catalog;
1659
1660 --
1661--- Name: alias; Type: TABLE; Schema: mail; Owner: myradio; Tablespace:
1662+-- Name: alias; Type: TABLE; Schema: mail; Owner: web
1663 --
1664
1665 CREATE TABLE alias (
1666@@ -907,10 +1605,10 @@
1667 );
1668
1669
1670-ALTER TABLE mail.alias OWNER TO myradio;
1671+ALTER TABLE alias OWNER TO web;
1672
1673 --
1674--- Name: alias_alias_id_seq; Type: SEQUENCE; Schema: mail; Owner: myradio
1675+-- Name: alias_alias_id_seq; Type: SEQUENCE; Schema: mail; Owner: web
1676 --
1677
1678 CREATE SEQUENCE alias_alias_id_seq
1679@@ -921,17 +1619,17 @@
1680 CACHE 1;
1681
1682
1683-ALTER TABLE mail.alias_alias_id_seq OWNER TO myradio;
1684+ALTER TABLE alias_alias_id_seq OWNER TO web;
1685
1686 --
1687--- Name: alias_alias_id_seq; Type: SEQUENCE OWNED BY; Schema: mail; Owner: myradio
1688+-- Name: alias_alias_id_seq; Type: SEQUENCE OWNED BY; Schema: mail; Owner: web
1689 --
1690
1691 ALTER SEQUENCE alias_alias_id_seq OWNED BY alias.alias_id;
1692
1693
1694 --
1695--- Name: alias_list; Type: TABLE; Schema: mail; Owner: myradio; Tablespace:
1696+-- Name: alias_list; Type: TABLE; Schema: mail; Owner: web
1697 --
1698
1699 CREATE TABLE alias_list (
1700@@ -940,10 +1638,10 @@
1701 );
1702
1703
1704-ALTER TABLE mail.alias_list OWNER TO myradio;
1705+ALTER TABLE alias_list OWNER TO web;
1706
1707 --
1708--- Name: alias_member; Type: TABLE; Schema: mail; Owner: myradio; Tablespace:
1709+-- Name: alias_member; Type: TABLE; Schema: mail; Owner: web
1710 --
1711
1712 CREATE TABLE alias_member (
1713@@ -952,10 +1650,10 @@
1714 );
1715
1716
1717-ALTER TABLE mail.alias_member OWNER TO myradio;
1718+ALTER TABLE alias_member OWNER TO web;
1719
1720 --
1721--- Name: alias_officer; Type: TABLE; Schema: mail; Owner: myradio; Tablespace:
1722+-- Name: alias_officer; Type: TABLE; Schema: mail; Owner: web
1723 --
1724
1725 CREATE TABLE alias_officer (
1726@@ -964,10 +1662,31 @@
1727 );
1728
1729
1730-ALTER TABLE mail.alias_officer OWNER TO myradio;
1731+ALTER TABLE alias_officer OWNER TO web;
1732+
1733+--
1734+-- Name: alias_officer_alias_id_seq; Type: SEQUENCE; Schema: mail; Owner: web
1735+--
1736+
1737+CREATE SEQUENCE alias_officer_alias_id_seq
1738+ START WITH 1
1739+ INCREMENT BY 1
1740+ NO MINVALUE
1741+ NO MAXVALUE
1742+ CACHE 1;
1743+
1744+
1745+ALTER TABLE alias_officer_alias_id_seq OWNER TO web;
1746+
1747+--
1748+-- Name: alias_officer_alias_id_seq; Type: SEQUENCE OWNED BY; Schema: mail; Owner: web
1749+--
1750+
1751+ALTER SEQUENCE alias_officer_alias_id_seq OWNED BY alias_officer.alias_id;
1752+
1753
1754 --
1755--- Name: alias_source_seq; Type: SEQUENCE; Schema: mail; Owner: myradio
1756+-- Name: alias_source_seq; Type: SEQUENCE; Schema: mail; Owner: web
1757 --
1758
1759 CREATE SEQUENCE alias_source_seq
1760@@ -978,10 +1697,17 @@
1761 CACHE 1;
1762
1763
1764-ALTER TABLE mail.alias_source_seq OWNER TO myradio;
1765+ALTER TABLE alias_source_seq OWNER TO web;
1766+
1767+--
1768+-- Name: alias_source_seq; Type: SEQUENCE OWNED BY; Schema: mail; Owner: web
1769+--
1770+
1771+ALTER SEQUENCE alias_source_seq OWNED BY alias.source;
1772+
1773
1774 --
1775--- Name: alias_text; Type: TABLE; Schema: mail; Owner: myradio; Tablespace:
1776+-- Name: alias_text; Type: TABLE; Schema: mail; Owner: web
1777 --
1778
1779 CREATE TABLE alias_text (
1780@@ -990,10 +1716,10 @@
1781 );
1782
1783
1784-ALTER TABLE mail.alias_text OWNER TO myradio;
1785+ALTER TABLE alias_text OWNER TO web;
1786
1787 --
1788--- Name: email; Type: TABLE; Schema: mail; Owner: myradio; Tablespace:
1789+-- Name: email; Type: TABLE; Schema: mail; Owner: web
1790 --
1791
1792 CREATE TABLE email (
1793@@ -1005,10 +1731,10 @@
1794 );
1795
1796
1797-ALTER TABLE mail.email OWNER TO myradio;
1798+ALTER TABLE email OWNER TO web;
1799
1800 --
1801--- Name: email_recipient_list; Type: TABLE; Schema: mail; Owner: myradio; Tablespace:
1802+-- Name: email_recipient_list; Type: TABLE; Schema: mail; Owner: web
1803 --
1804
1805 CREATE TABLE email_recipient_list (
1806@@ -1018,10 +1744,10 @@
1807 );
1808
1809
1810-ALTER TABLE mail.email_recipient_list OWNER TO myradio;
1811+ALTER TABLE email_recipient_list OWNER TO web;
1812
1813 --
1814--- Name: email_recipient_member; Type: TABLE; Schema: mail; Owner: myradio; Tablespace:
1815+-- Name: email_recipient_member; Type: TABLE; Schema: mail; Owner: web
1816 --
1817
1818 CREATE TABLE email_recipient_member (
1819@@ -1031,10 +1757,10 @@
1820 );
1821
1822
1823-ALTER TABLE mail.email_recipient_member OWNER TO myradio;
1824+ALTER TABLE email_recipient_member OWNER TO web;
1825
1826 --
1827--- Name: emails_email_id_seq; Type: SEQUENCE; Schema: mail; Owner: myradio
1828+-- Name: emails_email_id_seq; Type: SEQUENCE; Schema: mail; Owner: web
1829 --
1830
1831 CREATE SEQUENCE emails_email_id_seq
1832@@ -1045,10 +1771,10 @@
1833 CACHE 1;
1834
1835
1836-ALTER TABLE mail.emails_email_id_seq OWNER TO myradio;
1837+ALTER TABLE emails_email_id_seq OWNER TO web;
1838
1839 --
1840--- Name: emails_email_id_seq; Type: SEQUENCE OWNED BY; Schema: mail; Owner: myradio
1841+-- Name: emails_email_id_seq; Type: SEQUENCE OWNED BY; Schema: mail; Owner: web
1842 --
1843
1844 ALTER SEQUENCE emails_email_id_seq OWNED BY email.email_id;
1845@@ -1057,7 +1783,7 @@
1846 SET search_path = metadata, pg_catalog;
1847
1848 --
1849--- Name: metadata_key; Type: TABLE; Schema: metadata; Owner: myradio; Tablespace:
1850+-- Name: metadata_key; Type: TABLE; Schema: metadata; Owner: web
1851 --
1852
1853 CREATE TABLE metadata_key (
1854@@ -1071,38 +1797,38 @@
1855 );
1856
1857
1858-ALTER TABLE metadata.metadata_key OWNER TO myradio;
1859+ALTER TABLE metadata_key OWNER TO web;
1860
1861 --
1862--- Name: TABLE metadata_key; Type: COMMENT; Schema: metadata; Owner: myradio
1863+-- Name: TABLE metadata_key; Type: COMMENT; Schema: metadata; Owner: web
1864 --
1865
1866 COMMENT ON TABLE metadata_key IS 'Stores possible types of textual metadatum. Used by all three _metadata tables';
1867
1868
1869 --
1870--- Name: COLUMN metadata_key.metadata_key_id; Type: COMMENT; Schema: metadata; Owner: myradio
1871+-- Name: COLUMN metadata_key.metadata_key_id; Type: COMMENT; Schema: metadata; Owner: web
1872 --
1873
1874 COMMENT ON COLUMN metadata_key.metadata_key_id IS 'A unique identifier for each metadata type';
1875
1876
1877 --
1878--- Name: COLUMN metadata_key.name; Type: COMMENT; Schema: metadata; Owner: myradio
1879+-- Name: COLUMN metadata_key.name; Type: COMMENT; Schema: metadata; Owner: web
1880 --
1881
1882 COMMENT ON COLUMN metadata_key.name IS 'A human-readable name for the metadata key';
1883
1884
1885 --
1886--- Name: COLUMN metadata_key.description; Type: COMMENT; Schema: metadata; Owner: myradio
1887+-- Name: COLUMN metadata_key.description; Type: COMMENT; Schema: metadata; Owner: web
1888 --
1889
1890 COMMENT ON COLUMN metadata_key.description IS 'A short description of the semantics/meaning of this key, and where it is applicable.';
1891
1892
1893 --
1894--- Name: metadata_key_metadata_key_id_seq; Type: SEQUENCE; Schema: metadata; Owner: myradio
1895+-- Name: metadata_key_metadata_key_id_seq; Type: SEQUENCE; Schema: metadata; Owner: web
1896 --
1897
1898 CREATE SEQUENCE metadata_key_metadata_key_id_seq
1899@@ -1113,17 +1839,17 @@
1900 CACHE 1;
1901
1902
1903-ALTER TABLE metadata.metadata_key_metadata_key_id_seq OWNER TO myradio;
1904+ALTER TABLE metadata_key_metadata_key_id_seq OWNER TO web;
1905
1906 --
1907--- Name: metadata_key_metadata_key_id_seq; Type: SEQUENCE OWNED BY; Schema: metadata; Owner: myradio
1908+-- Name: metadata_key_metadata_key_id_seq; Type: SEQUENCE OWNED BY; Schema: metadata; Owner: web
1909 --
1910
1911 ALTER SEQUENCE metadata_key_metadata_key_id_seq OWNED BY metadata_key.metadata_key_id;
1912
1913
1914 --
1915--- Name: package; Type: TABLE; Schema: metadata; Owner: myradio; Tablespace:
1916+-- Name: package; Type: TABLE; Schema: metadata; Owner: django
1917 --
1918
1919 CREATE TABLE package (
1920@@ -1134,10 +1860,10 @@
1921 );
1922
1923
1924-ALTER TABLE metadata.package OWNER TO myradio;
1925+ALTER TABLE package OWNER TO django;
1926
1927 --
1928--- Name: package_image_metadata; Type: TABLE; Schema: metadata; Owner: myradio; Tablespace:
1929+-- Name: package_image_metadata; Type: TABLE; Schema: metadata; Owner: django
1930 --
1931
1932 CREATE TABLE package_image_metadata (
1933@@ -1153,10 +1879,10 @@
1934 );
1935
1936
1937-ALTER TABLE metadata.package_image_metadata OWNER TO myradio;
1938+ALTER TABLE package_image_metadata OWNER TO django;
1939
1940 --
1941--- Name: package_image_metadata_package_image_metadata_id_seq; Type: SEQUENCE; Schema: metadata; Owner: myradio
1942+-- Name: package_image_metadata_package_image_metadata_id_seq; Type: SEQUENCE; Schema: metadata; Owner: django
1943 --
1944
1945 CREATE SEQUENCE package_image_metadata_package_image_metadata_id_seq
1946@@ -1167,17 +1893,17 @@
1947 CACHE 1;
1948
1949
1950-ALTER TABLE metadata.package_image_metadata_package_image_metadata_id_seq OWNER TO myradio;
1951+ALTER TABLE package_image_metadata_package_image_metadata_id_seq OWNER TO django;
1952
1953 --
1954--- Name: package_image_metadata_package_image_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: metadata; Owner: myradio
1955+-- Name: package_image_metadata_package_image_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: metadata; Owner: django
1956 --
1957
1958 ALTER SEQUENCE package_image_metadata_package_image_metadata_id_seq OWNED BY package_image_metadata.package_image_metadata_id;
1959
1960
1961 --
1962--- Name: package_package_id_seq; Type: SEQUENCE; Schema: metadata; Owner: myradio
1963+-- Name: package_package_id_seq; Type: SEQUENCE; Schema: metadata; Owner: django
1964 --
1965
1966 CREATE SEQUENCE package_package_id_seq
1967@@ -1188,17 +1914,17 @@
1968 CACHE 1;
1969
1970
1971-ALTER TABLE metadata.package_package_id_seq OWNER TO myradio;
1972+ALTER TABLE package_package_id_seq OWNER TO django;
1973
1974 --
1975--- Name: package_package_id_seq; Type: SEQUENCE OWNED BY; Schema: metadata; Owner: myradio
1976+-- Name: package_package_id_seq; Type: SEQUENCE OWNED BY; Schema: metadata; Owner: django
1977 --
1978
1979 ALTER SEQUENCE package_package_id_seq OWNED BY package.package_id;
1980
1981
1982 --
1983--- Name: package_text_metadata; Type: TABLE; Schema: metadata; Owner: myradio; Tablespace:
1984+-- Name: package_text_metadata; Type: TABLE; Schema: metadata; Owner: django
1985 --
1986
1987 CREATE TABLE package_text_metadata (
1988@@ -1214,10 +1940,10 @@
1989 );
1990
1991
1992-ALTER TABLE metadata.package_text_metadata OWNER TO myradio;
1993+ALTER TABLE package_text_metadata OWNER TO django;
1994
1995 --
1996--- Name: package_text_metadata_package_text_metadata_id_seq; Type: SEQUENCE; Schema: metadata; Owner: myradio
1997+-- Name: package_text_metadata_package_text_metadata_id_seq; Type: SEQUENCE; Schema: metadata; Owner: django
1998 --
1999
2000 CREATE SEQUENCE package_text_metadata_package_text_metadata_id_seq
2001@@ -1228,10 +1954,10 @@
2002 CACHE 1;
2003
2004
2005-ALTER TABLE metadata.package_text_metadata_package_text_metadata_id_seq OWNER TO myradio;
2006+ALTER TABLE package_text_metadata_package_text_metadata_id_seq OWNER TO django;
2007
2008 --
2009--- Name: package_text_metadata_package_text_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: metadata; Owner: myradio
2010+-- Name: package_text_metadata_package_text_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: metadata; Owner: django
2011 --
2012
2013 ALTER SEQUENCE package_text_metadata_package_text_metadata_id_seq OWNED BY package_text_metadata.package_text_metadata_id;
2014@@ -1240,7 +1966,7 @@
2015 SET search_path = music, pg_catalog;
2016
2017 --
2018--- Name: chart_release; Type: TABLE; Schema: music; Owner: myradio; Tablespace:
2019+-- Name: chart_release; Type: TABLE; Schema: music; Owner: django
2020 --
2021
2022 CREATE TABLE chart_release (
2023@@ -1250,10 +1976,10 @@
2024 );
2025
2026
2027-ALTER TABLE music.chart_release OWNER TO myradio;
2028+ALTER TABLE chart_release OWNER TO django;
2029
2030 --
2031--- Name: chart_release_chart_release_id_seq; Type: SEQUENCE; Schema: music; Owner: myradio
2032+-- Name: chart_release_chart_release_id_seq; Type: SEQUENCE; Schema: music; Owner: django
2033 --
2034
2035 CREATE SEQUENCE chart_release_chart_release_id_seq
2036@@ -1264,17 +1990,17 @@
2037 CACHE 1;
2038
2039
2040-ALTER TABLE music.chart_release_chart_release_id_seq OWNER TO myradio;
2041+ALTER TABLE chart_release_chart_release_id_seq OWNER TO django;
2042
2043 --
2044--- Name: chart_release_chart_release_id_seq; Type: SEQUENCE OWNED BY; Schema: music; Owner: myradio
2045+-- Name: chart_release_chart_release_id_seq; Type: SEQUENCE OWNED BY; Schema: music; Owner: django
2046 --
2047
2048 ALTER SEQUENCE chart_release_chart_release_id_seq OWNED BY chart_release.chart_release_id;
2049
2050
2051 --
2052--- Name: chart_row; Type: TABLE; Schema: music; Owner: myradio; Tablespace:
2053+-- Name: chart_row; Type: TABLE; Schema: music; Owner: django
2054 --
2055
2056 CREATE TABLE chart_row (
2057@@ -1288,10 +2014,10 @@
2058 );
2059
2060
2061-ALTER TABLE music.chart_row OWNER TO myradio;
2062+ALTER TABLE chart_row OWNER TO django;
2063
2064 --
2065--- Name: chart_row_chart_row_id_seq; Type: SEQUENCE; Schema: music; Owner: myradio
2066+-- Name: chart_row_chart_row_id_seq; Type: SEQUENCE; Schema: music; Owner: django
2067 --
2068
2069 CREATE SEQUENCE chart_row_chart_row_id_seq
2070@@ -1302,17 +2028,17 @@
2071 CACHE 1;
2072
2073
2074-ALTER TABLE music.chart_row_chart_row_id_seq OWNER TO myradio;
2075+ALTER TABLE chart_row_chart_row_id_seq OWNER TO django;
2076
2077 --
2078--- Name: chart_row_chart_row_id_seq; Type: SEQUENCE OWNED BY; Schema: music; Owner: myradio
2079+-- Name: chart_row_chart_row_id_seq; Type: SEQUENCE OWNED BY; Schema: music; Owner: django
2080 --
2081
2082 ALTER SEQUENCE chart_row_chart_row_id_seq OWNED BY chart_row.chart_row_id;
2083
2084
2085 --
2086--- Name: chart_type; Type: TABLE; Schema: music; Owner: myradio; Tablespace:
2087+-- Name: chart_type; Type: TABLE; Schema: music; Owner: django
2088 --
2089
2090 CREATE TABLE chart_type (
2091@@ -1322,10 +2048,10 @@
2092 );
2093
2094
2095-ALTER TABLE music.chart_type OWNER TO myradio;
2096+ALTER TABLE chart_type OWNER TO django;
2097
2098 --
2099--- Name: chart_type_chart_type_id_seq; Type: SEQUENCE; Schema: music; Owner: myradio
2100+-- Name: chart_type_chart_type_id_seq; Type: SEQUENCE; Schema: music; Owner: django
2101 --
2102
2103 CREATE SEQUENCE chart_type_chart_type_id_seq
2104@@ -1336,17 +2062,17 @@
2105 CACHE 1;
2106
2107
2108-ALTER TABLE music.chart_type_chart_type_id_seq OWNER TO myradio;
2109+ALTER TABLE chart_type_chart_type_id_seq OWNER TO django;
2110
2111 --
2112--- Name: chart_type_chart_type_id_seq; Type: SEQUENCE OWNED BY; Schema: music; Owner: myradio
2113+-- Name: chart_type_chart_type_id_seq; Type: SEQUENCE OWNED BY; Schema: music; Owner: django
2114 --
2115
2116 ALTER SEQUENCE chart_type_chart_type_id_seq OWNED BY chart_type.chart_type_id;
2117
2118
2119 --
2120--- Name: explicit_checked; Type: TABLE; Schema: music; Owner: myradio; Tablespace:
2121+-- Name: explicit_checked; Type: TABLE; Schema: music; Owner: web
2122 --
2123
2124 CREATE TABLE explicit_checked (
2125@@ -1354,12 +2080,12 @@
2126 );
2127
2128
2129-ALTER TABLE music.explicit_checked OWNER TO myradio;
2130+ALTER TABLE explicit_checked OWNER TO web;
2131
2132 SET search_path = myradio, pg_catalog;
2133
2134 --
2135--- Name: schema; Type: TABLE; Schema: myradio; Owner: myradio; Tablespace:
2136+-- Name: schema; Type: TABLE; Schema: myradio; Owner: web
2137 --
2138
2139 CREATE TABLE schema (
2140@@ -1368,12 +2094,12 @@
2141 );
2142
2143
2144-ALTER TABLE myradio.schema OWNER TO myradio;
2145+ALTER TABLE schema OWNER TO web;
2146
2147 SET search_path = myury, pg_catalog;
2148
2149 --
2150--- Name: act_permission; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2151+-- Name: act_permission; Type: TABLE; Schema: myury; Owner: web
2152 --
2153
2154 CREATE TABLE act_permission (
2155@@ -1385,20 +2111,23 @@
2156 );
2157
2158
2159-ALTER TABLE myury.act_permission OWNER TO myradio;
2160+ALTER TABLE act_permission OWNER TO web;
2161
2162 --
2163--- Name: TABLE act_permission; Type: COMMENT; Schema: myury; Owner: myradio
2164+-- Name: TABLE act_permission; Type: COMMENT; Schema: myury; Owner: web
2165 --
2166
2167 COMMENT ON TABLE act_permission IS 'Specifies what permissions are required in order to use a feature. This is an *OR* type permission system - any of these matching will grant access.
2168+
2169 A NULL in the module or action field matches any module or action.
2170+
2171 A NULL permissionid means that no permissions are required to use that Service/Module/Action combination.
2172+
2173 NULL permissions on wildcards will be ignored.';
2174
2175
2176 --
2177--- Name: act_permission_actpermissionid_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2178+-- Name: act_permission_actpermissionid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2179 --
2180
2181 CREATE SEQUENCE act_permission_actpermissionid_seq
2182@@ -1409,17 +2138,17 @@
2183 CACHE 1;
2184
2185
2186-ALTER TABLE myury.act_permission_actpermissionid_seq OWNER TO myradio;
2187+ALTER TABLE act_permission_actpermissionid_seq OWNER TO web;
2188
2189 --
2190--- Name: act_permission_actpermissionid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2191+-- Name: act_permission_actpermissionid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2192 --
2193
2194 ALTER SEQUENCE act_permission_actpermissionid_seq OWNED BY act_permission.actpermissionid;
2195
2196
2197 --
2198--- Name: actions; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2199+-- Name: actions; Type: TABLE; Schema: myury; Owner: web
2200 --
2201
2202 CREATE TABLE actions (
2203@@ -1431,17 +2160,17 @@
2204 );
2205
2206
2207-ALTER TABLE myury.actions OWNER TO myradio;
2208+ALTER TABLE actions OWNER TO web;
2209
2210 --
2211--- Name: TABLE actions; Type: COMMENT; Schema: myury; Owner: myradio
2212+-- Name: TABLE actions; Type: COMMENT; Schema: myury; Owner: web
2213 --
2214
2215-COMMENT ON TABLE actions IS 'Stores Actions within managed MyRadio Service Modules';
2216+COMMENT ON TABLE actions IS 'Stores Actions within managed MyURY Service Modules';
2217
2218
2219 --
2220--- Name: actions_actionid_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2221+-- Name: actions_actionid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2222 --
2223
2224 CREATE SEQUENCE actions_actionid_seq
2225@@ -1452,17 +2181,17 @@
2226 CACHE 1;
2227
2228
2229-ALTER TABLE myury.actions_actionid_seq OWNER TO myradio;
2230+ALTER TABLE actions_actionid_seq OWNER TO web;
2231
2232 --
2233--- Name: actions_actionid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2234+-- Name: actions_actionid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2235 --
2236
2237 ALTER SEQUENCE actions_actionid_seq OWNED BY actions.actionid;
2238
2239
2240 --
2241--- Name: api_class_map; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2242+-- Name: api_class_map; Type: TABLE; Schema: myury; Owner: web
2243 --
2244
2245 CREATE TABLE api_class_map (
2246@@ -1472,17 +2201,17 @@
2247 );
2248
2249
2250-ALTER TABLE myury.api_class_map OWNER TO myradio;
2251+ALTER TABLE api_class_map OWNER TO web;
2252
2253 --
2254--- Name: TABLE api_class_map; Type: COMMENT; Schema: myury; Owner: myradio
2255+-- Name: TABLE api_class_map; Type: COMMENT; Schema: myury; Owner: web
2256 --
2257
2258-COMMENT ON TABLE api_class_map IS 'Maps MyRadio Internal classes to the names exposed to the MyRadio API. For example, MyRadio_Track would map to Track. If a class is not mapped, it is not available at all to the API.';
2259+COMMENT ON TABLE api_class_map IS 'Maps MyURY Internal classes to the names exposed to the MyURY API. For example, MyURY_Track would map to Track. If a class is not mapped, it is not available at all to the API.';
2260
2261
2262 --
2263--- Name: api_class_map_api_map_id_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2264+-- Name: api_class_map_api_map_id_seq; Type: SEQUENCE; Schema: myury; Owner: web
2265 --
2266
2267 CREATE SEQUENCE api_class_map_api_map_id_seq
2268@@ -1493,17 +2222,17 @@
2269 CACHE 1;
2270
2271
2272-ALTER TABLE myury.api_class_map_api_map_id_seq OWNER TO myradio;
2273+ALTER TABLE api_class_map_api_map_id_seq OWNER TO web;
2274
2275 --
2276--- Name: api_class_map_api_map_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2277+-- Name: api_class_map_api_map_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2278 --
2279
2280 ALTER SEQUENCE api_class_map_api_map_id_seq OWNED BY api_class_map.api_map_id;
2281
2282
2283 --
2284--- Name: api_key; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2285+-- Name: api_key; Type: TABLE; Schema: myury; Owner: web
2286 --
2287
2288 CREATE TABLE api_key (
2289@@ -1513,17 +2242,17 @@
2290 );
2291
2292
2293-ALTER TABLE myury.api_key OWNER TO myradio;
2294+ALTER TABLE api_key OWNER TO web;
2295
2296 --
2297--- Name: TABLE api_key; Type: COMMENT; Schema: myury; Owner: myradio
2298+-- Name: TABLE api_key; Type: COMMENT; Schema: myury; Owner: web
2299 --
2300
2301-COMMENT ON TABLE api_key IS 'Access keys for the MyRadiopi';
2302+COMMENT ON TABLE api_key IS 'Access keys for the MyURYpi';
2303
2304
2305 --
2306--- Name: api_key_auth; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2307+-- Name: api_key_auth; Type: TABLE; Schema: myury; Owner: web
2308 --
2309
2310 CREATE TABLE api_key_auth (
2311@@ -1532,17 +2261,17 @@
2312 );
2313
2314
2315-ALTER TABLE myury.api_key_auth OWNER TO myradio;
2316+ALTER TABLE api_key_auth OWNER TO web;
2317
2318 --
2319--- Name: TABLE api_key_auth; Type: COMMENT; Schema: myury; Owner: myradio
2320+-- Name: TABLE api_key_auth; Type: COMMENT; Schema: myury; Owner: web
2321 --
2322
2323 COMMENT ON TABLE api_key_auth IS 'Stores what API capabilities each key has.';
2324
2325
2326 --
2327--- Name: api_key_log; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2328+-- Name: api_key_log; Type: TABLE; Schema: myury; Owner: web
2329 --
2330
2331 CREATE TABLE api_key_log (
2332@@ -1555,17 +2284,17 @@
2333 );
2334
2335
2336-ALTER TABLE myury.api_key_log OWNER TO myradio;
2337+ALTER TABLE api_key_log OWNER TO web;
2338
2339 --
2340--- Name: TABLE api_key_log; Type: COMMENT; Schema: myury; Owner: myradio
2341+-- Name: TABLE api_key_log; Type: COMMENT; Schema: myury; Owner: web
2342 --
2343
2344 COMMENT ON TABLE api_key_log IS 'Stores a record of API Requests by an API Key';
2345
2346
2347 --
2348--- Name: api_key_log_api_log_id_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2349+-- Name: api_key_log_api_log_id_seq; Type: SEQUENCE; Schema: myury; Owner: web
2350 --
2351
2352 CREATE SEQUENCE api_key_log_api_log_id_seq
2353@@ -1576,17 +2305,17 @@
2354 CACHE 1;
2355
2356
2357-ALTER TABLE myury.api_key_log_api_log_id_seq OWNER TO myradio;
2358+ALTER TABLE api_key_log_api_log_id_seq OWNER TO web;
2359
2360 --
2361--- Name: api_key_log_api_log_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2362+-- Name: api_key_log_api_log_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2363 --
2364
2365 ALTER SEQUENCE api_key_log_api_log_id_seq OWNED BY api_key_log.api_log_id;
2366
2367
2368 --
2369--- Name: api_method_auth; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2370+-- Name: api_method_auth; Type: TABLE; Schema: myury; Owner: web
2371 --
2372
2373 CREATE TABLE api_method_auth (
2374@@ -1597,18 +2326,19 @@
2375 );
2376
2377
2378-ALTER TABLE myury.api_method_auth OWNER TO myradio;
2379+ALTER TABLE api_method_auth OWNER TO web;
2380
2381 --
2382--- Name: TABLE api_method_auth; Type: COMMENT; Schema: myury; Owner: myradio
2383+-- Name: TABLE api_method_auth; Type: COMMENT; Schema: myury; Owner: web
2384 --
2385
2386 COMMENT ON TABLE api_method_auth IS 'Assigns permissions to API calls. If a Class or Object Method does not have a permission here, it is accessible only to Keys with "AUTH_APISUDO".
2387+
2388 Other than the above exception, the permissions structure is identical to the standard myury action permission system.';
2389
2390
2391 --
2392--- Name: api_method_auth_api_method_auth_id_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2393+-- Name: api_method_auth_api_method_auth_id_seq; Type: SEQUENCE; Schema: myury; Owner: web
2394 --
2395
2396 CREATE SEQUENCE api_method_auth_api_method_auth_id_seq
2397@@ -1619,17 +2349,17 @@
2398 CACHE 1;
2399
2400
2401-ALTER TABLE myury.api_method_auth_api_method_auth_id_seq OWNER TO myradio;
2402+ALTER TABLE api_method_auth_api_method_auth_id_seq OWNER TO web;
2403
2404 --
2405--- Name: api_method_auth_api_method_auth_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2406+-- Name: api_method_auth_api_method_auth_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2407 --
2408
2409 ALTER SEQUENCE api_method_auth_api_method_auth_id_seq OWNED BY api_method_auth.api_method_auth_id;
2410
2411
2412 --
2413--- Name: api_mixin_auth; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2414+-- Name: api_mixin_auth; Type: TABLE; Schema: myury; Owner: web
2415 --
2416
2417 CREATE TABLE api_mixin_auth (
2418@@ -1640,10 +2370,10 @@
2419 );
2420
2421
2422-ALTER TABLE myury.api_mixin_auth OWNER TO myradio;
2423+ALTER TABLE api_mixin_auth OWNER TO web;
2424
2425 --
2426--- Name: api_mixin_auth_api_mixin_auth_id_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2427+-- Name: api_mixin_auth_api_mixin_auth_id_seq; Type: SEQUENCE; Schema: myury; Owner: web
2428 --
2429
2430 CREATE SEQUENCE api_mixin_auth_api_mixin_auth_id_seq
2431@@ -1654,17 +2384,17 @@
2432 CACHE 1;
2433
2434
2435-ALTER TABLE myury.api_mixin_auth_api_mixin_auth_id_seq OWNER TO myradio;
2436+ALTER TABLE api_mixin_auth_api_mixin_auth_id_seq OWNER TO web;
2437
2438 --
2439--- Name: api_mixin_auth_api_mixin_auth_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2440+-- Name: api_mixin_auth_api_mixin_auth_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2441 --
2442
2443 ALTER SEQUENCE api_mixin_auth_api_mixin_auth_id_seq OWNED BY api_mixin_auth.api_mixin_auth_id;
2444
2445
2446 --
2447--- Name: award_categories; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2448+-- Name: award_categories; Type: TABLE; Schema: myury; Owner: web
2449 --
2450
2451 CREATE TABLE award_categories (
2452@@ -1673,10 +2403,10 @@
2453 );
2454
2455
2456-ALTER TABLE myury.award_categories OWNER TO myradio;
2457+ALTER TABLE award_categories OWNER TO web;
2458
2459 --
2460--- Name: award_categories_awardid_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2461+-- Name: award_categories_awardid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2462 --
2463
2464 CREATE SEQUENCE award_categories_awardid_seq
2465@@ -1687,17 +2417,17 @@
2466 CACHE 1;
2467
2468
2469-ALTER TABLE myury.award_categories_awardid_seq OWNER TO myradio;
2470+ALTER TABLE award_categories_awardid_seq OWNER TO web;
2471
2472 --
2473--- Name: award_categories_awardid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2474+-- Name: award_categories_awardid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2475 --
2476
2477 ALTER SEQUENCE award_categories_awardid_seq OWNED BY award_categories.awardid;
2478
2479
2480 --
2481--- Name: award_member; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2482+-- Name: award_member; Type: TABLE; Schema: myury; Owner: web
2483 --
2484
2485 CREATE TABLE award_member (
2486@@ -1709,10 +2439,10 @@
2487 );
2488
2489
2490-ALTER TABLE myury.award_member OWNER TO myradio;
2491+ALTER TABLE award_member OWNER TO web;
2492
2493 --
2494--- Name: award_member_awardmemberid_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2495+-- Name: award_member_awardmemberid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2496 --
2497
2498 CREATE SEQUENCE award_member_awardmemberid_seq
2499@@ -1723,17 +2453,80 @@
2500 CACHE 1;
2501
2502
2503-ALTER TABLE myury.award_member_awardmemberid_seq OWNER TO myradio;
2504+ALTER TABLE award_member_awardmemberid_seq OWNER TO web;
2505
2506 --
2507--- Name: award_member_awardmemberid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2508+-- Name: award_member_awardmemberid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2509 --
2510
2511 ALTER SEQUENCE award_member_awardmemberid_seq OWNED BY award_member.awardmemberid;
2512
2513
2514 --
2515--- Name: error_rate; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2516+-- Name: contract_versions; Type: TABLE; Schema: myury; Owner: web
2517+--
2518+
2519+CREATE TABLE contract_versions (
2520+ contract_version_id integer NOT NULL,
2521+ description text,
2522+ ratified_date date,
2523+ enforced_date date
2524+);
2525+
2526+
2527+ALTER TABLE contract_versions OWNER TO web;
2528+
2529+--
2530+-- Name: TABLE contract_versions; Type: COMMENT; Schema: myury; Owner: web
2531+--
2532+
2533+COMMENT ON TABLE contract_versions IS 'Stores the revision history of URY''s presenter contract. This way we can ensure presenters have signed the latest version.';
2534+
2535+
2536+--
2537+-- Name: COLUMN contract_versions.description; Type: COMMENT; Schema: myury; Owner: web
2538+--
2539+
2540+COMMENT ON COLUMN contract_versions.description IS 'A description of revisions made in this version of the contract.';
2541+
2542+
2543+--
2544+-- Name: COLUMN contract_versions.ratified_date; Type: COMMENT; Schema: myury; Owner: web
2545+--
2546+
2547+COMMENT ON COLUMN contract_versions.ratified_date IS 'The date the new version of the contract came into use.';
2548+
2549+
2550+--
2551+-- Name: COLUMN contract_versions.enforced_date; Type: COMMENT; Schema: myury; Owner: web
2552+--
2553+
2554+COMMENT ON COLUMN contract_versions.enforced_date IS 'If NULL, then it isn''t required for presenters to have signed the new contract yet.';
2555+
2556+
2557+--
2558+-- Name: contract_versions_contract_version_id_seq; Type: SEQUENCE; Schema: myury; Owner: web
2559+--
2560+
2561+CREATE SEQUENCE contract_versions_contract_version_id_seq
2562+ START WITH 1
2563+ INCREMENT BY 1
2564+ NO MINVALUE
2565+ NO MAXVALUE
2566+ CACHE 1;
2567+
2568+
2569+ALTER TABLE contract_versions_contract_version_id_seq OWNER TO web;
2570+
2571+--
2572+-- Name: contract_versions_contract_version_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2573+--
2574+
2575+ALTER SEQUENCE contract_versions_contract_version_id_seq OWNED BY contract_versions.contract_version_id;
2576+
2577+
2578+--
2579+-- Name: error_rate; Type: TABLE; Schema: myury; Owner: web
2580 --
2581
2582 CREATE TABLE error_rate (
2583@@ -1746,24 +2539,24 @@
2584 );
2585
2586
2587-ALTER TABLE myury.error_rate OWNER TO myradio;
2588+ALTER TABLE error_rate OWNER TO web;
2589
2590 --
2591--- Name: TABLE error_rate; Type: COMMENT; Schema: myury; Owner: myradio
2592+-- Name: TABLE error_rate; Type: COMMENT; Schema: myury; Owner: web
2593 --
2594
2595 COMMENT ON TABLE error_rate IS 'Stores error and exception counts for every request.';
2596
2597
2598 --
2599--- Name: COLUMN error_rate.queries; Type: COMMENT; Schema: myury; Owner: myradio
2600+-- Name: COLUMN error_rate.queries; Type: COMMENT; Schema: myury; Owner: web
2601 --
2602
2603 COMMENT ON COLUMN error_rate.queries IS 'Number of queries executed, not errors :P';
2604
2605
2606 --
2607--- Name: error_rate_request_id_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2608+-- Name: error_rate_request_id_seq; Type: SEQUENCE; Schema: myury; Owner: web
2609 --
2610
2611 CREATE SEQUENCE error_rate_request_id_seq
2612@@ -1774,17 +2567,227 @@
2613 CACHE 1;
2614
2615
2616-ALTER TABLE myury.error_rate_request_id_seq OWNER TO myradio;
2617+ALTER TABLE error_rate_request_id_seq OWNER TO web;
2618
2619 --
2620--- Name: error_rate_request_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2621+-- Name: error_rate_request_id_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2622 --
2623
2624 ALTER SEQUENCE error_rate_request_id_seq OWNED BY error_rate.request_id;
2625
2626
2627 --
2628--- Name: modules; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2629+-- Name: menu_columns; Type: TABLE; Schema: myury; Owner: web
2630+--
2631+
2632+CREATE TABLE menu_columns (
2633+ columnid integer NOT NULL,
2634+ title character varying(50),
2635+ "position" smallint
2636+);
2637+
2638+
2639+ALTER TABLE menu_columns OWNER TO web;
2640+
2641+--
2642+-- Name: TABLE menu_columns; Type: COMMENT; Schema: myury; Owner: web
2643+--
2644+
2645+COMMENT ON TABLE menu_columns IS 'Stores the column headers for the Menu page';
2646+
2647+
2648+--
2649+-- Name: menu_columns_columnid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2650+--
2651+
2652+CREATE SEQUENCE menu_columns_columnid_seq
2653+ START WITH 1
2654+ INCREMENT BY 1
2655+ NO MINVALUE
2656+ NO MAXVALUE
2657+ CACHE 1;
2658+
2659+
2660+ALTER TABLE menu_columns_columnid_seq OWNER TO web;
2661+
2662+--
2663+-- Name: menu_columns_columnid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2664+--
2665+
2666+ALTER SEQUENCE menu_columns_columnid_seq OWNED BY menu_columns.columnid;
2667+
2668+
2669+--
2670+-- Name: menu_links; Type: TABLE; Schema: myury; Owner: web
2671+--
2672+
2673+CREATE TABLE menu_links (
2674+ itemid integer NOT NULL,
2675+ sectionid integer NOT NULL,
2676+ title character varying(100) NOT NULL,
2677+ url character varying(150) NOT NULL,
2678+ description text
2679+);
2680+
2681+
2682+ALTER TABLE menu_links OWNER TO web;
2683+
2684+--
2685+-- Name: TABLE menu_links; Type: COMMENT; Schema: myury; Owner: web
2686+--
2687+
2688+COMMENT ON TABLE menu_links IS 'Stores simple menu items';
2689+
2690+
2691+--
2692+-- Name: menu_links_itemid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2693+--
2694+
2695+CREATE SEQUENCE menu_links_itemid_seq
2696+ START WITH 1
2697+ INCREMENT BY 1
2698+ NO MINVALUE
2699+ NO MAXVALUE
2700+ CACHE 1;
2701+
2702+
2703+ALTER TABLE menu_links_itemid_seq OWNER TO web;
2704+
2705+--
2706+-- Name: menu_links_itemid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2707+--
2708+
2709+ALTER SEQUENCE menu_links_itemid_seq OWNED BY menu_links.itemid;
2710+
2711+
2712+--
2713+-- Name: menu_module; Type: TABLE; Schema: myury; Owner: web
2714+--
2715+
2716+CREATE TABLE menu_module (
2717+ menumoduleid integer NOT NULL,
2718+ moduleid integer NOT NULL,
2719+ title character varying NOT NULL,
2720+ url character varying NOT NULL,
2721+ description character varying
2722+);
2723+
2724+
2725+ALTER TABLE menu_module OWNER TO web;
2726+
2727+--
2728+-- Name: TABLE menu_module; Type: COMMENT; Schema: myury; Owner: web
2729+--
2730+
2731+COMMENT ON TABLE menu_module IS 'Submenus for modules';
2732+
2733+
2734+--
2735+-- Name: menu_module_menumoduleid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2736+--
2737+
2738+CREATE SEQUENCE menu_module_menumoduleid_seq
2739+ START WITH 1
2740+ INCREMENT BY 1
2741+ NO MINVALUE
2742+ NO MAXVALUE
2743+ CACHE 1;
2744+
2745+
2746+ALTER TABLE menu_module_menumoduleid_seq OWNER TO web;
2747+
2748+--
2749+-- Name: menu_module_menumoduleid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2750+--
2751+
2752+ALTER SEQUENCE menu_module_menumoduleid_seq OWNED BY menu_module.menumoduleid;
2753+
2754+
2755+--
2756+-- Name: menu_sections; Type: TABLE; Schema: myury; Owner: web
2757+--
2758+
2759+CREATE TABLE menu_sections (
2760+ sectionid integer NOT NULL,
2761+ columnid integer,
2762+ title character varying(50),
2763+ "position" smallint
2764+);
2765+
2766+
2767+ALTER TABLE menu_sections OWNER TO web;
2768+
2769+--
2770+-- Name: TABLE menu_sections; Type: COMMENT; Schema: myury; Owner: web
2771+--
2772+
2773+COMMENT ON TABLE menu_sections IS 'Stores section headings for the Menu screen';
2774+
2775+
2776+--
2777+-- Name: menu_sections_sectionid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2778+--
2779+
2780+CREATE SEQUENCE menu_sections_sectionid_seq
2781+ START WITH 1
2782+ INCREMENT BY 1
2783+ NO MINVALUE
2784+ NO MAXVALUE
2785+ CACHE 1;
2786+
2787+
2788+ALTER TABLE menu_sections_sectionid_seq OWNER TO web;
2789+
2790+--
2791+-- Name: menu_sections_sectionid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2792+--
2793+
2794+ALTER SEQUENCE menu_sections_sectionid_seq OWNED BY menu_sections.sectionid;
2795+
2796+
2797+--
2798+-- Name: menu_twigitems; Type: TABLE; Schema: myury; Owner: web
2799+--
2800+
2801+CREATE TABLE menu_twigitems (
2802+ twigitemid integer NOT NULL,
2803+ sectionid integer NOT NULL,
2804+ template character varying(100) NOT NULL
2805+);
2806+
2807+
2808+ALTER TABLE menu_twigitems OWNER TO web;
2809+
2810+--
2811+-- Name: TABLE menu_twigitems; Type: COMMENT; Schema: myury; Owner: web
2812+--
2813+
2814+COMMENT ON TABLE menu_twigitems IS 'Stores twig templates that will appear under menu sections, e.g. for the Get On A Show checklist';
2815+
2816+
2817+--
2818+-- Name: menu_twigitems_twigitemid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2819+--
2820+
2821+CREATE SEQUENCE menu_twigitems_twigitemid_seq
2822+ START WITH 1
2823+ INCREMENT BY 1
2824+ NO MINVALUE
2825+ NO MAXVALUE
2826+ CACHE 1;
2827+
2828+
2829+ALTER TABLE menu_twigitems_twigitemid_seq OWNER TO web;
2830+
2831+--
2832+-- Name: menu_twigitems_twigitemid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2833+--
2834+
2835+ALTER SEQUENCE menu_twigitems_twigitemid_seq OWNED BY menu_twigitems.twigitemid;
2836+
2837+
2838+--
2839+-- Name: modules; Type: TABLE; Schema: myury; Owner: web
2840 --
2841
2842 CREATE TABLE modules (
2843@@ -1795,17 +2798,17 @@
2844 );
2845
2846
2847-ALTER TABLE myury.modules OWNER TO myradio;
2848+ALTER TABLE modules OWNER TO web;
2849
2850 --
2851--- Name: TABLE modules; Type: COMMENT; Schema: myury; Owner: myradio
2852+-- Name: TABLE modules; Type: COMMENT; Schema: myury; Owner: web
2853 --
2854
2855-COMMENT ON TABLE modules IS 'Stores Modules within MyRadio managed Services';
2856+COMMENT ON TABLE modules IS 'Stores Modules within MyURY managed Services';
2857
2858
2859 --
2860--- Name: modules_moduleid_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2861+-- Name: modules_moduleid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2862 --
2863
2864 CREATE SEQUENCE modules_moduleid_seq
2865@@ -1816,17 +2819,17 @@
2866 CACHE 1;
2867
2868
2869-ALTER TABLE myury.modules_moduleid_seq OWNER TO myradio;
2870+ALTER TABLE modules_moduleid_seq OWNER TO web;
2871
2872 --
2873--- Name: modules_moduleid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2874+-- Name: modules_moduleid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2875 --
2876
2877 ALTER SEQUENCE modules_moduleid_seq OWNED BY modules.moduleid;
2878
2879
2880 --
2881--- Name: password_reset_token; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2882+-- Name: password_reset_token; Type: TABLE; Schema: myury; Owner: web
2883 --
2884
2885 CREATE TABLE password_reset_token (
2886@@ -1837,17 +2840,17 @@
2887 );
2888
2889
2890-ALTER TABLE myury.password_reset_token OWNER TO myradio;
2891+ALTER TABLE password_reset_token OWNER TO web;
2892
2893 --
2894--- Name: TABLE password_reset_token; Type: COMMENT; Schema: myury; Owner: myradio
2895+-- Name: TABLE password_reset_token; Type: COMMENT; Schema: myury; Owner: web
2896 --
2897
2898 COMMENT ON TABLE password_reset_token IS 'Tokens used for sending password reset emails.';
2899
2900
2901 --
2902--- Name: photos; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2903+-- Name: photos; Type: TABLE; Schema: myury; Owner: web
2904 --
2905
2906 CREATE TABLE photos (
2907@@ -1858,17 +2861,17 @@
2908 );
2909
2910
2911-ALTER TABLE myury.photos OWNER TO myradio;
2912+ALTER TABLE photos OWNER TO web;
2913
2914 --
2915--- Name: COLUMN photos.format; Type: COMMENT; Schema: myury; Owner: myradio
2916+-- Name: COLUMN photos.format; Type: COMMENT; Schema: myury; Owner: web
2917 --
2918
2919 COMMENT ON COLUMN photos.format IS 'png, jpeg etc - should be the file extension.';
2920
2921
2922 --
2923--- Name: photos_photoid_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2924+-- Name: photos_photoid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2925 --
2926
2927 CREATE SEQUENCE photos_photoid_seq
2928@@ -1879,17 +2882,17 @@
2929 CACHE 1;
2930
2931
2932-ALTER TABLE myury.photos_photoid_seq OWNER TO myradio;
2933+ALTER TABLE photos_photoid_seq OWNER TO web;
2934
2935 --
2936--- Name: photos_photoid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2937+-- Name: photos_photoid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2938 --
2939
2940 ALTER SEQUENCE photos_photoid_seq OWNED BY photos.photoid;
2941
2942
2943 --
2944--- Name: services; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2945+-- Name: services; Type: TABLE; Schema: myury; Owner: web
2946 --
2947
2948 CREATE TABLE services (
2949@@ -1899,17 +2902,17 @@
2950 );
2951
2952
2953-ALTER TABLE myury.services OWNER TO myradio;
2954+ALTER TABLE services OWNER TO web;
2955
2956 --
2957--- Name: TABLE services; Type: COMMENT; Schema: myury; Owner: myradio
2958+-- Name: TABLE services; Type: COMMENT; Schema: myury; Owner: web
2959 --
2960
2961-COMMENT ON TABLE services IS 'Lists all Services managed by MyRadio';
2962+COMMENT ON TABLE services IS 'Lists all Services managed by MyURY';
2963
2964
2965 --
2966--- Name: services_serviceid_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
2967+-- Name: services_serviceid_seq; Type: SEQUENCE; Schema: myury; Owner: web
2968 --
2969
2970 CREATE SEQUENCE services_serviceid_seq
2971@@ -1920,17 +2923,17 @@
2972 CACHE 1;
2973
2974
2975-ALTER TABLE myury.services_serviceid_seq OWNER TO myradio;
2976+ALTER TABLE services_serviceid_seq OWNER TO web;
2977
2978 --
2979--- Name: services_serviceid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
2980+-- Name: services_serviceid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
2981 --
2982
2983 ALTER SEQUENCE services_serviceid_seq OWNED BY services.serviceid;
2984
2985
2986 --
2987--- Name: services_versions; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
2988+-- Name: services_versions; Type: TABLE; Schema: myury; Owner: web
2989 --
2990
2991 CREATE TABLE services_versions (
2992@@ -1943,17 +2946,17 @@
2993 );
2994
2995
2996-ALTER TABLE myury.services_versions OWNER TO myradio;
2997+ALTER TABLE services_versions OWNER TO web;
2998
2999 --
3000--- Name: COLUMN services_versions.proxy_static; Type: COMMENT; Schema: myury; Owner: myradio
3001+-- Name: COLUMN services_versions.proxy_static; Type: COMMENT; Schema: myury; Owner: web
3002 --
3003
3004 COMMENT ON COLUMN services_versions.proxy_static IS 'If true, Twig will be given a base url that proxies all static resources through a JS script to ensure the right version of the file is served.';
3005
3006
3007 --
3008--- Name: services_versions_member; Type: TABLE; Schema: myury; Owner: myradio; Tablespace:
3009+-- Name: services_versions_member; Type: TABLE; Schema: myury; Owner: web
3010 --
3011
3012 CREATE TABLE services_versions_member (
3013@@ -1962,10 +2965,10 @@
3014 );
3015
3016
3017-ALTER TABLE myury.services_versions_member OWNER TO myradio;
3018+ALTER TABLE services_versions_member OWNER TO web;
3019
3020 --
3021--- Name: services_versions_serviceversionid_seq; Type: SEQUENCE; Schema: myury; Owner: myradio
3022+-- Name: services_versions_serviceversionid_seq; Type: SEQUENCE; Schema: myury; Owner: web
3023 --
3024
3025 CREATE SEQUENCE services_versions_serviceversionid_seq
3026@@ -1976,10 +2979,10 @@
3027 CACHE 1;
3028
3029
3030-ALTER TABLE myury.services_versions_serviceversionid_seq OWNER TO myradio;
3031+ALTER TABLE services_versions_serviceversionid_seq OWNER TO web;
3032
3033 --
3034--- Name: services_versions_serviceversionid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: myradio
3035+-- Name: services_versions_serviceversionid_seq; Type: SEQUENCE OWNED BY; Schema: myury; Owner: web
3036 --
3037
3038 ALTER SEQUENCE services_versions_serviceversionid_seq OWNED BY services_versions.serviceversionid;
3039@@ -1988,7 +2991,7 @@
3040 SET search_path = people, pg_catalog;
3041
3042 --
3043--- Name: credit_type; Type: TABLE; Schema: people; Owner: myradio; Tablespace:
3044+-- Name: credit_type; Type: TABLE; Schema: people; Owner: web
3045 --
3046
3047 CREATE TABLE credit_type (
3048@@ -1999,31 +3002,31 @@
3049 );
3050
3051
3052-ALTER TABLE people.credit_type OWNER TO myradio;
3053+ALTER TABLE credit_type OWNER TO web;
3054
3055 --
3056--- Name: TABLE credit_type; Type: COMMENT; Schema: people; Owner: myradio
3057+-- Name: TABLE credit_type; Type: COMMENT; Schema: people; Owner: web
3058 --
3059
3060 COMMENT ON TABLE credit_type IS 'Types of credit (associations between URY people and items such as shows or podcasts they have taken a role in creating).';
3061
3062
3063 --
3064--- Name: COLUMN credit_type.plural; Type: COMMENT; Schema: people; Owner: myradio
3065+-- Name: COLUMN credit_type.plural; Type: COMMENT; Schema: people; Owner: web
3066 --
3067
3068 COMMENT ON COLUMN credit_type.plural IS 'A human-readable plural form of the show credit name, for example "presenters" or "producers".';
3069
3070
3071 --
3072--- Name: COLUMN credit_type.is_in_byline; Type: COMMENT; Schema: people; Owner: myradio
3073+-- Name: COLUMN credit_type.is_in_byline; Type: COMMENT; Schema: people; Owner: web
3074 --
3075
3076 COMMENT ON COLUMN credit_type.is_in_byline IS 'If true, people credited with this credit type will appear in "with XYZ and ABC" by-lines for the show.';
3077
3078
3079 --
3080--- Name: group_root_role; Type: TABLE; Schema: people; Owner: myradio; Tablespace:
3081+-- Name: group_root_role; Type: TABLE; Schema: people; Owner: pgsql
3082 --
3083
3084 CREATE TABLE group_root_role (
3085@@ -2034,17 +3037,17 @@
3086 );
3087
3088
3089-ALTER TABLE people.group_root_role OWNER TO myradio;
3090+ALTER TABLE group_root_role OWNER TO pgsql;
3091
3092 --
3093--- Name: COLUMN group_root_role.group_leader_id; Type: COMMENT; Schema: people; Owner: myradio
3094+-- Name: COLUMN group_root_role.group_leader_id; Type: COMMENT; Schema: people; Owner: pgsql
3095 --
3096
3097 COMMENT ON COLUMN group_root_role.group_leader_id IS 'An optional reference to a role to be considered the ''leader'' role within the group defined by this root.';
3098
3099
3100 --
3101--- Name: group_root_role_group_root_role_id_seq; Type: SEQUENCE; Schema: people; Owner: myradio
3102+-- Name: group_root_role_group_root_role_id_seq; Type: SEQUENCE; Schema: people; Owner: pgsql
3103 --
3104
3105 CREATE SEQUENCE group_root_role_group_root_role_id_seq
3106@@ -2055,17 +3058,17 @@
3107 CACHE 1;
3108
3109
3110-ALTER TABLE people.group_root_role_group_root_role_id_seq OWNER TO myradio;
3111+ALTER TABLE group_root_role_group_root_role_id_seq OWNER TO pgsql;
3112
3113 --
3114--- Name: group_root_role_group_root_role_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: myradio
3115+-- Name: group_root_role_group_root_role_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: pgsql
3116 --
3117
3118 ALTER SEQUENCE group_root_role_group_root_role_id_seq OWNED BY group_root_role.group_root_role_id;
3119
3120
3121 --
3122--- Name: group_type; Type: TABLE; Schema: people; Owner: myradio; Tablespace:
3123+-- Name: group_type; Type: TABLE; Schema: people; Owner: pgsql
3124 --
3125
3126 CREATE TABLE group_type (
3127@@ -2074,10 +3077,10 @@
3128 );
3129
3130
3131-ALTER TABLE people.group_type OWNER TO myradio;
3132+ALTER TABLE group_type OWNER TO pgsql;
3133
3134 --
3135--- Name: group_type_group_type_id_seq; Type: SEQUENCE; Schema: people; Owner: myradio
3136+-- Name: group_type_group_type_id_seq; Type: SEQUENCE; Schema: people; Owner: pgsql
3137 --
3138
3139 CREATE SEQUENCE group_type_group_type_id_seq
3140@@ -2088,17 +3091,17 @@
3141 CACHE 1;
3142
3143
3144-ALTER TABLE people.group_type_group_type_id_seq OWNER TO myradio;
3145+ALTER TABLE group_type_group_type_id_seq OWNER TO pgsql;
3146
3147 --
3148--- Name: group_type_group_type_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: myradio
3149+-- Name: group_type_group_type_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: pgsql
3150 --
3151
3152 ALTER SEQUENCE group_type_group_type_id_seq OWNED BY group_type.group_type_id;
3153
3154
3155 --
3156--- Name: metadata; Type: TABLE; Schema: people; Owner: myradio; Tablespace:
3157+-- Name: metadata; Type: TABLE; Schema: people; Owner: web
3158 --
3159
3160 CREATE TABLE metadata (
3161@@ -2108,14 +3111,16 @@
3162 );
3163
3164
3165-ALTER TABLE people.metadata OWNER TO myradio;
3166+ALTER TABLE metadata OWNER TO web;
3167
3168 --
3169--- Name: TABLE metadata; Type: COMMENT; Schema: people; Owner: myradio
3170+-- Name: TABLE metadata; Type: COMMENT; Schema: people; Owner: web
3171 --
3172
3173 COMMENT ON TABLE metadata IS 'Key-value store for textual metadata associated with rules.
3174+
3175 As of writing the metadata schema is:
3176+
3177 ''Collective-Name'' - human readable name for the group of everyone in this role, example ''Station Managers''. This is used as the team name when the role is a grouproot.
3178 ''Individual-Name'' - human readable name for an individual in this role, example ''Station Manager''.
3179 ''Acronym'' - self-explanatory, example ''SM''.
3180@@ -2124,28 +3129,28 @@
3181
3182
3183 --
3184--- Name: COLUMN metadata.roleid; Type: COMMENT; Schema: people; Owner: myradio
3185+-- Name: COLUMN metadata.roleid; Type: COMMENT; Schema: people; Owner: web
3186 --
3187
3188 COMMENT ON COLUMN metadata.roleid IS 'The unique ID of the role this metadatum concerns.';
3189
3190
3191 --
3192--- Name: COLUMN metadata.key; Type: COMMENT; Schema: people; Owner: myradio
3193+-- Name: COLUMN metadata.key; Type: COMMENT; Schema: people; Owner: web
3194 --
3195
3196 COMMENT ON COLUMN metadata.key IS 'The key of the metadatum; should fit the site schema.';
3197
3198
3199 --
3200--- Name: COLUMN metadata.value; Type: COMMENT; Schema: people; Owner: myradio
3201+-- Name: COLUMN metadata.value; Type: COMMENT; Schema: people; Owner: web
3202 --
3203
3204 COMMENT ON COLUMN metadata.value IS 'The value of the metadatum.';
3205
3206
3207 --
3208--- Name: quote; Type: TABLE; Schema: people; Owner: myradio; Tablespace:
3209+-- Name: quote; Type: TABLE; Schema: people; Owner: web
3210 --
3211
3212 CREATE TABLE quote (
3213@@ -2156,10 +3161,10 @@
3214 );
3215
3216
3217-ALTER TABLE people.quote OWNER TO myradio;
3218+ALTER TABLE quote OWNER TO web;
3219
3220 --
3221--- Name: quote_quote_id_seq; Type: SEQUENCE; Schema: people; Owner: myradio
3222+-- Name: quote_quote_id_seq; Type: SEQUENCE; Schema: people; Owner: web
3223 --
3224
3225 CREATE SEQUENCE quote_quote_id_seq
3226@@ -2170,17 +3175,17 @@
3227 CACHE 1;
3228
3229
3230-ALTER TABLE people.quote_quote_id_seq OWNER TO myradio;
3231+ALTER TABLE quote_quote_id_seq OWNER TO web;
3232
3233 --
3234--- Name: quote_quote_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: myradio
3235+-- Name: quote_quote_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: web
3236 --
3237
3238 ALTER SEQUENCE quote_quote_id_seq OWNED BY quote.quote_id;
3239
3240
3241 --
3242--- Name: role; Type: TABLE; Schema: people; Owner: myradio; Tablespace:
3243+-- Name: role; Type: TABLE; Schema: people; Owner: web
3244 --
3245
3246 CREATE TABLE role (
3247@@ -2192,52 +3197,52 @@
3248 );
3249
3250
3251-ALTER TABLE people.role OWNER TO myradio;
3252+ALTER TABLE role OWNER TO web;
3253
3254 --
3255--- Name: TABLE role; Type: COMMENT; Schema: people; Owner: myradio
3256+-- Name: TABLE role; Type: COMMENT; Schema: people; Owner: web
3257 --
3258
3259 COMMENT ON TABLE role IS 'Role definitions for LeRouge';
3260
3261
3262 --
3263--- Name: COLUMN role.role_id; Type: COMMENT; Schema: people; Owner: myradio
3264+-- Name: COLUMN role.role_id; Type: COMMENT; Schema: people; Owner: web
3265 --
3266
3267 COMMENT ON COLUMN role.role_id IS 'The unique ID of this role.';
3268
3269
3270 --
3271--- Name: COLUMN role.alias; Type: COMMENT; Schema: people; Owner: myradio
3272+-- Name: COLUMN role.alias; Type: COMMENT; Schema: people; Owner: web
3273 --
3274
3275 COMMENT ON COLUMN role.alias IS 'The internal alias name of this role. (Human readable name is considered metadata)';
3276
3277
3278 --
3279--- Name: COLUMN role.visibilitylevel; Type: COMMENT; Schema: people; Owner: myradio
3280+-- Name: COLUMN role.visibilitylevel; Type: COMMENT; Schema: people; Owner: web
3281 --
3282
3283 COMMENT ON COLUMN role.visibilitylevel IS 'The visibility level of this role; see roles.visibilities.';
3284
3285
3286 --
3287--- Name: COLUMN role.isactive; Type: COMMENT; Schema: people; Owner: myradio
3288+-- Name: COLUMN role.isactive; Type: COMMENT; Schema: people; Owner: web
3289 --
3290
3291 COMMENT ON COLUMN role.isactive IS 'If false, this role should be ignored completely during any role actions.';
3292
3293
3294 --
3295--- Name: COLUMN role.ordering; Type: COMMENT; Schema: people; Owner: myradio
3296+-- Name: COLUMN role.ordering; Type: COMMENT; Schema: people; Owner: web
3297 --
3298
3299 COMMENT ON COLUMN role.ordering IS 'Coefficient used to determine how high up in lists this role appears (the lower, the more senior). For officer positions this should reflect the constitutional pecking order; for teams, it just defines the order of teams in any ordered team lists.';
3300
3301
3302 --
3303--- Name: role_inheritance; Type: TABLE; Schema: people; Owner: myradio; Tablespace:
3304+-- Name: role_inheritance; Type: TABLE; Schema: people; Owner: web
3305 --
3306
3307 CREATE TABLE role_inheritance (
3308@@ -2247,38 +3252,38 @@
3309 );
3310
3311
3312-ALTER TABLE people.role_inheritance OWNER TO myradio;
3313+ALTER TABLE role_inheritance OWNER TO web;
3314
3315 --
3316--- Name: TABLE role_inheritance; Type: COMMENT; Schema: people; Owner: myradio
3317+-- Name: TABLE role_inheritance; Type: COMMENT; Schema: people; Owner: web
3318 --
3319
3320 COMMENT ON TABLE role_inheritance IS 'Pairs of roles and their immediate parents, used to create the role inheritance graph.';
3321
3322
3323 --
3324--- Name: COLUMN role_inheritance.child_id; Type: COMMENT; Schema: people; Owner: myradio
3325+-- Name: COLUMN role_inheritance.child_id; Type: COMMENT; Schema: people; Owner: web
3326 --
3327
3328 COMMENT ON COLUMN role_inheritance.child_id IS 'The unique ID of the child row.';
3329
3330
3331 --
3332--- Name: COLUMN role_inheritance.parent_id; Type: COMMENT; Schema: people; Owner: myradio
3333+-- Name: COLUMN role_inheritance.parent_id; Type: COMMENT; Schema: people; Owner: web
3334 --
3335
3336 COMMENT ON COLUMN role_inheritance.parent_id IS 'The unique ID of the parent row.';
3337
3338
3339 --
3340--- Name: COLUMN role_inheritance.role_inheritance_id; Type: COMMENT; Schema: people; Owner: myradio
3341+-- Name: COLUMN role_inheritance.role_inheritance_id; Type: COMMENT; Schema: people; Owner: web
3342 --
3343
3344 COMMENT ON COLUMN role_inheritance.role_inheritance_id IS 'The unique ID of this inheritance binding.';
3345
3346
3347 --
3348--- Name: role_inheritance_role_inheritance_id_seq; Type: SEQUENCE; Schema: people; Owner: myradio
3349+-- Name: role_inheritance_role_inheritance_id_seq; Type: SEQUENCE; Schema: people; Owner: web
3350 --
3351
3352 CREATE SEQUENCE role_inheritance_role_inheritance_id_seq
3353@@ -2289,17 +3294,17 @@
3354 CACHE 1;
3355
3356
3357-ALTER TABLE people.role_inheritance_role_inheritance_id_seq OWNER TO myradio;
3358+ALTER TABLE role_inheritance_role_inheritance_id_seq OWNER TO web;
3359
3360 --
3361--- Name: role_inheritance_role_inheritance_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: myradio
3362+-- Name: role_inheritance_role_inheritance_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: web
3363 --
3364
3365 ALTER SEQUENCE role_inheritance_role_inheritance_id_seq OWNED BY role_inheritance.role_inheritance_id;
3366
3367
3368 --
3369--- Name: role_text_metadata; Type: TABLE; Schema: people; Owner: myradio; Tablespace:
3370+-- Name: role_text_metadata; Type: TABLE; Schema: people; Owner: web
3371 --
3372
3373 CREATE TABLE role_text_metadata (
3374@@ -2314,24 +3319,24 @@
3375 );
3376
3377
3378-ALTER TABLE people.role_text_metadata OWNER TO myradio;
3379+ALTER TABLE role_text_metadata OWNER TO web;
3380
3381 --
3382--- Name: COLUMN role_text_metadata.role_id; Type: COMMENT; Schema: people; Owner: myradio
3383+-- Name: COLUMN role_text_metadata.role_id; Type: COMMENT; Schema: people; Owner: web
3384 --
3385
3386 COMMENT ON COLUMN role_text_metadata.role_id IS 'The ID of the role this metadatum concerns.';
3387
3388
3389 --
3390--- Name: COLUMN role_text_metadata.role_text_metadata_id; Type: COMMENT; Schema: people; Owner: myradio
3391+-- Name: COLUMN role_text_metadata.role_text_metadata_id; Type: COMMENT; Schema: people; Owner: web
3392 --
3393
3394 COMMENT ON COLUMN role_text_metadata.role_text_metadata_id IS 'The unique numeric ID of this metadatum.';
3395
3396
3397 --
3398--- Name: role_metadata_role_metadata_id_seq; Type: SEQUENCE; Schema: people; Owner: myradio
3399+-- Name: role_metadata_role_metadata_id_seq; Type: SEQUENCE; Schema: people; Owner: web
3400 --
3401
3402 CREATE SEQUENCE role_metadata_role_metadata_id_seq
3403@@ -2342,17 +3347,17 @@
3404 CACHE 1;
3405
3406
3407-ALTER TABLE people.role_metadata_role_metadata_id_seq OWNER TO myradio;
3408+ALTER TABLE role_metadata_role_metadata_id_seq OWNER TO web;
3409
3410 --
3411--- Name: role_metadata_role_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: myradio
3412+-- Name: role_metadata_role_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: web
3413 --
3414
3415 ALTER SEQUENCE role_metadata_role_metadata_id_seq OWNED BY role_text_metadata.role_text_metadata_id;
3416
3417
3418 --
3419--- Name: role_visibility; Type: TABLE; Schema: people; Owner: myradio; Tablespace:
3420+-- Name: role_visibility; Type: TABLE; Schema: people; Owner: web
3421 --
3422
3423 CREATE TABLE role_visibility (
3424@@ -2362,38 +3367,38 @@
3425 );
3426
3427
3428-ALTER TABLE people.role_visibility OWNER TO myradio;
3429+ALTER TABLE role_visibility OWNER TO web;
3430
3431 --
3432--- Name: TABLE role_visibility; Type: COMMENT; Schema: people; Owner: myradio
3433+-- Name: TABLE role_visibility; Type: COMMENT; Schema: people; Owner: web
3434 --
3435
3436 COMMENT ON TABLE role_visibility IS 'Enumeration of types of visibility and their human readable names and descriptions; used to ensure at the database level that incorrect visibilities cannot be used.';
3437
3438
3439 --
3440--- Name: COLUMN role_visibility.role_visibility_id; Type: COMMENT; Schema: people; Owner: myradio
3441+-- Name: COLUMN role_visibility.role_visibility_id; Type: COMMENT; Schema: people; Owner: web
3442 --
3443
3444 COMMENT ON COLUMN role_visibility.role_visibility_id IS 'The unique ID of this visibility level.';
3445
3446
3447 --
3448--- Name: COLUMN role_visibility.name; Type: COMMENT; Schema: people; Owner: myradio
3449+-- Name: COLUMN role_visibility.name; Type: COMMENT; Schema: people; Owner: web
3450 --
3451
3452 COMMENT ON COLUMN role_visibility.name IS 'A human-readable short name for the visibility level.';
3453
3454
3455 --
3456--- Name: COLUMN role_visibility.description; Type: COMMENT; Schema: people; Owner: myradio
3457+-- Name: COLUMN role_visibility.description; Type: COMMENT; Schema: people; Owner: web
3458 --
3459
3460 COMMENT ON COLUMN role_visibility.description IS 'Optional description for the visibility level.';
3461
3462
3463 --
3464--- Name: roles_id_seq; Type: SEQUENCE; Schema: people; Owner: myradio
3465+-- Name: roles_id_seq; Type: SEQUENCE; Schema: people; Owner: web
3466 --
3467
3468 CREATE SEQUENCE roles_id_seq
3469@@ -2404,17 +3409,17 @@
3470 CACHE 1;
3471
3472
3473-ALTER TABLE people.roles_id_seq OWNER TO myradio;
3474+ALTER TABLE roles_id_seq OWNER TO web;
3475
3476 --
3477--- Name: roles_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: myradio
3478+-- Name: roles_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: web
3479 --
3480
3481 ALTER SEQUENCE roles_id_seq OWNED BY role.role_id;
3482
3483
3484 --
3485--- Name: schedule.showcredittype_id_seq; Type: SEQUENCE; Schema: people; Owner: myradio
3486+-- Name: schedule.showcredittype_id_seq; Type: SEQUENCE; Schema: people; Owner: web
3487 --
3488
3489 CREATE SEQUENCE "schedule.showcredittype_id_seq"
3490@@ -2425,17 +3430,17 @@
3491 CACHE 1;
3492
3493
3494-ALTER TABLE people."schedule.showcredittype_id_seq" OWNER TO myradio;
3495+ALTER TABLE "schedule.showcredittype_id_seq" OWNER TO web;
3496
3497 --
3498--- Name: schedule.showcredittype_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: myradio
3499+-- Name: schedule.showcredittype_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: web
3500 --
3501
3502 ALTER SEQUENCE "schedule.showcredittype_id_seq" OWNED BY credit_type.credit_type_id;
3503
3504
3505 --
3506--- Name: types_id_seq; Type: SEQUENCE; Schema: people; Owner: myradio
3507+-- Name: types_id_seq; Type: SEQUENCE; Schema: people; Owner: web
3508 --
3509
3510 CREATE SEQUENCE types_id_seq
3511@@ -2446,10 +3451,10 @@
3512 CACHE 1;
3513
3514
3515-ALTER TABLE people.types_id_seq OWNER TO myradio;
3516+ALTER TABLE types_id_seq OWNER TO web;
3517
3518 --
3519--- Name: types_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: myradio
3520+-- Name: types_id_seq; Type: SEQUENCE OWNED BY; Schema: people; Owner: web
3521 --
3522
3523 ALTER SEQUENCE types_id_seq OWNED BY role_visibility.role_visibility_id;
3524@@ -2457,124 +3462,10 @@
3525
3526 SET search_path = public, pg_catalog;
3527
3528---
3529--- Name: acl_member; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3530---
3531-
3532-CREATE TABLE acl_member (
3533- privilegeid integer NOT NULL,
3534- memberid integer,
3535- class text NOT NULL,
3536- verb text NOT NULL,
3537- scope integer DEFAULT 0 NOT NULL
3538-);
3539-
3540-
3541-ALTER TABLE public.acl_member OWNER TO myradio;
3542-
3543---
3544--- Name: TABLE acl_member; Type: COMMENT; Schema: public; Owner: myradio
3545---
3546-
3547-COMMENT ON TABLE acl_member IS 'Access Control List for regular members (used to grant temporary and extraordinary permissions)';
3548-
3549-
3550---
3551--- Name: COLUMN acl_member.privilegeid; Type: COMMENT; Schema: public; Owner: myradio
3552---
3553-
3554-COMMENT ON COLUMN acl_member.privilegeid IS 'The unique ID of this ACL row.';
3555-
3556-
3557---
3558--- Name: COLUMN acl_member.memberid; Type: COMMENT; Schema: public; Owner: myradio
3559---
3560-
3561-COMMENT ON COLUMN acl_member.memberid IS 'The unique ID of the member being granted a permission.';
3562-
3563-
3564---
3565--- Name: COLUMN acl_member.class; Type: COMMENT; Schema: public; Owner: myradio
3566---
3567-
3568-COMMENT ON COLUMN acl_member.class IS 'The full name of the Rapier object class a permission is being granted for.';
3569-
3570-
3571---
3572--- Name: COLUMN acl_member.verb; Type: COMMENT; Schema: public; Owner: myradio
3573---
3574-
3575-COMMENT ON COLUMN acl_member.verb IS 'The verb (eg "read") representing the privileged action being granted.';
3576-
3577-
3578---
3579--- Name: COLUMN acl_member.scope; Type: COMMENT; Schema: public; Owner: myradio
3580---
3581-
3582-COMMENT ON COLUMN acl_member.scope IS 'The scope of this action being granted. (see constants_acl_scope).';
3583-
3584-
3585---
3586--- Name: acl_member_privilegeid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3587---
3588-
3589-CREATE SEQUENCE acl_member_privilegeid_seq
3590- START WITH 1
3591- INCREMENT BY 1
3592- NO MINVALUE
3593- NO MAXVALUE
3594- CACHE 1;
3595-
3596-
3597-ALTER TABLE public.acl_member_privilegeid_seq OWNER TO myradio;
3598-
3599---
3600--- Name: acl_member_privilegeid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
3601---
3602-
3603-ALTER SEQUENCE acl_member_privilegeid_seq OWNED BY acl_member.privilegeid;
3604-
3605-
3606---
3607--- Name: acl_officer; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3608---
3609-
3610-CREATE TABLE acl_officer (
3611- privilegeid integer DEFAULT nextval('acl_member_privilegeid_seq'::regclass) NOT NULL,
3612- officerid integer NOT NULL,
3613- class text NOT NULL,
3614- verb text NOT NULL,
3615- scope integer DEFAULT 0 NOT NULL
3616-);
3617-
3618-
3619-ALTER TABLE public.acl_officer OWNER TO myradio;
3620-
3621---
3622--- Name: COLUMN acl_officer.class; Type: COMMENT; Schema: public; Owner: myradio
3623---
3624-
3625-COMMENT ON COLUMN acl_officer.class IS 'The full name of the Rapier object class a permission is being granted for.';
3626-
3627-
3628---
3629--- Name: acl_officer_privilegeid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3630---
3631-
3632-CREATE SEQUENCE acl_officer_privilegeid_seq
3633- START WITH 1
3634- INCREMENT BY 1
3635- NO MINVALUE
3636- NO MAXVALUE
3637- CACHE 1;
3638-
3639-
3640-ALTER TABLE public.acl_officer_privilegeid_seq OWNER TO myradio;
3641-
3642 SET default_with_oids = true;
3643
3644 --
3645--- Name: auth; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3646+-- Name: auth; Type: TABLE; Schema: public; Owner: pgsql
3647 --
3648
3649 CREATE TABLE auth (
3650@@ -2586,24 +3477,24 @@
3651 );
3652
3653
3654-ALTER TABLE public.auth OWNER TO myradio;
3655+ALTER TABLE auth OWNER TO pgsql;
3656
3657 --
3658--- Name: TABLE auth; Type: COMMENT; Schema: public; Owner: myradio
3659+-- Name: TABLE auth; Type: COMMENT; Schema: public; Owner: pgsql
3660 --
3661
3662 COMMENT ON TABLE auth IS 'Grants users temporary permissions on the back end.';
3663
3664
3665 --
3666--- Name: COLUMN auth.lookupid; Type: COMMENT; Schema: public; Owner: myradio
3667+-- Name: COLUMN auth.lookupid; Type: COMMENT; Schema: public; Owner: pgsql
3668 --
3669
3670 COMMENT ON COLUMN auth.lookupid IS 'Permission granded to the user';
3671
3672
3673 --
3674--- Name: COLUMN auth.endtime; Type: COMMENT; Schema: public; Owner: myradio
3675+-- Name: COLUMN auth.endtime; Type: COMMENT; Schema: public; Owner: pgsql
3676 --
3677
3678 COMMENT ON COLUMN auth.endtime IS 'Permission runs out now; NULL = permenant.';
3679@@ -2612,7 +3503,7 @@
3680 SET default_with_oids = false;
3681
3682 --
3683--- Name: auth_group; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3684+-- Name: auth_group; Type: TABLE; Schema: public; Owner: django
3685 --
3686
3687 CREATE TABLE auth_group (
3688@@ -2621,10 +3512,10 @@
3689 );
3690
3691
3692-ALTER TABLE public.auth_group OWNER TO myradio;
3693+ALTER TABLE auth_group OWNER TO django;
3694
3695 --
3696--- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3697+-- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: django
3698 --
3699
3700 CREATE SEQUENCE auth_group_id_seq
3701@@ -2635,10 +3526,10 @@
3702 CACHE 1;
3703
3704
3705-ALTER TABLE public.auth_group_id_seq OWNER TO myradio;
3706+ALTER TABLE auth_group_id_seq OWNER TO django;
3707
3708 --
3709--- Name: auth_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
3710+-- Name: auth_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django
3711 --
3712
3713 ALTER SEQUENCE auth_group_id_seq OWNED BY auth_group.id;
3714@@ -2647,7 +3538,7 @@
3715 SET default_with_oids = true;
3716
3717 --
3718--- Name: auth_officer; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3719+-- Name: auth_officer; Type: TABLE; Schema: public; Owner: pgsql
3720 --
3721
3722 CREATE TABLE auth_officer (
3723@@ -2656,10 +3547,10 @@
3724 );
3725
3726
3727-ALTER TABLE public.auth_officer OWNER TO myradio;
3728+ALTER TABLE auth_officer OWNER TO pgsql;
3729
3730 --
3731--- Name: TABLE auth_officer; Type: COMMENT; Schema: public; Owner: myradio
3732+-- Name: TABLE auth_officer; Type: COMMENT; Schema: public; Owner: pgsql
3733 --
3734
3735 COMMENT ON TABLE auth_officer IS 'Grants permanent back end permissions to people currently holding officer posts.';
3736@@ -2668,42 +3559,7 @@
3737 SET default_with_oids = false;
3738
3739 --
3740--- Name: auth_permission; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3741---
3742-
3743-CREATE TABLE auth_permission (
3744- id integer NOT NULL,
3745- name character varying(50) NOT NULL,
3746- content_type_id integer NOT NULL,
3747- codename character varying(100) NOT NULL
3748-);
3749-
3750-
3751-ALTER TABLE public.auth_permission OWNER TO myradio;
3752-
3753---
3754--- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3755---
3756-
3757-CREATE SEQUENCE auth_permission_id_seq
3758- START WITH 1
3759- INCREMENT BY 1
3760- NO MINVALUE
3761- NO MAXVALUE
3762- CACHE 1;
3763-
3764-
3765-ALTER TABLE public.auth_permission_id_seq OWNER TO myradio;
3766-
3767---
3768--- Name: auth_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
3769---
3770-
3771-ALTER SEQUENCE auth_permission_id_seq OWNED BY auth_permission.id;
3772-
3773-
3774---
3775--- Name: auth_subnet; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3776+-- Name: auth_subnet; Type: TABLE; Schema: public; Owner: web
3777 --
3778
3779 CREATE TABLE auth_subnet (
3780@@ -2712,17 +3568,17 @@
3781 );
3782
3783
3784-ALTER TABLE public.auth_subnet OWNER TO myradio;
3785+ALTER TABLE auth_subnet OWNER TO web;
3786
3787 --
3788--- Name: TABLE auth_subnet; Type: COMMENT; Schema: public; Owner: myradio
3789+-- Name: TABLE auth_subnet; Type: COMMENT; Schema: public; Owner: web
3790 --
3791
3792 COMMENT ON TABLE auth_subnet IS 'Allow users logged in from specific clients machines access to additional resources';
3793
3794
3795 --
3796--- Name: auth_trainingstatus; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3797+-- Name: auth_trainingstatus; Type: TABLE; Schema: public; Owner: web
3798 --
3799
3800 CREATE TABLE auth_trainingstatus (
3801@@ -2731,17 +3587,17 @@
3802 );
3803
3804
3805-ALTER TABLE public.auth_trainingstatus OWNER TO myradio;
3806+ALTER TABLE auth_trainingstatus OWNER TO web;
3807
3808 --
3809--- Name: TABLE auth_trainingstatus; Type: COMMENT; Schema: public; Owner: myradio
3810+-- Name: TABLE auth_trainingstatus; Type: COMMENT; Schema: public; Owner: web
3811 --
3812
3813 COMMENT ON TABLE auth_trainingstatus IS 'Permissions granted to users with the given training status';
3814
3815
3816 --
3817--- Name: auth_user; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3818+-- Name: auth_user; Type: TABLE; Schema: public; Owner: django
3819 --
3820
3821 CREATE TABLE auth_user (
3822@@ -2759,10 +3615,10 @@
3823 );
3824
3825
3826-ALTER TABLE public.auth_user OWNER TO myradio;
3827+ALTER TABLE auth_user OWNER TO django;
3828
3829 --
3830--- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3831+-- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: django
3832 --
3833
3834 CREATE TABLE auth_user_groups (
3835@@ -2772,10 +3628,10 @@
3836 );
3837
3838
3839-ALTER TABLE public.auth_user_groups OWNER TO myradio;
3840+ALTER TABLE auth_user_groups OWNER TO django;
3841
3842 --
3843--- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3844+-- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: django
3845 --
3846
3847 CREATE SEQUENCE auth_user_groups_id_seq
3848@@ -2786,17 +3642,17 @@
3849 CACHE 1;
3850
3851
3852-ALTER TABLE public.auth_user_groups_id_seq OWNER TO myradio;
3853+ALTER TABLE auth_user_groups_id_seq OWNER TO django;
3854
3855 --
3856--- Name: auth_user_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
3857+-- Name: auth_user_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django
3858 --
3859
3860 ALTER SEQUENCE auth_user_groups_id_seq OWNED BY auth_user_groups.id;
3861
3862
3863 --
3864--- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3865+-- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: django
3866 --
3867
3868 CREATE SEQUENCE auth_user_id_seq
3869@@ -2807,17 +3663,17 @@
3870 CACHE 1;
3871
3872
3873-ALTER TABLE public.auth_user_id_seq OWNER TO myradio;
3874+ALTER TABLE auth_user_id_seq OWNER TO django;
3875
3876 --
3877--- Name: auth_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
3878+-- Name: auth_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django
3879 --
3880
3881 ALTER SEQUENCE auth_user_id_seq OWNED BY auth_user.id;
3882
3883
3884 --
3885--- Name: banner_category_categoryid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3886+-- Name: banner_category_categoryid_seq; Type: SEQUENCE; Schema: public; Owner: web
3887 --
3888
3889 CREATE SEQUENCE banner_category_categoryid_seq
3890@@ -2828,12 +3684,12 @@
3891 CACHE 1;
3892
3893
3894-ALTER TABLE public.banner_category_categoryid_seq OWNER TO myradio;
3895+ALTER TABLE banner_category_categoryid_seq OWNER TO web;
3896
3897 SET default_with_oids = true;
3898
3899 --
3900--- Name: baps_audio; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3901+-- Name: baps_audio; Type: TABLE; Schema: public; Owner: web
3902 --
3903
3904 CREATE TABLE baps_audio (
3905@@ -2843,10 +3699,10 @@
3906 );
3907
3908
3909-ALTER TABLE public.baps_audio OWNER TO myradio;
3910+ALTER TABLE baps_audio OWNER TO web;
3911
3912 --
3913--- Name: baps_audio_audioid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3914+-- Name: baps_audio_audioid_seq; Type: SEQUENCE; Schema: public; Owner: web
3915 --
3916
3917 CREATE SEQUENCE baps_audio_audioid_seq
3918@@ -2857,17 +3713,17 @@
3919 CACHE 1;
3920
3921
3922-ALTER TABLE public.baps_audio_audioid_seq OWNER TO myradio;
3923+ALTER TABLE baps_audio_audioid_seq OWNER TO web;
3924
3925 --
3926--- Name: baps_audio_audioid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
3927+-- Name: baps_audio_audioid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
3928 --
3929
3930 ALTER SEQUENCE baps_audio_audioid_seq OWNED BY baps_audio.audioid;
3931
3932
3933 --
3934--- Name: baps_audiolog; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3935+-- Name: baps_audiolog; Type: TABLE; Schema: public; Owner: web
3936 --
3937
3938 CREATE TABLE baps_audiolog (
3939@@ -2880,10 +3736,10 @@
3940 );
3941
3942
3943-ALTER TABLE public.baps_audiolog OWNER TO myradio;
3944+ALTER TABLE baps_audiolog OWNER TO web;
3945
3946 --
3947--- Name: baps_audiolog_audiologid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3948+-- Name: baps_audiolog_audiologid_seq; Type: SEQUENCE; Schema: public; Owner: web
3949 --
3950
3951 CREATE SEQUENCE baps_audiolog_audiologid_seq
3952@@ -2894,17 +3750,17 @@
3953 CACHE 1;
3954
3955
3956-ALTER TABLE public.baps_audiolog_audiologid_seq OWNER TO myradio;
3957+ALTER TABLE baps_audiolog_audiologid_seq OWNER TO web;
3958
3959 --
3960--- Name: baps_audiolog_audiologid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
3961+-- Name: baps_audiolog_audiologid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
3962 --
3963
3964 ALTER SEQUENCE baps_audiolog_audiologid_seq OWNED BY baps_audiolog.audiologid;
3965
3966
3967 --
3968--- Name: baps_filefolder; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
3969+-- Name: baps_filefolder; Type: TABLE; Schema: public; Owner: web
3970 --
3971
3972 CREATE TABLE baps_filefolder (
3973@@ -2920,10 +3776,10 @@
3974 );
3975
3976
3977-ALTER TABLE public.baps_filefolder OWNER TO myradio;
3978+ALTER TABLE baps_filefolder OWNER TO web;
3979
3980 --
3981--- Name: baps_filefolder_filefolderid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
3982+-- Name: baps_filefolder_filefolderid_seq; Type: SEQUENCE; Schema: public; Owner: web
3983 --
3984
3985 CREATE SEQUENCE baps_filefolder_filefolderid_seq
3986@@ -2934,17 +3790,17 @@
3987 CACHE 1;
3988
3989
3990-ALTER TABLE public.baps_filefolder_filefolderid_seq OWNER TO myradio;
3991+ALTER TABLE baps_filefolder_filefolderid_seq OWNER TO web;
3992
3993 --
3994--- Name: baps_filefolder_filefolderid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
3995+-- Name: baps_filefolder_filefolderid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
3996 --
3997
3998 ALTER SEQUENCE baps_filefolder_filefolderid_seq OWNED BY baps_filefolder.filefolderid;
3999
4000
4001 --
4002--- Name: baps_fileitem; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4003+-- Name: baps_fileitem; Type: TABLE; Schema: public; Owner: web
4004 --
4005
4006 CREATE TABLE baps_fileitem (
4007@@ -2953,10 +3809,10 @@
4008 );
4009
4010
4011-ALTER TABLE public.baps_fileitem OWNER TO myradio;
4012+ALTER TABLE baps_fileitem OWNER TO web;
4013
4014 --
4015--- Name: baps_fileitem_fileitemid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4016+-- Name: baps_fileitem_fileitemid_seq; Type: SEQUENCE; Schema: public; Owner: web
4017 --
4018
4019 CREATE SEQUENCE baps_fileitem_fileitemid_seq
4020@@ -2967,17 +3823,17 @@
4021 CACHE 1;
4022
4023
4024-ALTER TABLE public.baps_fileitem_fileitemid_seq OWNER TO myradio;
4025+ALTER TABLE baps_fileitem_fileitemid_seq OWNER TO web;
4026
4027 --
4028--- Name: baps_fileitem_fileitemid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4029+-- Name: baps_fileitem_fileitemid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4030 --
4031
4032 ALTER SEQUENCE baps_fileitem_fileitemid_seq OWNED BY baps_fileitem.fileitemid;
4033
4034
4035 --
4036--- Name: baps_item; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4037+-- Name: baps_item; Type: TABLE; Schema: public; Owner: web
4038 --
4039
4040 CREATE TABLE baps_item (
4041@@ -2989,14 +3845,14 @@
4042 libraryitemid integer,
4043 fileitemid integer,
4044 name2 character varying(255),
4045- CONSTRAINT baps_item_check CHECK ((((((textitemid IS NULL) AND (libraryitemid IS NULL)) AND (fileitemid IS NOT NULL)) OR (((textitemid IS NOT NULL) AND (libraryitemid IS NULL)) AND (fileitemid IS NULL))) OR (((textitemid IS NULL) AND (libraryitemid IS NOT NULL)) AND (fileitemid IS NULL))))
4046+ CONSTRAINT baps_item_check CHECK ((((textitemid IS NULL) AND (libraryitemid IS NULL) AND (fileitemid IS NOT NULL)) OR ((textitemid IS NOT NULL) AND (libraryitemid IS NULL) AND (fileitemid IS NULL)) OR ((textitemid IS NULL) AND (libraryitemid IS NOT NULL) AND (fileitemid IS NULL))))
4047 );
4048
4049
4050-ALTER TABLE public.baps_item OWNER TO myradio;
4051+ALTER TABLE baps_item OWNER TO web;
4052
4053 --
4054--- Name: baps_item_itemid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4055+-- Name: baps_item_itemid_seq; Type: SEQUENCE; Schema: public; Owner: web
4056 --
4057
4058 CREATE SEQUENCE baps_item_itemid_seq
4059@@ -3007,17 +3863,17 @@
4060 CACHE 1;
4061
4062
4063-ALTER TABLE public.baps_item_itemid_seq OWNER TO myradio;
4064+ALTER TABLE baps_item_itemid_seq OWNER TO web;
4065
4066 --
4067--- Name: baps_item_itemid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4068+-- Name: baps_item_itemid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4069 --
4070
4071 ALTER SEQUENCE baps_item_itemid_seq OWNED BY baps_item.itemid;
4072
4073
4074 --
4075--- Name: baps_libraryitem; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4076+-- Name: baps_libraryitem; Type: TABLE; Schema: public; Owner: web
4077 --
4078
4079 CREATE TABLE baps_libraryitem (
4080@@ -3027,10 +3883,10 @@
4081 );
4082
4083
4084-ALTER TABLE public.baps_libraryitem OWNER TO myradio;
4085+ALTER TABLE baps_libraryitem OWNER TO web;
4086
4087 --
4088--- Name: baps_libraryitem_libraryitemid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4089+-- Name: baps_libraryitem_libraryitemid_seq; Type: SEQUENCE; Schema: public; Owner: web
4090 --
4091
4092 CREATE SEQUENCE baps_libraryitem_libraryitemid_seq
4093@@ -3041,17 +3897,17 @@
4094 CACHE 1;
4095
4096
4097-ALTER TABLE public.baps_libraryitem_libraryitemid_seq OWNER TO myradio;
4098+ALTER TABLE baps_libraryitem_libraryitemid_seq OWNER TO web;
4099
4100 --
4101--- Name: baps_libraryitem_libraryitemid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4102+-- Name: baps_libraryitem_libraryitemid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4103 --
4104
4105 ALTER SEQUENCE baps_libraryitem_libraryitemid_seq OWNED BY baps_libraryitem.libraryitemid;
4106
4107
4108 --
4109--- Name: baps_listing; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4110+-- Name: baps_listing; Type: TABLE; Schema: public; Owner: web
4111 --
4112
4113 CREATE TABLE baps_listing (
4114@@ -3062,10 +3918,10 @@
4115 );
4116
4117
4118-ALTER TABLE public.baps_listing OWNER TO myradio;
4119+ALTER TABLE baps_listing OWNER TO web;
4120
4121 --
4122--- Name: baps_listing_listingid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4123+-- Name: baps_listing_listingid_seq; Type: SEQUENCE; Schema: public; Owner: web
4124 --
4125
4126 CREATE SEQUENCE baps_listing_listingid_seq
4127@@ -3076,17 +3932,17 @@
4128 CACHE 1;
4129
4130
4131-ALTER TABLE public.baps_listing_listingid_seq OWNER TO myradio;
4132+ALTER TABLE baps_listing_listingid_seq OWNER TO web;
4133
4134 --
4135--- Name: baps_listing_listingid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4136+-- Name: baps_listing_listingid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4137 --
4138
4139 ALTER SEQUENCE baps_listing_listingid_seq OWNED BY baps_listing.listingid;
4140
4141
4142 --
4143--- Name: baps_personal_collection_unique_id; Type: SEQUENCE; Schema: public; Owner: myradio
4144+-- Name: baps_personal_collection_unique_id; Type: SEQUENCE; Schema: public; Owner: web
4145 --
4146
4147 CREATE SEQUENCE baps_personal_collection_unique_id
4148@@ -3097,10 +3953,10 @@
4149 CACHE 1000;
4150
4151
4152-ALTER TABLE public.baps_personal_collection_unique_id OWNER TO myradio;
4153+ALTER TABLE baps_personal_collection_unique_id OWNER TO web;
4154
4155 --
4156--- Name: rec_track; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4157+-- Name: rec_track; Type: TABLE; Schema: public; Owner: web
4158 --
4159
4160 CREATE TABLE rec_track (
4161@@ -3120,24 +3976,24 @@
4162 );
4163
4164
4165-ALTER TABLE public.rec_track OWNER TO myradio;
4166+ALTER TABLE rec_track OWNER TO web;
4167
4168 --
4169--- Name: COLUMN rec_track.duration; Type: COMMENT; Schema: public; Owner: myradio
4170+-- Name: COLUMN rec_track.duration; Type: COMMENT; Schema: public; Owner: web
4171 --
4172
4173 COMMENT ON COLUMN rec_track.duration IS 'Duration of track in seconds';
4174
4175
4176 --
4177--- Name: COLUMN rec_track.lastfm_verified; Type: COMMENT; Schema: public; Owner: myradio
4178+-- Name: COLUMN rec_track.lastfm_verified; Type: COMMENT; Schema: public; Owner: web
4179 --
4180
4181 COMMENT ON COLUMN rec_track.lastfm_verified IS 'Whether or not the metadata of this track has been verified using the LastFM API';
4182
4183
4184 --
4185--- Name: baps_ppl_log; Type: VIEW; Schema: public; Owner: myradio
4186+-- Name: baps_ppl_log; Type: VIEW; Schema: public; Owner: web
4187 --
4188
4189 CREATE VIEW baps_ppl_log AS
4190@@ -3152,17 +4008,17 @@
4191 WHERE ((baps_audiolog.timeplayed >= '2012-01-01 00:00:00'::timestamp without time zone) AND (baps_audiolog.timestopped <= '2012-02-01 00:00:00'::timestamp without time zone));
4192
4193
4194-ALTER TABLE public.baps_ppl_log OWNER TO myradio;
4195+ALTER TABLE baps_ppl_log OWNER TO web;
4196
4197 --
4198--- Name: VIEW baps_ppl_log; Type: COMMENT; Schema: public; Owner: myradio
4199+-- Name: VIEW baps_ppl_log; Type: COMMENT; Schema: public; Owner: web
4200 --
4201
4202 COMMENT ON VIEW baps_ppl_log IS 'Sample query for PPL';
4203
4204
4205 --
4206--- Name: baps_server; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4207+-- Name: baps_server; Type: TABLE; Schema: public; Owner: web
4208 --
4209
4210 CREATE TABLE baps_server (
4211@@ -3171,10 +4027,10 @@
4212 );
4213
4214
4215-ALTER TABLE public.baps_server OWNER TO myradio;
4216+ALTER TABLE baps_server OWNER TO web;
4217
4218 --
4219--- Name: baps_server_serverid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4220+-- Name: baps_server_serverid_seq; Type: SEQUENCE; Schema: public; Owner: web
4221 --
4222
4223 CREATE SEQUENCE baps_server_serverid_seq
4224@@ -3185,17 +4041,17 @@
4225 CACHE 1;
4226
4227
4228-ALTER TABLE public.baps_server_serverid_seq OWNER TO myradio;
4229+ALTER TABLE baps_server_serverid_seq OWNER TO web;
4230
4231 --
4232--- Name: baps_server_serverid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4233+-- Name: baps_server_serverid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4234 --
4235
4236 ALTER SEQUENCE baps_server_serverid_seq OWNED BY baps_server.serverid;
4237
4238
4239 --
4240--- Name: baps_show; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4241+-- Name: baps_show; Type: TABLE; Schema: public; Owner: web
4242 --
4243
4244 CREATE TABLE baps_show (
4245@@ -3208,10 +4064,10 @@
4246 );
4247
4248
4249-ALTER TABLE public.baps_show OWNER TO myradio;
4250+ALTER TABLE baps_show OWNER TO web;
4251
4252 --
4253--- Name: baps_show_showid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4254+-- Name: baps_show_showid_seq; Type: SEQUENCE; Schema: public; Owner: web
4255 --
4256
4257 CREATE SEQUENCE baps_show_showid_seq
4258@@ -3222,17 +4078,17 @@
4259 CACHE 1;
4260
4261
4262-ALTER TABLE public.baps_show_showid_seq OWNER TO myradio;
4263+ALTER TABLE baps_show_showid_seq OWNER TO web;
4264
4265 --
4266--- Name: baps_show_showid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4267+-- Name: baps_show_showid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4268 --
4269
4270 ALTER SEQUENCE baps_show_showid_seq OWNED BY baps_show.showid;
4271
4272
4273 --
4274--- Name: baps_textitem; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4275+-- Name: baps_textitem; Type: TABLE; Schema: public; Owner: web
4276 --
4277
4278 CREATE TABLE baps_textitem (
4279@@ -3241,10 +4097,10 @@
4280 );
4281
4282
4283-ALTER TABLE public.baps_textitem OWNER TO myradio;
4284+ALTER TABLE baps_textitem OWNER TO web;
4285
4286 --
4287--- Name: baps_textitem_textitemid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4288+-- Name: baps_textitem_textitemid_seq; Type: SEQUENCE; Schema: public; Owner: web
4289 --
4290
4291 CREATE SEQUENCE baps_textitem_textitemid_seq
4292@@ -3255,17 +4111,17 @@
4293 CACHE 1;
4294
4295
4296-ALTER TABLE public.baps_textitem_textitemid_seq OWNER TO myradio;
4297+ALTER TABLE baps_textitem_textitemid_seq OWNER TO web;
4298
4299 --
4300--- Name: baps_textitem_textitemid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4301+-- Name: baps_textitem_textitemid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4302 --
4303
4304 ALTER SEQUENCE baps_textitem_textitemid_seq OWNED BY baps_textitem.textitemid;
4305
4306
4307 --
4308--- Name: baps_user; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4309+-- Name: baps_user; Type: TABLE; Schema: public; Owner: web
4310 --
4311
4312 CREATE TABLE baps_user (
4313@@ -3280,10 +4136,10 @@
4314 );
4315
4316
4317-ALTER TABLE public.baps_user OWNER TO myradio;
4318+ALTER TABLE baps_user OWNER TO web;
4319
4320 --
4321--- Name: baps_user_external; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4322+-- Name: baps_user_external; Type: TABLE; Schema: public; Owner: web
4323 --
4324
4325 CREATE TABLE baps_user_external (
4326@@ -3293,10 +4149,10 @@
4327 );
4328
4329
4330-ALTER TABLE public.baps_user_external OWNER TO myradio;
4331+ALTER TABLE baps_user_external OWNER TO web;
4332
4333 --
4334--- Name: baps_user_external_userexternalid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4335+-- Name: baps_user_external_userexternalid_seq; Type: SEQUENCE; Schema: public; Owner: web
4336 --
4337
4338 CREATE SEQUENCE baps_user_external_userexternalid_seq
4339@@ -3307,17 +4163,17 @@
4340 CACHE 1;
4341
4342
4343-ALTER TABLE public.baps_user_external_userexternalid_seq OWNER TO myradio;
4344+ALTER TABLE baps_user_external_userexternalid_seq OWNER TO web;
4345
4346 --
4347--- Name: baps_user_external_userexternalid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4348+-- Name: baps_user_external_userexternalid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4349 --
4350
4351 ALTER SEQUENCE baps_user_external_userexternalid_seq OWNED BY baps_user_external.userexternalid;
4352
4353
4354 --
4355--- Name: baps_user_filefolder; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4356+-- Name: baps_user_filefolder; Type: TABLE; Schema: public; Owner: web
4357 --
4358
4359 CREATE TABLE baps_user_filefolder (
4360@@ -3327,10 +4183,10 @@
4361 );
4362
4363
4364-ALTER TABLE public.baps_user_filefolder OWNER TO myradio;
4365+ALTER TABLE baps_user_filefolder OWNER TO web;
4366
4367 --
4368--- Name: baps_user_filefolder_userfilefolderid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4369+-- Name: baps_user_filefolder_userfilefolderid_seq; Type: SEQUENCE; Schema: public; Owner: web
4370 --
4371
4372 CREATE SEQUENCE baps_user_filefolder_userfilefolderid_seq
4373@@ -3341,17 +4197,17 @@
4374 CACHE 1;
4375
4376
4377-ALTER TABLE public.baps_user_filefolder_userfilefolderid_seq OWNER TO myradio;
4378+ALTER TABLE baps_user_filefolder_userfilefolderid_seq OWNER TO web;
4379
4380 --
4381--- Name: baps_user_filefolder_userfilefolderid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4382+-- Name: baps_user_filefolder_userfilefolderid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4383 --
4384
4385 ALTER SEQUENCE baps_user_filefolder_userfilefolderid_seq OWNED BY baps_user_filefolder.userfilefolderid;
4386
4387
4388 --
4389--- Name: baps_user_userid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4390+-- Name: baps_user_userid_seq; Type: SEQUENCE; Schema: public; Owner: web
4391 --
4392
4393 CREATE SEQUENCE baps_user_userid_seq
4394@@ -3362,10 +4218,10 @@
4395 CACHE 1;
4396
4397
4398-ALTER TABLE public.baps_user_userid_seq OWNER TO myradio;
4399+ALTER TABLE baps_user_userid_seq OWNER TO web;
4400
4401 --
4402--- Name: baps_user_userid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4403+-- Name: baps_user_userid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4404 --
4405
4406 ALTER SEQUENCE baps_user_userid_seq OWNED BY baps_user.userid;
4407@@ -3374,160 +4230,55 @@
4408 SET default_with_oids = false;
4409
4410 --
4411--- Name: chart; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4412+-- Name: cat_view_promoter; Type: TABLE; Schema: public; Owner: web
4413 --
4414
4415-CREATE TABLE chart (
4416- chartweek integer NOT NULL,
4417- lastweek text NOT NULL,
4418- title text NOT NULL,
4419- artist text NOT NULL,
4420- "position" integer NOT NULL
4421+CREATE TABLE cat_view_promoter (
4422+ chicken integer,
4423+ nipples character varying
4424 );
4425
4426
4427-ALTER TABLE public.chart OWNER TO myradio;
4428-
4429---
4430--- Name: TABLE chart; Type: COMMENT; Schema: public; Owner: myradio
4431---
4432-
4433-COMMENT ON TABLE chart IS 'ury chart rundowns';
4434-
4435+ALTER TABLE cat_view_promoter OWNER TO web;
4436
4437 --
4438--- Name: COLUMN chart.chartweek; Type: COMMENT; Schema: public; Owner: myradio
4439+-- Name: TABLE cat_view_promoter; Type: COMMENT; Schema: public; Owner: web
4440 --
4441
4442-COMMENT ON COLUMN chart.chartweek IS 'chart release timestamp';
4443+COMMENT ON TABLE cat_view_promoter IS 'Don''t delete, or the cataloguer breaks.';
4444
4445
4446 --
4447--- Name: client; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4448+-- Name: chart; Type: TABLE; Schema: public; Owner: web
4449 --
4450
4451-CREATE TABLE client (
4452- clientid integer NOT NULL,
4453- name text NOT NULL,
4454- secrethash text NOT NULL,
4455- description text
4456-);
4457-
4458-
4459-ALTER TABLE public.client OWNER TO myradio;
4460-
4461---
4462--- Name: TABLE client; Type: COMMENT; Schema: public; Owner: myradio
4463---
4464-
4465-COMMENT ON TABLE client IS 'Registry of clients allowed to use Rapier.';
4466-
4467-
4468---
4469--- Name: COLUMN client.clientid; Type: COMMENT; Schema: public; Owner: myradio
4470---
4471-
4472-COMMENT ON COLUMN client.clientid IS 'The numeric ID of the client.';
4473-
4474-
4475---
4476--- Name: COLUMN client.name; Type: COMMENT; Schema: public; Owner: myradio
4477---
4478-
4479-COMMENT ON COLUMN client.name IS 'The log-in name of the client.';
4480-
4481-
4482---
4483--- Name: COLUMN client.secrethash; Type: COMMENT; Schema: public; Owner: myradio
4484---
4485-
4486-COMMENT ON COLUMN client.secrethash IS 'A hash of the log-in password of the client.';
4487-
4488-
4489---
4490--- Name: COLUMN client.description; Type: COMMENT; Schema: public; Owner: myradio
4491---
4492-
4493-COMMENT ON COLUMN client.description IS 'A human-readable description of the client.';
4494-
4495-
4496---
4497--- Name: client_clientid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4498---
4499-
4500-CREATE SEQUENCE client_clientid_seq
4501- START WITH 1
4502- INCREMENT BY 1
4503- NO MINVALUE
4504- NO MAXVALUE
4505- CACHE 1;
4506-
4507-
4508-ALTER TABLE public.client_clientid_seq OWNER TO myradio;
4509-
4510---
4511--- Name: client_clientid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4512---
4513-
4514-ALTER SEQUENCE client_clientid_seq OWNED BY client.clientid;
4515-
4516-
4517---
4518--- Name: constants_acl_scope; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4519---
4520-
4521-CREATE TABLE constants_acl_scope (
4522- scopeid integer NOT NULL,
4523- description text NOT NULL
4524+CREATE TABLE chart (
4525+ chartweek integer NOT NULL,
4526+ lastweek text NOT NULL,
4527+ title text NOT NULL,
4528+ artist text NOT NULL,
4529+ "position" integer NOT NULL
4530 );
4531
4532
4533-ALTER TABLE public.constants_acl_scope OWNER TO myradio;
4534-
4535---
4536--- Name: TABLE constants_acl_scope; Type: COMMENT; Schema: public; Owner: myradio
4537---
4538-
4539-COMMENT ON TABLE constants_acl_scope IS 'Human-readable descriptions for the ACL scope levels.';
4540-
4541-
4542---
4543--- Name: COLUMN constants_acl_scope.scopeid; Type: COMMENT; Schema: public; Owner: myradio
4544---
4545-
4546-COMMENT ON COLUMN constants_acl_scope.scopeid IS 'The unique ID of this scope level.';
4547-
4548-
4549---
4550--- Name: COLUMN constants_acl_scope.description; Type: COMMENT; Schema: public; Owner: myradio
4551---
4552-
4553-COMMENT ON COLUMN constants_acl_scope.description IS 'The human-readable description of this scope level.';
4554-
4555+ALTER TABLE chart OWNER TO web;
4556
4557 --
4558--- Name: constants_acl_scope_scopeid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4559+-- Name: TABLE chart; Type: COMMENT; Schema: public; Owner: web
4560 --
4561
4562-CREATE SEQUENCE constants_acl_scope_scopeid_seq
4563- START WITH 3
4564- INCREMENT BY 1
4565- NO MINVALUE
4566- NO MAXVALUE
4567- CACHE 1;
4568-
4569+COMMENT ON TABLE chart IS 'ury chart rundowns';
4570
4571-ALTER TABLE public.constants_acl_scope_scopeid_seq OWNER TO myradio;
4572
4573 --
4574--- Name: constants_acl_scope_scopeid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4575+-- Name: COLUMN chart.chartweek; Type: COMMENT; Schema: public; Owner: web
4576 --
4577
4578-ALTER SEQUENCE constants_acl_scope_scopeid_seq OWNED BY constants_acl_scope.scopeid;
4579+COMMENT ON COLUMN chart.chartweek IS 'chart release timestamp';
4580
4581
4582 --
4583--- Name: selector; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4584+-- Name: selector; Type: TABLE; Schema: public; Owner: web
4585 --
4586
4587 CREATE TABLE selector (
4588@@ -3539,10 +4290,10 @@
4589 );
4590
4591
4592-ALTER TABLE public.selector OWNER TO myradio;
4593+ALTER TABLE selector OWNER TO web;
4594
4595 --
4596--- Name: current_studio; Type: VIEW; Schema: public; Owner: myradio
4597+-- Name: current_studio; Type: VIEW; Schema: public; Owner: web
4598 --
4599
4600 CREATE VIEW current_studio AS
4601@@ -3553,10 +4304,10 @@
4602 LIMIT 1;
4603
4604
4605-ALTER TABLE public.current_studio OWNER TO myradio;
4606+ALTER TABLE current_studio OWNER TO web;
4607
4608 --
4609--- Name: VIEW current_studio; Type: COMMENT; Schema: public; Owner: myradio
4610+-- Name: VIEW current_studio; Type: COMMENT; Schema: public; Owner: web
4611 --
4612
4613 COMMENT ON VIEW current_studio IS 'Gets the studio that is currently on air
4614@@ -3564,7 +4315,7 @@
4615
4616
4617 --
4618--- Name: gammu; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4619+-- Name: gammu; Type: TABLE; Schema: public; Owner: web
4620 --
4621
4622 CREATE TABLE gammu (
4623@@ -3572,19 +4323,19 @@
4624 );
4625
4626
4627-ALTER TABLE public.gammu OWNER TO myradio;
4628+ALTER TABLE gammu OWNER TO web;
4629
4630 --
4631--- Name: TABLE gammu; Type: COMMENT; Schema: public; Owner: myradio
4632+-- Name: TABLE gammu; Type: COMMENT; Schema: public; Owner: web
4633 --
4634
4635-COMMENT ON TABLE gammu IS 'Do not delete - Gammu will break';
4636+COMMENT ON TABLE gammu IS 'Gammu - text messaging system';
4637
4638
4639 SET default_with_oids = true;
4640
4641 --
4642--- Name: l_action; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4643+-- Name: l_action; Type: TABLE; Schema: public; Owner: pgsql
4644 --
4645
4646 CREATE TABLE l_action (
4647@@ -3595,38 +4346,38 @@
4648 );
4649
4650
4651-ALTER TABLE public.l_action OWNER TO myradio;
4652+ALTER TABLE l_action OWNER TO pgsql;
4653
4654 --
4655--- Name: TABLE l_action; Type: COMMENT; Schema: public; Owner: myradio
4656+-- Name: TABLE l_action; Type: COMMENT; Schema: public; Owner: pgsql
4657 --
4658
4659 COMMENT ON TABLE l_action IS 'Enumerates back end permissions';
4660
4661
4662 --
4663--- Name: COLUMN l_action.typeid; Type: COMMENT; Schema: public; Owner: myradio
4664+-- Name: COLUMN l_action.typeid; Type: COMMENT; Schema: public; Owner: pgsql
4665 --
4666
4667 COMMENT ON COLUMN l_action.typeid IS 'Surrogate Key';
4668
4669
4670 --
4671--- Name: COLUMN l_action.descr; Type: COMMENT; Schema: public; Owner: myradio
4672+-- Name: COLUMN l_action.descr; Type: COMMENT; Schema: public; Owner: pgsql
4673 --
4674
4675 COMMENT ON COLUMN l_action.descr IS 'What the user sees the permission being called.';
4676
4677
4678 --
4679--- Name: COLUMN l_action.phpconstant; Type: COMMENT; Schema: public; Owner: myradio
4680+-- Name: COLUMN l_action.phpconstant; Type: COMMENT; Schema: public; Owner: pgsql
4681 --
4682
4683 COMMENT ON COLUMN l_action.phpconstant IS 'The name in /members/inc/constants.php';
4684
4685
4686 --
4687--- Name: l_action_typeid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4688+-- Name: l_action_typeid_seq; Type: SEQUENCE; Schema: public; Owner: web
4689 --
4690
4691 CREATE SEQUENCE l_action_typeid_seq
4692@@ -3637,10 +4388,10 @@
4693 CACHE 1;
4694
4695
4696-ALTER TABLE public.l_action_typeid_seq OWNER TO myradio;
4697+ALTER TABLE l_action_typeid_seq OWNER TO web;
4698
4699 --
4700--- Name: l_college; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4701+-- Name: l_college; Type: TABLE; Schema: public; Owner: pgsql
4702 --
4703
4704 CREATE TABLE l_college (
4705@@ -3649,10 +4400,10 @@
4706 );
4707
4708
4709-ALTER TABLE public.l_college OWNER TO myradio;
4710+ALTER TABLE l_college OWNER TO pgsql;
4711
4712 --
4713--- Name: l_college_collegeid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4714+-- Name: l_college_collegeid_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
4715 --
4716
4717 CREATE SEQUENCE l_college_collegeid_seq
4718@@ -3663,10 +4414,10 @@
4719 CACHE 1;
4720
4721
4722-ALTER TABLE public.l_college_collegeid_seq OWNER TO myradio;
4723+ALTER TABLE l_college_collegeid_seq OWNER TO pgsql;
4724
4725 --
4726--- Name: l_musicinterest; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4727+-- Name: l_musicinterest; Type: TABLE; Schema: public; Owner: pgsql
4728 --
4729
4730 CREATE TABLE l_musicinterest (
4731@@ -3675,10 +4426,10 @@
4732 );
4733
4734
4735-ALTER TABLE public.l_musicinterest OWNER TO myradio;
4736+ALTER TABLE l_musicinterest OWNER TO pgsql;
4737
4738 --
4739--- Name: l_musicinterest_typeid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4740+-- Name: l_musicinterest_typeid_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
4741 --
4742
4743 CREATE SEQUENCE l_musicinterest_typeid_seq
4744@@ -3689,12 +4440,12 @@
4745 CACHE 1;
4746
4747
4748-ALTER TABLE public.l_musicinterest_typeid_seq OWNER TO myradio;
4749+ALTER TABLE l_musicinterest_typeid_seq OWNER TO pgsql;
4750
4751 SET default_with_oids = false;
4752
4753 --
4754--- Name: l_newsfeed; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4755+-- Name: l_newsfeed; Type: TABLE; Schema: public; Owner: web
4756 --
4757
4758 CREATE TABLE l_newsfeed (
4759@@ -3703,31 +4454,31 @@
4760 );
4761
4762
4763-ALTER TABLE public.l_newsfeed OWNER TO myradio;
4764+ALTER TABLE l_newsfeed OWNER TO web;
4765
4766 --
4767--- Name: TABLE l_newsfeed; Type: COMMENT; Schema: public; Owner: myradio
4768+-- Name: TABLE l_newsfeed; Type: COMMENT; Schema: public; Owner: web
4769 --
4770
4771 COMMENT ON TABLE l_newsfeed IS 'Lookup table for internal news feeds';
4772
4773
4774 --
4775--- Name: l_newsfeeds_feedid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4776+-- Name: l_newsfeeds_feedid_seq; Type: SEQUENCE; Schema: public; Owner: web
4777 --
4778
4779 CREATE SEQUENCE l_newsfeeds_feedid_seq
4780- START WITH 5
4781+ START WITH 1
4782 INCREMENT BY 1
4783 NO MINVALUE
4784 NO MAXVALUE
4785 CACHE 1;
4786
4787
4788-ALTER TABLE public.l_newsfeeds_feedid_seq OWNER TO myradio;
4789+ALTER TABLE l_newsfeeds_feedid_seq OWNER TO web;
4790
4791 --
4792--- Name: l_newsfeeds_feedid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4793+-- Name: l_newsfeeds_feedid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4794 --
4795
4796 ALTER SEQUENCE l_newsfeeds_feedid_seq OWNED BY l_newsfeed.feedid;
4797@@ -3736,7 +4487,7 @@
4798 SET default_with_oids = true;
4799
4800 --
4801--- Name: l_presenterstatus; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4802+-- Name: l_presenterstatus; Type: TABLE; Schema: public; Owner: web
4803 --
4804
4805 CREATE TABLE l_presenterstatus (
4806@@ -3749,17 +4500,17 @@
4807 );
4808
4809
4810-ALTER TABLE public.l_presenterstatus OWNER TO myradio;
4811+ALTER TABLE l_presenterstatus OWNER TO web;
4812
4813 --
4814--- Name: COLUMN l_presenterstatus.can_award; Type: COMMENT; Schema: public; Owner: myradio
4815+-- Name: COLUMN l_presenterstatus.can_award; Type: COMMENT; Schema: public; Owner: web
4816 --
4817
4818 COMMENT ON COLUMN l_presenterstatus.can_award IS 'Members with this training status can award other members with this training status.';
4819
4820
4821 --
4822--- Name: l_presenterstatus_presenterstatusid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4823+-- Name: l_presenterstatus_presenterstatusid_seq; Type: SEQUENCE; Schema: public; Owner: web
4824 --
4825
4826 CREATE SEQUENCE l_presenterstatus_presenterstatusid_seq
4827@@ -3770,17 +4521,17 @@
4828 CACHE 1;
4829
4830
4831-ALTER TABLE public.l_presenterstatus_presenterstatusid_seq OWNER TO myradio;
4832+ALTER TABLE l_presenterstatus_presenterstatusid_seq OWNER TO web;
4833
4834 --
4835--- Name: l_presenterstatus_presenterstatusid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4836+-- Name: l_presenterstatus_presenterstatusid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4837 --
4838
4839 ALTER SEQUENCE l_presenterstatus_presenterstatusid_seq OWNED BY l_presenterstatus.presenterstatusid;
4840
4841
4842 --
4843--- Name: l_status; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4844+-- Name: l_status; Type: TABLE; Schema: public; Owner: pgsql
4845 --
4846
4847 CREATE TABLE l_status (
4848@@ -3789,12 +4540,12 @@
4849 );
4850
4851
4852-ALTER TABLE public.l_status OWNER TO myradio;
4853+ALTER TABLE l_status OWNER TO pgsql;
4854
4855 SET default_with_oids = false;
4856
4857 --
4858--- Name: l_subnet; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4859+-- Name: l_subnet; Type: TABLE; Schema: public; Owner: web
4860 --
4861
4862 CREATE TABLE l_subnet (
4863@@ -3804,17 +4555,17 @@
4864 );
4865
4866
4867-ALTER TABLE public.l_subnet OWNER TO myradio;
4868+ALTER TABLE l_subnet OWNER TO web;
4869
4870 --
4871--- Name: TABLE l_subnet; Type: COMMENT; Schema: public; Owner: myradio
4872+-- Name: TABLE l_subnet; Type: COMMENT; Schema: public; Owner: web
4873 --
4874
4875 COMMENT ON TABLE l_subnet IS 'An informed guess (via Gavin) about which subnet covers which colleges.';
4876
4877
4878 --
4879--- Name: l_uryinterest_typeid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4880+-- Name: l_uryinterest_typeid_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
4881 --
4882
4883 CREATE SEQUENCE l_uryinterest_typeid_seq
4884@@ -3825,10 +4576,10 @@
4885 CACHE 1;
4886
4887
4888-ALTER TABLE public.l_uryinterest_typeid_seq OWNER TO myradio;
4889+ALTER TABLE l_uryinterest_typeid_seq OWNER TO pgsql;
4890
4891 --
4892--- Name: mail_alias_text; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4893+-- Name: mail_alias_text; Type: TABLE; Schema: public; Owner: web
4894 --
4895
4896 CREATE TABLE mail_alias_text (
4897@@ -3839,17 +4590,17 @@
4898 );
4899
4900
4901-ALTER TABLE public.mail_alias_text OWNER TO myradio;
4902+ALTER TABLE mail_alias_text OWNER TO web;
4903
4904 --
4905--- Name: TABLE mail_alias_text; Type: COMMENT; Schema: public; Owner: myradio
4906+-- Name: TABLE mail_alias_text; Type: COMMENT; Schema: public; Owner: web
4907 --
4908
4909 COMMENT ON TABLE mail_alias_text IS 'DEPRECATED. See mail.alias and mail.alias_text for replacement.';
4910
4911
4912 --
4913--- Name: mail_aliasid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
4914+-- Name: mail_aliasid_seq; Type: SEQUENCE; Schema: public; Owner: web
4915 --
4916
4917 CREATE SEQUENCE mail_aliasid_seq
4918@@ -3860,17 +4611,17 @@
4919 CACHE 1;
4920
4921
4922-ALTER TABLE public.mail_aliasid_seq OWNER TO myradio;
4923+ALTER TABLE mail_aliasid_seq OWNER TO web;
4924
4925 --
4926--- Name: mail_aliasid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
4927+-- Name: mail_aliasid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
4928 --
4929
4930 ALTER SEQUENCE mail_aliasid_seq OWNED BY mail_alias_text.aliasid;
4931
4932
4933 --
4934--- Name: mail_alias_list; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4935+-- Name: mail_alias_list; Type: TABLE; Schema: public; Owner: web
4936 --
4937
4938 CREATE TABLE mail_alias_list (
4939@@ -3881,17 +4632,17 @@
4940 );
4941
4942
4943-ALTER TABLE public.mail_alias_list OWNER TO myradio;
4944+ALTER TABLE mail_alias_list OWNER TO web;
4945
4946 --
4947--- Name: TABLE mail_alias_list; Type: COMMENT; Schema: public; Owner: myradio
4948+-- Name: TABLE mail_alias_list; Type: COMMENT; Schema: public; Owner: web
4949 --
4950
4951 COMMENT ON TABLE mail_alias_list IS 'DEPRECATED. See mail.alias and mail.alias_list for replacement.';
4952
4953
4954 --
4955--- Name: mail_alias_member; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4956+-- Name: mail_alias_member; Type: TABLE; Schema: public; Owner: web
4957 --
4958
4959 CREATE TABLE mail_alias_member (
4960@@ -3902,17 +4653,17 @@
4961 );
4962
4963
4964-ALTER TABLE public.mail_alias_member OWNER TO myradio;
4965+ALTER TABLE mail_alias_member OWNER TO web;
4966
4967 --
4968--- Name: TABLE mail_alias_member; Type: COMMENT; Schema: public; Owner: myradio
4969+-- Name: TABLE mail_alias_member; Type: COMMENT; Schema: public; Owner: web
4970 --
4971
4972 COMMENT ON TABLE mail_alias_member IS 'DEPRECATED. See mail.alias and mail.alias_member for replacement.';
4973
4974
4975 --
4976--- Name: mail_alias_officer; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4977+-- Name: mail_alias_officer; Type: TABLE; Schema: public; Owner: web
4978 --
4979
4980 CREATE TABLE mail_alias_officer (
4981@@ -3923,17 +4674,17 @@
4982 );
4983
4984
4985-ALTER TABLE public.mail_alias_officer OWNER TO myradio;
4986+ALTER TABLE mail_alias_officer OWNER TO web;
4987
4988 --
4989--- Name: TABLE mail_alias_officer; Type: COMMENT; Schema: public; Owner: myradio
4990+-- Name: TABLE mail_alias_officer; Type: COMMENT; Schema: public; Owner: web
4991 --
4992
4993 COMMENT ON TABLE mail_alias_officer IS 'DEPRECATED. See mail.alias and mail.alias_officer for replacement.';
4994
4995
4996 --
4997--- Name: mail_list; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
4998+-- Name: mail_list; Type: TABLE; Schema: public; Owner: web
4999 --
5000
5001 CREATE TABLE mail_list (
5002@@ -3949,59 +4700,59 @@
5003 );
5004
5005
5006-ALTER TABLE public.mail_list OWNER TO myradio;
5007+ALTER TABLE mail_list OWNER TO web;
5008
5009 --
5010--- Name: TABLE mail_list; Type: COMMENT; Schema: public; Owner: myradio
5011+-- Name: TABLE mail_list; Type: COMMENT; Schema: public; Owner: web
5012 --
5013
5014 COMMENT ON TABLE mail_list IS 'Definitions of mailing lists';
5015
5016
5017 --
5018--- Name: COLUMN mail_list.listid; Type: COMMENT; Schema: public; Owner: myradio
5019+-- Name: COLUMN mail_list.listid; Type: COMMENT; Schema: public; Owner: web
5020 --
5021
5022 COMMENT ON COLUMN mail_list.listid IS 'Surrogate Key';
5023
5024
5025 --
5026--- Name: COLUMN mail_list.listname; Type: COMMENT; Schema: public; Owner: myradio
5027+-- Name: COLUMN mail_list.listname; Type: COMMENT; Schema: public; Owner: web
5028 --
5029
5030 COMMENT ON COLUMN mail_list.listname IS 'Name of the list';
5031
5032
5033 --
5034--- Name: COLUMN mail_list.defn; Type: COMMENT; Schema: public; Owner: myradio
5035+-- Name: COLUMN mail_list.defn; Type: COMMENT; Schema: public; Owner: web
5036 --
5037
5038 COMMENT ON COLUMN mail_list.defn IS 'A SQL string that returns fname, sname and email address.';
5039
5040
5041 --
5042--- Name: COLUMN mail_list.toexim; Type: COMMENT; Schema: public; Owner: myradio
5043+-- Name: COLUMN mail_list.toexim; Type: COMMENT; Schema: public; Owner: web
5044 --
5045
5046 COMMENT ON COLUMN mail_list.toexim IS 'Whether to create a mail alias on the email server for this list.';
5047
5048
5049 --
5050--- Name: COLUMN mail_list.listaddress; Type: COMMENT; Schema: public; Owner: myradio
5051+-- Name: COLUMN mail_list.listaddress; Type: COMMENT; Schema: public; Owner: web
5052 --
5053
5054 COMMENT ON COLUMN mail_list.listaddress IS 'If the list is exported, this is the list''s email address.';
5055
5056
5057 --
5058--- Name: COLUMN mail_list.subscribable; Type: COMMENT; Schema: public; Owner: myradio
5059+-- Name: COLUMN mail_list.subscribable; Type: COMMENT; Schema: public; Owner: web
5060 --
5061
5062 COMMENT ON COLUMN mail_list.subscribable IS 'Whether members can (un)subscribe freely.';
5063
5064
5065 --
5066--- Name: mail_list_listid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5067+-- Name: mail_list_listid_seq; Type: SEQUENCE; Schema: public; Owner: web
5068 --
5069
5070 CREATE SEQUENCE mail_list_listid_seq
5071@@ -4012,17 +4763,17 @@
5072 CACHE 1;
5073
5074
5075-ALTER TABLE public.mail_list_listid_seq OWNER TO myradio;
5076+ALTER TABLE mail_list_listid_seq OWNER TO web;
5077
5078 --
5079--- Name: mail_list_listid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
5080+-- Name: mail_list_listid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
5081 --
5082
5083 ALTER SEQUENCE mail_list_listid_seq OWNED BY mail_list.listid;
5084
5085
5086 --
5087--- Name: mail_subscription; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5088+-- Name: mail_subscription; Type: TABLE; Schema: public; Owner: web
5089 --
5090
5091 CREATE TABLE mail_subscription (
5092@@ -4031,10 +4782,10 @@
5093 );
5094
5095
5096-ALTER TABLE public.mail_subscription OWNER TO myradio;
5097+ALTER TABLE mail_subscription OWNER TO web;
5098
5099 --
5100--- Name: TABLE mail_subscription; Type: COMMENT; Schema: public; Owner: myradio
5101+-- Name: TABLE mail_subscription; Type: COMMENT; Schema: public; Owner: web
5102 --
5103
5104 COMMENT ON TABLE mail_subscription IS 'If a list is subscribable, then all members here are subscribed. If a list is not, then all members here are opted out.';
5105@@ -4043,7 +4794,7 @@
5106 SET default_with_oids = true;
5107
5108 --
5109--- Name: member; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5110+-- Name: member; Type: TABLE; Schema: public; Owner: pgsql
5111 --
5112
5113 CREATE TABLE member (
5114@@ -4067,56 +4818,77 @@
5115 profile_photo integer,
5116 bio text,
5117 auth_provider character varying,
5118- contract_signed boolean DEFAULT false NOT NULL
5119+ contract_signed boolean DEFAULT false
5120 );
5121
5122
5123-ALTER TABLE public.member OWNER TO myradio;
5124+ALTER TABLE member OWNER TO pgsql;
5125+
5126+--
5127+-- Name: TABLE member; Type: COMMENT; Schema: public; Owner: pgsql
5128+--
5129+
5130+COMMENT ON TABLE member IS 'The members!';
5131+
5132
5133 --
5134--- Name: COLUMN member.email; Type: COMMENT; Schema: public; Owner: myradio
5135+-- Name: COLUMN member.sex; Type: COMMENT; Schema: public; Owner: pgsql
5136+--
5137+
5138+COMMENT ON COLUMN member.sex IS 'Yes please!';
5139+
5140+
5141+--
5142+-- Name: COLUMN member.email; Type: COMMENT; Schema: public; Owner: pgsql
5143 --
5144
5145 COMMENT ON COLUMN member.email IS 'If set, this is the user''s contact address. Otherwise, use the eduroam field.';
5146
5147
5148 --
5149--- Name: COLUMN member.local_name; Type: COMMENT; Schema: public; Owner: myradio
5150+-- Name: COLUMN member.local_name; Type: COMMENT; Schema: public; Owner: pgsql
5151 --
5152
5153 COMMENT ON COLUMN member.local_name IS 'This column represents the part of the user''s URY email address before the @. When null, the user does not have a URY email account.';
5154
5155
5156 --
5157--- Name: COLUMN member.endofcourse; Type: COMMENT; Schema: public; Owner: myradio
5158+-- Name: COLUMN member.endofcourse; Type: COMMENT; Schema: public; Owner: pgsql
5159 --
5160
5161 COMMENT ON COLUMN member.endofcourse IS 'This data is inaccurate/useless!';
5162
5163
5164 --
5165--- Name: COLUMN member.eduroam; Type: COMMENT; Schema: public; Owner: myradio
5166+-- Name: COLUMN member.eduroam; Type: COMMENT; Schema: public; Owner: pgsql
5167 --
5168
5169 COMMENT ON COLUMN member.eduroam IS 'An eduroam username (E.G. abc123)';
5170
5171
5172 --
5173--- Name: COLUMN member.require_password_change; Type: COMMENT; Schema: public; Owner: myradio
5174+-- Name: COLUMN member.require_password_change; Type: COMMENT; Schema: public; Owner: pgsql
5175 --
5176
5177 COMMENT ON COLUMN member.require_password_change IS 'If true, the user is required to change their password on next login.';
5178
5179
5180 --
5181--- Name: COLUMN member.auth_provider; Type: COMMENT; Schema: public; Owner: myradio
5182+-- Name: COLUMN member.auth_provider; Type: COMMENT; Schema: public; Owner: pgsql
5183 --
5184
5185 COMMENT ON COLUMN member.auth_provider IS 'The MyRadioAuthenticator implementation to use when validating this user. If NULL, try all in turn, and depending on client implementation either ask them to set one or keep it as it is.';
5186
5187
5188 --
5189--- Name: member_memberid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5190+-- Name: COLUMN member.contract_signed; Type: COMMENT; Schema: public; Owner: pgsql
5191+--
5192+
5193+COMMENT ON COLUMN member.contract_signed IS 'Has the member signed the current year''s presenter contract?';
5194+
5195+
5196+--
5197+-- Name: member_memberid_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
5198 --
5199
5200 CREATE SEQUENCE member_memberid_seq
5201@@ -4127,12 +4899,12 @@
5202 CACHE 1;
5203
5204
5205-ALTER TABLE public.member_memberid_seq OWNER TO myradio;
5206+ALTER TABLE member_memberid_seq OWNER TO pgsql;
5207
5208 SET default_with_oids = false;
5209
5210 --
5211--- Name: member_news_feed; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5212+-- Name: member_news_feed; Type: TABLE; Schema: public; Owner: web
5213 --
5214
5215 CREATE TABLE member_news_feed (
5216@@ -4143,17 +4915,17 @@
5217 );
5218
5219
5220-ALTER TABLE public.member_news_feed OWNER TO myradio;
5221+ALTER TABLE member_news_feed OWNER TO web;
5222
5223 --
5224--- Name: TABLE member_news_feed; Type: COMMENT; Schema: public; Owner: myradio
5225+-- Name: TABLE member_news_feed; Type: COMMENT; Schema: public; Owner: web
5226 --
5227
5228 COMMENT ON TABLE member_news_feed IS 'Stores when members have seen news feed events';
5229
5230
5231 --
5232--- Name: member_news_feed_membernewsfeedid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5233+-- Name: member_news_feed_membernewsfeedid_seq; Type: SEQUENCE; Schema: public; Owner: web
5234 --
5235
5236 CREATE SEQUENCE member_news_feed_membernewsfeedid_seq
5237@@ -4164,17 +4936,17 @@
5238 CACHE 1;
5239
5240
5241-ALTER TABLE public.member_news_feed_membernewsfeedid_seq OWNER TO myradio;
5242+ALTER TABLE member_news_feed_membernewsfeedid_seq OWNER TO web;
5243
5244 --
5245--- Name: member_news_feed_membernewsfeedid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
5246+-- Name: member_news_feed_membernewsfeedid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
5247 --
5248
5249 ALTER SEQUENCE member_news_feed_membernewsfeedid_seq OWNED BY member_news_feed.membernewsfeedid;
5250
5251
5252 --
5253--- Name: member_office_member_office_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5254+-- Name: member_office_member_office_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
5255 --
5256
5257 CREATE SEQUENCE member_office_member_office_seq
5258@@ -4185,12 +4957,12 @@
5259 CACHE 1;
5260
5261
5262-ALTER TABLE public.member_office_member_office_seq OWNER TO myradio;
5263+ALTER TABLE member_office_member_office_seq OWNER TO pgsql;
5264
5265 SET default_with_oids = true;
5266
5267 --
5268--- Name: member_officer; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5269+-- Name: member_officer; Type: TABLE; Schema: public; Owner: pgsql
5270 --
5271
5272 CREATE TABLE member_officer (
5273@@ -4202,12 +4974,12 @@
5274 );
5275
5276
5277-ALTER TABLE public.member_officer OWNER TO myradio;
5278+ALTER TABLE member_officer OWNER TO pgsql;
5279
5280 SET default_with_oids = false;
5281
5282 --
5283--- Name: member_pass; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5284+-- Name: member_pass; Type: TABLE; Schema: public; Owner: web
5285 --
5286
5287 CREATE TABLE member_pass (
5288@@ -4216,10 +4988,10 @@
5289 );
5290
5291
5292-ALTER TABLE public.member_pass OWNER TO myradio;
5293+ALTER TABLE member_pass OWNER TO web;
5294
5295 --
5296--- Name: TABLE member_pass; Type: COMMENT; Schema: public; Owner: myradio
5297+-- Name: TABLE member_pass; Type: COMMENT; Schema: public; Owner: web
5298 --
5299
5300 COMMENT ON TABLE member_pass IS 'User password. Access only to be granted to Shibbobleh, Dovecot Users. Exim authenticates via IMAP.';
5301@@ -4228,7 +5000,7 @@
5302 SET default_with_oids = true;
5303
5304 --
5305--- Name: member_presenterstatus; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5306+-- Name: member_presenterstatus; Type: TABLE; Schema: public; Owner: web
5307 --
5308
5309 CREATE TABLE member_presenterstatus (
5310@@ -4242,10 +5014,10 @@
5311 );
5312
5313
5314-ALTER TABLE public.member_presenterstatus OWNER TO myradio;
5315+ALTER TABLE member_presenterstatus OWNER TO web;
5316
5317 --
5318--- Name: member_presenterstatus_memberpresenterstatusid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5319+-- Name: member_presenterstatus_memberpresenterstatusid_seq; Type: SEQUENCE; Schema: public; Owner: web
5320 --
5321
5322 CREATE SEQUENCE member_presenterstatus_memberpresenterstatusid_seq
5323@@ -4256,17 +5028,17 @@
5324 CACHE 1;
5325
5326
5327-ALTER TABLE public.member_presenterstatus_memberpresenterstatusid_seq OWNER TO myradio;
5328+ALTER TABLE member_presenterstatus_memberpresenterstatusid_seq OWNER TO web;
5329
5330 --
5331--- Name: member_presenterstatus_memberpresenterstatusid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
5332+-- Name: member_presenterstatus_memberpresenterstatusid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
5333 --
5334
5335 ALTER SEQUENCE member_presenterstatus_memberpresenterstatusid_seq OWNED BY member_presenterstatus.memberpresenterstatusid;
5336
5337
5338 --
5339--- Name: member_year; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5340+-- Name: member_year; Type: TABLE; Schema: public; Owner: pgsql
5341 --
5342
5343 CREATE TABLE member_year (
5344@@ -4276,12 +5048,12 @@
5345 );
5346
5347
5348-ALTER TABLE public.member_year OWNER TO myradio;
5349+ALTER TABLE member_year OWNER TO pgsql;
5350
5351 SET default_with_oids = false;
5352
5353 --
5354--- Name: net_switchport; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5355+-- Name: net_switchport; Type: TABLE; Schema: public; Owner: web
5356 --
5357
5358 CREATE TABLE net_switchport (
5359@@ -4292,24 +5064,24 @@
5360 );
5361
5362
5363-ALTER TABLE public.net_switchport OWNER TO myradio;
5364+ALTER TABLE net_switchport OWNER TO web;
5365
5366 --
5367--- Name: COLUMN net_switchport.portid; Type: COMMENT; Schema: public; Owner: myradio
5368+-- Name: COLUMN net_switchport.portid; Type: COMMENT; Schema: public; Owner: web
5369 --
5370
5371 COMMENT ON COLUMN net_switchport.portid IS 'Port number from front panel';
5372
5373
5374 --
5375--- Name: COLUMN net_switchport.vlanid; Type: COMMENT; Schema: public; Owner: myradio
5376+-- Name: COLUMN net_switchport.vlanid; Type: COMMENT; Schema: public; Owner: web
5377 --
5378
5379 COMMENT ON COLUMN net_switchport.vlanid IS 'Untagged vlan for this port';
5380
5381
5382 --
5383--- Name: net_switchport_tags; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5384+-- Name: net_switchport_tags; Type: TABLE; Schema: public; Owner: web
5385 --
5386
5387 CREATE TABLE net_switchport_tags (
5388@@ -4318,10 +5090,10 @@
5389 );
5390
5391
5392-ALTER TABLE public.net_switchport_tags OWNER TO myradio;
5393+ALTER TABLE net_switchport_tags OWNER TO web;
5394
5395 --
5396--- Name: net_vlan; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5397+-- Name: net_vlan; Type: TABLE; Schema: public; Owner: web
5398 --
5399
5400 CREATE TABLE net_vlan (
5401@@ -4330,17 +5102,17 @@
5402 );
5403
5404
5405-ALTER TABLE public.net_vlan OWNER TO myradio;
5406+ALTER TABLE net_vlan OWNER TO web;
5407
5408 --
5409--- Name: COLUMN net_vlan.vlanid; Type: COMMENT; Schema: public; Owner: myradio
5410+-- Name: COLUMN net_vlan.vlanid; Type: COMMENT; Schema: public; Owner: web
5411 --
5412
5413 COMMENT ON COLUMN net_vlan.vlanid IS 'VLAN Number (not VLAN index)';
5414
5415
5416 --
5417--- Name: news_feed; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5418+-- Name: news_feed; Type: TABLE; Schema: public; Owner: web
5419 --
5420
5421 CREATE TABLE news_feed (
5422@@ -4353,17 +5125,17 @@
5423 );
5424
5425
5426-ALTER TABLE public.news_feed OWNER TO myradio;
5427+ALTER TABLE news_feed OWNER TO web;
5428
5429 --
5430--- Name: TABLE news_feed; Type: COMMENT; Schema: public; Owner: myradio
5431+-- Name: TABLE news_feed; Type: COMMENT; Schema: public; Owner: web
5432 --
5433
5434 COMMENT ON TABLE news_feed IS 'News Feed entries';
5435
5436
5437 --
5438--- Name: news_feed_newsentryid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5439+-- Name: news_feed_newsentryid_seq; Type: SEQUENCE; Schema: public; Owner: web
5440 --
5441
5442 CREATE SEQUENCE news_feed_newsentryid_seq
5443@@ -4374,17 +5146,17 @@
5444 CACHE 1;
5445
5446
5447-ALTER TABLE public.news_feed_newsentryid_seq OWNER TO myradio;
5448+ALTER TABLE news_feed_newsentryid_seq OWNER TO web;
5449
5450 --
5451--- Name: news_feed_newsentryid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
5452+-- Name: news_feed_newsentryid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
5453 --
5454
5455 ALTER SEQUENCE news_feed_newsentryid_seq OWNED BY news_feed.newsentryid;
5456
5457
5458 --
5459--- Name: nipsweb_migrate; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5460+-- Name: nipsweb_migrate; Type: TABLE; Schema: public; Owner: web
5461 --
5462
5463 CREATE TABLE nipsweb_migrate (
5464@@ -4394,10 +5166,10 @@
5465 );
5466
5467
5468-ALTER TABLE public.nipsweb_migrate OWNER TO myradio;
5469+ALTER TABLE nipsweb_migrate OWNER TO web;
5470
5471 --
5472--- Name: TABLE nipsweb_migrate; Type: COMMENT; Schema: public; Owner: myradio
5473+-- Name: TABLE nipsweb_migrate; Type: COMMENT; Schema: public; Owner: web
5474 --
5475
5476 COMMENT ON TABLE nipsweb_migrate IS 'Used to migrate users from BAPSWeb to NIPSWeb.';
5477@@ -4406,7 +5178,7 @@
5478 SET default_with_oids = true;
5479
5480 --
5481--- Name: officer; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5482+-- Name: officer; Type: TABLE; Schema: public; Owner: pgsql
5483 --
5484
5485 CREATE TABLE officer (
5486@@ -4422,17 +5194,24 @@
5487 );
5488
5489
5490-ALTER TABLE public.officer OWNER TO myradio;
5491+ALTER TABLE officer OWNER TO pgsql;
5492
5493 --
5494--- Name: COLUMN officer.type; Type: COMMENT; Schema: public; Owner: myradio
5495+-- Name: COLUMN officer.officer_alias; Type: COMMENT; Schema: public; Owner: pgsql
5496+--
5497+
5498+COMMENT ON COLUMN officer.officer_alias IS 'The officer''s alias for email (<this>@ury.org.uk)';
5499+
5500+
5501+--
5502+-- Name: COLUMN officer.type; Type: COMMENT; Schema: public; Owner: pgsql
5503 --
5504
5505 COMMENT ON COLUMN officer.type IS '(O)fficer, (A)ssistant Head of Team, (H)ead of Team';
5506
5507
5508 --
5509--- Name: officer_officerid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5510+-- Name: officer_officerid_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
5511 --
5512
5513 CREATE SEQUENCE officer_officerid_seq
5514@@ -4443,10 +5222,10 @@
5515 CACHE 1;
5516
5517
5518-ALTER TABLE public.officer_officerid_seq OWNER TO myradio;
5519+ALTER TABLE officer_officerid_seq OWNER TO pgsql;
5520
5521 --
5522--- Name: rec_cleanlookup; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5523+-- Name: rec_cleanlookup; Type: TABLE; Schema: public; Owner: web
5524 --
5525
5526 CREATE TABLE rec_cleanlookup (
5527@@ -4455,10 +5234,10 @@
5528 );
5529
5530
5531-ALTER TABLE public.rec_cleanlookup OWNER TO myradio;
5532+ALTER TABLE rec_cleanlookup OWNER TO web;
5533
5534 --
5535--- Name: rec_formatlookup; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5536+-- Name: rec_formatlookup; Type: TABLE; Schema: public; Owner: web
5537 --
5538
5539 CREATE TABLE rec_formatlookup (
5540@@ -4467,10 +5246,10 @@
5541 );
5542
5543
5544-ALTER TABLE public.rec_formatlookup OWNER TO myradio;
5545+ALTER TABLE rec_formatlookup OWNER TO web;
5546
5547 --
5548--- Name: rec_genrelookup; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5549+-- Name: rec_genrelookup; Type: TABLE; Schema: public; Owner: web
5550 --
5551
5552 CREATE TABLE rec_genrelookup (
5553@@ -4479,12 +5258,12 @@
5554 );
5555
5556
5557-ALTER TABLE public.rec_genrelookup OWNER TO myradio;
5558+ALTER TABLE rec_genrelookup OWNER TO web;
5559
5560 SET default_with_oids = false;
5561
5562 --
5563--- Name: rec_itunes; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5564+-- Name: rec_itunes; Type: TABLE; Schema: public; Owner: web
5565 --
5566
5567 CREATE TABLE rec_itunes (
5568@@ -4496,10 +5275,10 @@
5569 );
5570
5571
5572-ALTER TABLE public.rec_itunes OWNER TO myradio;
5573+ALTER TABLE rec_itunes OWNER TO web;
5574
5575 --
5576--- Name: TABLE rec_itunes; Type: COMMENT; Schema: public; Owner: myradio
5577+-- Name: TABLE rec_itunes; Type: COMMENT; Schema: public; Owner: web
5578 --
5579
5580 COMMENT ON TABLE rec_itunes IS 'itunes affiliation program';
5581@@ -4508,7 +5287,7 @@
5582 SET default_with_oids = true;
5583
5584 --
5585--- Name: rec_labelqueue; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5586+-- Name: rec_labelqueue; Type: TABLE; Schema: public; Owner: web
5587 --
5588
5589 CREATE TABLE rec_labelqueue (
5590@@ -4518,10 +5297,10 @@
5591 );
5592
5593
5594-ALTER TABLE public.rec_labelqueue OWNER TO myradio;
5595+ALTER TABLE rec_labelqueue OWNER TO web;
5596
5597 --
5598--- Name: rec_labelqueue_queueid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5599+-- Name: rec_labelqueue_queueid_seq; Type: SEQUENCE; Schema: public; Owner: web
5600 --
5601
5602 CREATE SEQUENCE rec_labelqueue_queueid_seq
5603@@ -4532,10 +5311,10 @@
5604 CACHE 1;
5605
5606
5607-ALTER TABLE public.rec_labelqueue_queueid_seq OWNER TO myradio;
5608+ALTER TABLE rec_labelqueue_queueid_seq OWNER TO web;
5609
5610 --
5611--- Name: rec_locationlookup; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5612+-- Name: rec_locationlookup; Type: TABLE; Schema: public; Owner: web
5613 --
5614
5615 CREATE TABLE rec_locationlookup (
5616@@ -4544,12 +5323,12 @@
5617 );
5618
5619
5620-ALTER TABLE public.rec_locationlookup OWNER TO myradio;
5621+ALTER TABLE rec_locationlookup OWNER TO web;
5622
5623 SET default_with_oids = false;
5624
5625 --
5626--- Name: rec_lookup; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5627+-- Name: rec_lookup; Type: TABLE; Schema: public; Owner: web
5628 --
5629
5630 CREATE TABLE rec_lookup (
5631@@ -4559,38 +5338,38 @@
5632 );
5633
5634
5635-ALTER TABLE public.rec_lookup OWNER TO myradio;
5636+ALTER TABLE rec_lookup OWNER TO web;
5637
5638 --
5639--- Name: TABLE rec_lookup; Type: COMMENT; Schema: public; Owner: myradio
5640+-- Name: TABLE rec_lookup; Type: COMMENT; Schema: public; Owner: web
5641 --
5642
5643 COMMENT ON TABLE rec_lookup IS 'Table containing human-readable names for various codes used in the record library. (Replaces rec_Xlookup for API lookup simplicity.)';
5644
5645
5646 --
5647--- Name: COLUMN rec_lookup.code_type; Type: COMMENT; Schema: public; Owner: myradio
5648+-- Name: COLUMN rec_lookup.code_type; Type: COMMENT; Schema: public; Owner: web
5649 --
5650
5651 COMMENT ON COLUMN rec_lookup.code_type IS 'The type of code - this replaces the names used in the previous tables.';
5652
5653
5654 --
5655--- Name: COLUMN rec_lookup.code; Type: COMMENT; Schema: public; Owner: myradio
5656+-- Name: COLUMN rec_lookup.code; Type: COMMENT; Schema: public; Owner: web
5657 --
5658
5659 COMMENT ON COLUMN rec_lookup.code IS 'The single-character code used in the record library.';
5660
5661
5662 --
5663--- Name: COLUMN rec_lookup.description; Type: COMMENT; Schema: public; Owner: myradio
5664+-- Name: COLUMN rec_lookup.description; Type: COMMENT; Schema: public; Owner: web
5665 --
5666
5667 COMMENT ON COLUMN rec_lookup.description IS 'The human-readable description of the code.';
5668
5669
5670 --
5671--- Name: rec_lookup_description_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5672+-- Name: rec_lookup_description_seq; Type: SEQUENCE; Schema: public; Owner: web
5673 --
5674
5675 CREATE SEQUENCE rec_lookup_description_seq
5676@@ -4601,10 +5380,10 @@
5677 CACHE 1;
5678
5679
5680-ALTER TABLE public.rec_lookup_description_seq OWNER TO myradio;
5681+ALTER TABLE rec_lookup_description_seq OWNER TO web;
5682
5683 --
5684--- Name: rec_lookup_description_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
5685+-- Name: rec_lookup_description_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
5686 --
5687
5688 ALTER SEQUENCE rec_lookup_description_seq OWNED BY rec_lookup.description;
5689@@ -4613,7 +5392,7 @@
5690 SET default_with_oids = true;
5691
5692 --
5693--- Name: rec_medialookup; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5694+-- Name: rec_medialookup; Type: TABLE; Schema: public; Owner: web
5695 --
5696
5697 CREATE TABLE rec_medialookup (
5698@@ -4622,10 +5401,10 @@
5699 );
5700
5701
5702-ALTER TABLE public.rec_medialookup OWNER TO myradio;
5703+ALTER TABLE rec_medialookup OWNER TO web;
5704
5705 --
5706--- Name: rec_record; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5707+-- Name: rec_record; Type: TABLE; Schema: public; Owner: web
5708 --
5709
5710 CREATE TABLE rec_record (
5711@@ -4649,10 +5428,10 @@
5712 );
5713
5714
5715-ALTER TABLE public.rec_record OWNER TO myradio;
5716+ALTER TABLE rec_record OWNER TO web;
5717
5718 --
5719--- Name: rec_record_recordid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5720+-- Name: rec_record_recordid_seq; Type: SEQUENCE; Schema: public; Owner: web
5721 --
5722
5723 CREATE SEQUENCE rec_record_recordid_seq
5724@@ -4663,10 +5442,10 @@
5725 CACHE 1;
5726
5727
5728-ALTER TABLE public.rec_record_recordid_seq OWNER TO myradio;
5729+ALTER TABLE rec_record_recordid_seq OWNER TO web;
5730
5731 --
5732--- Name: rec_statuslookup; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5733+-- Name: rec_statuslookup; Type: TABLE; Schema: public; Owner: web
5734 --
5735
5736 CREATE TABLE rec_statuslookup (
5737@@ -4675,10 +5454,10 @@
5738 );
5739
5740
5741-ALTER TABLE public.rec_statuslookup OWNER TO myradio;
5742+ALTER TABLE rec_statuslookup OWNER TO web;
5743
5744 --
5745--- Name: rec_track_trackid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5746+-- Name: rec_track_trackid_seq; Type: SEQUENCE; Schema: public; Owner: web
5747 --
5748
5749 CREATE SEQUENCE rec_track_trackid_seq
5750@@ -4689,12 +5468,12 @@
5751 CACHE 1;
5752
5753
5754-ALTER TABLE public.rec_track_trackid_seq OWNER TO myradio;
5755+ALTER TABLE rec_track_trackid_seq OWNER TO web;
5756
5757 SET default_with_oids = false;
5758
5759 --
5760--- Name: rec_trackcorrection; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5761+-- Name: rec_trackcorrection; Type: TABLE; Schema: public; Owner: web
5762 --
5763
5764 CREATE TABLE rec_trackcorrection (
5765@@ -4705,21 +5484,21 @@
5766 proposed_album_name character varying NOT NULL,
5767 state character(1) DEFAULT 'p'::bpchar NOT NULL,
5768 reviewedby integer,
5769- level integer DEFAULT (-1) NOT NULL
5770+ level integer DEFAULT '-1'::integer NOT NULL
5771 );
5772
5773
5774-ALTER TABLE public.rec_trackcorrection OWNER TO myradio;
5775+ALTER TABLE rec_trackcorrection OWNER TO web;
5776
5777 --
5778--- Name: COLUMN rec_trackcorrection.state; Type: COMMENT; Schema: public; Owner: myradio
5779+-- Name: COLUMN rec_trackcorrection.state; Type: COMMENT; Schema: public; Owner: web
5780 --
5781
5782 COMMENT ON COLUMN rec_trackcorrection.state IS '''a'' Applied, ''r'' Rejected or ''p'' Pending';
5783
5784
5785 --
5786--- Name: rec_trackcorrection_correctionid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
5787+-- Name: rec_trackcorrection_correctionid_seq; Type: SEQUENCE; Schema: public; Owner: web
5788 --
5789
5790 CREATE SEQUENCE rec_trackcorrection_correctionid_seq
5791@@ -4730,17 +5509,70 @@
5792 CACHE 1;
5793
5794
5795-ALTER TABLE public.rec_trackcorrection_correctionid_seq OWNER TO myradio;
5796+ALTER TABLE rec_trackcorrection_correctionid_seq OWNER TO web;
5797
5798 --
5799--- Name: rec_trackcorrection_correctionid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
5800+-- Name: rec_trackcorrection_correctionid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
5801 --
5802
5803 ALTER SEQUENCE rec_trackcorrection_correctionid_seq OWNED BY rec_trackcorrection.correctionid;
5804
5805
5806 --
5807--- Name: recommended_listening; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
5808+-- Name: rec_trackproposal; Type: TABLE; Schema: public; Owner: web
5809+--
5810+
5811+CREATE TABLE rec_trackproposal (
5812+ proposalid integer NOT NULL,
5813+ proposed_title character varying,
5814+ proposed_artist character varying,
5815+ proposed_album_name character varying,
5816+ proposed_position smallint,
5817+ state character(1) DEFAULT 'p'::bpchar,
5818+ proposedby integer,
5819+ reviewedby integer
5820+);
5821+
5822+
5823+ALTER TABLE rec_trackproposal OWNER TO web;
5824+
5825+--
5826+-- Name: TABLE rec_trackproposal; Type: COMMENT; Schema: public; Owner: web
5827+--
5828+
5829+COMMENT ON TABLE rec_trackproposal IS 'Stores proposed metadata for tracks last.fm could not identify.';
5830+
5831+
5832+--
5833+-- Name: COLUMN rec_trackproposal.state; Type: COMMENT; Schema: public; Owner: web
5834+--
5835+
5836+COMMENT ON COLUMN rec_trackproposal.state IS '''a'' Accepted, ''r'' Rejected or ''p'' Pending';
5837+
5838+
5839+--
5840+-- Name: rec_trackproposal_proposalid_seq; Type: SEQUENCE; Schema: public; Owner: web
5841+--
5842+
5843+CREATE SEQUENCE rec_trackproposal_proposalid_seq
5844+ START WITH 1
5845+ INCREMENT BY 1
5846+ NO MINVALUE
5847+ NO MAXVALUE
5848+ CACHE 1;
5849+
5850+
5851+ALTER TABLE rec_trackproposal_proposalid_seq OWNER TO web;
5852+
5853+--
5854+-- Name: rec_trackproposal_proposalid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
5855+--
5856+
5857+ALTER SEQUENCE rec_trackproposal_proposalid_seq OWNED BY rec_trackproposal.proposalid;
5858+
5859+
5860+--
5861+-- Name: recommended_listening; Type: TABLE; Schema: public; Owner: web
5862 --
5863
5864 CREATE TABLE recommended_listening (
5865@@ -4751,38 +5583,38 @@
5866 );
5867
5868
5869-ALTER TABLE public.recommended_listening OWNER TO myradio;
5870+ALTER TABLE recommended_listening OWNER TO web;
5871
5872 --
5873--- Name: TABLE recommended_listening; Type: COMMENT; Schema: public; Owner: myradio
5874+-- Name: TABLE recommended_listening; Type: COMMENT; Schema: public; Owner: web
5875 --
5876
5877 COMMENT ON TABLE recommended_listening IS 'Recommended listening lists.';
5878
5879
5880 --
5881--- Name: COLUMN recommended_listening.week; Type: COMMENT; Schema: public; Owner: myradio
5882+-- Name: COLUMN recommended_listening.week; Type: COMMENT; Schema: public; Owner: web
5883 --
5884
5885 COMMENT ON COLUMN recommended_listening.week IS 'The timestamp of the week whose list this entry is part of.';
5886
5887
5888 --
5889--- Name: COLUMN recommended_listening.title; Type: COMMENT; Schema: public; Owner: myradio
5890+-- Name: COLUMN recommended_listening.title; Type: COMMENT; Schema: public; Owner: web
5891 --
5892
5893 COMMENT ON COLUMN recommended_listening.title IS 'The title of the song that has been recommended.';
5894
5895
5896 --
5897--- Name: COLUMN recommended_listening.artist; Type: COMMENT; Schema: public; Owner: myradio
5898+-- Name: COLUMN recommended_listening.artist; Type: COMMENT; Schema: public; Owner: web
5899 --
5900
5901 COMMENT ON COLUMN recommended_listening.artist IS 'The artist of the song that has been recommended.';
5902
5903
5904 --
5905--- Name: COLUMN recommended_listening."position"; Type: COMMENT; Schema: public; Owner: myradio
5906+-- Name: COLUMN recommended_listening."position"; Type: COMMENT; Schema: public; Owner: web
5907 --
5908
5909 COMMENT ON COLUMN recommended_listening."position" IS 'The position of the item in the list.';
5910@@ -4791,7 +5623,7 @@
5911 SET search_path = schedule, pg_catalog;
5912
5913 --
5914--- Name: show; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
5915+-- Name: show; Type: TABLE; Schema: schedule; Owner: web
5916 --
5917
5918 CREATE TABLE show (
5919@@ -4802,45 +5634,45 @@
5920 );
5921
5922
5923-ALTER TABLE schedule.show OWNER TO myradio;
5924+ALTER TABLE show OWNER TO web;
5925
5926 --
5927--- Name: TABLE show; Type: COMMENT; Schema: schedule; Owner: myradio
5928+-- Name: TABLE show; Type: COMMENT; Schema: schedule; Owner: web
5929 --
5930
5931 COMMENT ON TABLE show IS 'This is a very minimal table that ties everything together. The reason it doesn’t contain so much is so that literally everything else can have multiple entries and multiple versions. This lets us know what happened with everything ever, as well as allowing, for allocated seasons and timeslots, overrides for one or two instances over the default.';
5932
5933
5934 --
5935--- Name: COLUMN show.show_id; Type: COMMENT; Schema: schedule; Owner: myradio
5936+-- Name: COLUMN show.show_id; Type: COMMENT; Schema: schedule; Owner: web
5937 --
5938
5939 COMMENT ON COLUMN show.show_id IS 'A unique identifier for each show';
5940
5941
5942 --
5943--- Name: COLUMN show.show_type_id; Type: COMMENT; Schema: schedule; Owner: myradio
5944+-- Name: COLUMN show.show_type_id; Type: COMMENT; Schema: schedule; Owner: web
5945 --
5946
5947 COMMENT ON COLUMN show.show_type_id IS 'A reference to the type of show';
5948
5949
5950 --
5951--- Name: COLUMN show.submitted; Type: COMMENT; Schema: schedule; Owner: myradio
5952+-- Name: COLUMN show.submitted; Type: COMMENT; Schema: schedule; Owner: web
5953 --
5954
5955-COMMENT ON COLUMN show.submitted IS 'When the application was submitted. If Null, the application has just been saved by the user (not yet implemented in MyRadio)';
5956+COMMENT ON COLUMN show.submitted IS 'When the application was submitted. If Null, the application has just been saved by the user (not yet implemented in MyURY)';
5957
5958
5959 --
5960--- Name: COLUMN show.memberid; Type: COMMENT; Schema: schedule; Owner: myradio
5961+-- Name: COLUMN show.memberid; Type: COMMENT; Schema: schedule; Owner: web
5962 --
5963
5964 COMMENT ON COLUMN show.memberid IS 'The ID of the user who submitted the application';
5965
5966
5967 --
5968--- Name: show_metadata; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
5969+-- Name: show_metadata; Type: TABLE; Schema: schedule; Owner: web
5970 --
5971
5972 CREATE TABLE show_metadata (
5973@@ -4855,73 +5687,296 @@
5974 );
5975
5976
5977-ALTER TABLE schedule.show_metadata OWNER TO myradio;
5978+ALTER TABLE show_metadata OWNER TO web;
5979
5980 --
5981--- Name: TABLE show_metadata; Type: COMMENT; Schema: schedule; Owner: myradio
5982+-- Name: TABLE show_metadata; Type: COMMENT; Schema: schedule; Owner: web
5983 --
5984
5985 COMMENT ON TABLE show_metadata IS 'Stores all text-based items of information associated with a show.';
5986
5987
5988 --
5989--- Name: COLUMN show_metadata.show_metadata_id; Type: COMMENT; Schema: schedule; Owner: myradio
5990+-- Name: COLUMN show_metadata.show_metadata_id; Type: COMMENT; Schema: schedule; Owner: web
5991 --
5992
5993 COMMENT ON COLUMN show_metadata.show_metadata_id IS 'A unique identifier for each text item entry';
5994
5995
5996 --
5997--- Name: COLUMN show_metadata.metadata_key_id; Type: COMMENT; Schema: schedule; Owner: myradio
5998+-- Name: COLUMN show_metadata.metadata_key_id; Type: COMMENT; Schema: schedule; Owner: web
5999 --
6000
6001 COMMENT ON COLUMN show_metadata.metadata_key_id IS 'The ID of the type of metadata stored in this table';
6002
6003
6004 --
6005--- Name: COLUMN show_metadata.show_id; Type: COMMENT; Schema: schedule; Owner: myradio
6006+-- Name: COLUMN show_metadata.show_id; Type: COMMENT; Schema: schedule; Owner: web
6007 --
6008
6009 COMMENT ON COLUMN show_metadata.show_id IS 'The ID of the show the metadata applies to';
6010
6011
6012 --
6013--- Name: COLUMN show_metadata.metadata_value; Type: COMMENT; Schema: schedule; Owner: myradio
6014+-- Name: COLUMN show_metadata.metadata_value; Type: COMMENT; Schema: schedule; Owner: web
6015 --
6016
6017 COMMENT ON COLUMN show_metadata.metadata_value IS 'The value of the metadata';
6018
6019
6020 --
6021--- Name: COLUMN show_metadata.effective_from; Type: COMMENT; Schema: schedule; Owner: myradio
6022+-- Name: COLUMN show_metadata.effective_from; Type: COMMENT; Schema: schedule; Owner: web
6023 --
6024
6025 COMMENT ON COLUMN show_metadata.effective_from IS 'The timestamp from which this version of the show metadata became active. A value of NULL means it is not yet active (e.g. pending review)';
6026
6027
6028 --
6029--- Name: COLUMN show_metadata.memberid; Type: COMMENT; Schema: schedule; Owner: myradio
6030+-- Name: COLUMN show_metadata.memberid; Type: COMMENT; Schema: schedule; Owner: web
6031 --
6032
6033 COMMENT ON COLUMN show_metadata.memberid IS 'The ID of the member who submitted the updated version of the show metadata';
6034
6035
6036 --
6037--- Name: COLUMN show_metadata.approvedid; Type: COMMENT; Schema: schedule; Owner: myradio
6038+-- Name: COLUMN show_metadata.approvedid; Type: COMMENT; Schema: schedule; Owner: web
6039 --
6040
6041 COMMENT ON COLUMN show_metadata.approvedid IS 'The ID of the member who approved the change to the show metadata item. A value of NULL means not yet approved or this item does not need to be approved.';
6042
6043
6044 --
6045--- Name: COLUMN show_metadata.effective_to; Type: COMMENT; Schema: schedule; Owner: myradio
6046+-- Name: COLUMN show_metadata.effective_to; Type: COMMENT; Schema: schedule; Owner: web
6047 --
6048
6049 COMMENT ON COLUMN show_metadata.effective_to IS 'The timestamp of the period at which this metadatum stops being effective. If NULL, the metadatum is effective indefinitely from effective_from.';
6050
6051
6052+SET search_path = public, pg_catalog;
6053+
6054+--
6055+-- Name: sched_entry; Type: VIEW; Schema: public; Owner: web
6056+--
6057+
6058+CREATE VIEW sched_entry AS
6059+ SELECT t0.entryid,
6060+ t0.entrytypeid,
6061+ t0.rss,
6062+ t0.url,
6063+ t1.summary,
6064+ t1.createddate,
6065+ NULL::unknown AS oid,
6066+ t1.summary AS description
6067+ FROM (( SELECT show.show_id AS entryid,
6068+ '3' AS entrytypeid,
6069+ NULL::unknown AS rss,
6070+ NULL::unknown AS url
6071+ FROM schedule.show) t0
6072+ LEFT JOIN ( SELECT show_metadata.show_id AS entryid,
6073+ show_metadata.metadata_value AS summary,
6074+ show_metadata.effective_from AS createddate
6075+ FROM schedule.show_metadata
6076+ WHERE ((show_metadata.metadata_key_id = 2) AND ((show_metadata.effective_to IS NULL) OR (show_metadata.effective_to >= now())))) t1 ON ((t0.entryid = t1.entryid)));
6077+
6078+
6079+ALTER TABLE sched_entry OWNER TO web;
6080+
6081+SET default_with_oids = true;
6082+
6083+--
6084+-- Name: sched_entrytype; Type: TABLE; Schema: public; Owner: web
6085+--
6086+
6087+CREATE TABLE sched_entrytype (
6088+ entrytypeid integer NOT NULL,
6089+ entrytypename character varying(30) NOT NULL,
6090+ causesclash boolean DEFAULT true,
6091+ takesuptime boolean DEFAULT false
6092+);
6093+
6094+
6095+ALTER TABLE sched_entrytype OWNER TO web;
6096+
6097+--
6098+-- Name: COLUMN sched_entrytype.takesuptime; Type: COMMENT; Schema: public; Owner: web
6099+--
6100+
6101+COMMENT ON COLUMN sched_entrytype.takesuptime IS 'defines if this entrytype appears in a persons schedule';
6102+
6103+
6104+--
6105+-- Name: sched_entrytype_entrytypeid_seq; Type: SEQUENCE; Schema: public; Owner: web
6106+--
6107+
6108+CREATE SEQUENCE sched_entrytype_entrytypeid_seq
6109+ START WITH 1
6110+ INCREMENT BY 1
6111+ NO MINVALUE
6112+ NO MAXVALUE
6113+ CACHE 1;
6114+
6115+
6116+ALTER TABLE sched_entrytype_entrytypeid_seq OWNER TO web;
6117+
6118+--
6119+-- Name: sched_entrytype_entrytypeid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6120+--
6121+
6122+ALTER SEQUENCE sched_entrytype_entrytypeid_seq OWNED BY sched_entrytype.entrytypeid;
6123+
6124+
6125+--
6126+-- Name: sched_genre_genreid_seq; Type: SEQUENCE; Schema: public; Owner: web
6127+--
6128+
6129+CREATE SEQUENCE sched_genre_genreid_seq
6130+ START WITH 1
6131+ INCREMENT BY 1
6132+ NO MINVALUE
6133+ NO MAXVALUE
6134+ CACHE 1;
6135+
6136+
6137+ALTER TABLE sched_genre_genreid_seq OWNER TO web;
6138+
6139+SET default_with_oids = false;
6140+
6141+--
6142+-- Name: sched_genre; Type: TABLE; Schema: public; Owner: web
6143+--
6144+
6145+CREATE TABLE sched_genre (
6146+ genreid integer DEFAULT nextval('sched_genre_genreid_seq'::regclass) NOT NULL,
6147+ genrename character varying(30) NOT NULL
6148+);
6149+
6150+
6151+ALTER TABLE sched_genre OWNER TO web;
6152+
6153+--
6154+-- Name: COLUMN sched_genre.genreid; Type: COMMENT; Schema: public; Owner: web
6155+--
6156+
6157+COMMENT ON COLUMN sched_genre.genreid IS 'The unique ID number of the genre.';
6158+
6159+
6160+--
6161+-- Name: COLUMN sched_genre.genrename; Type: COMMENT; Schema: public; Owner: web
6162+--
6163+
6164+COMMENT ON COLUMN sched_genre.genrename IS 'The name of the genre.';
6165+
6166+
6167+SET default_with_oids = true;
6168+
6169+--
6170+-- Name: sched_musiccategory; Type: TABLE; Schema: public; Owner: web
6171+--
6172+
6173+CREATE TABLE sched_musiccategory (
6174+ musiccategoryid integer NOT NULL,
6175+ musiccategoryname character varying(30) NOT NULL,
6176+ ordering integer
6177+);
6178+
6179+
6180+ALTER TABLE sched_musiccategory OWNER TO web;
6181+
6182+--
6183+-- Name: sched_musiccategory_musiccategoryid_seq; Type: SEQUENCE; Schema: public; Owner: web
6184+--
6185+
6186+CREATE SEQUENCE sched_musiccategory_musiccategoryid_seq
6187+ START WITH 1
6188+ INCREMENT BY 1
6189+ NO MINVALUE
6190+ NO MAXVALUE
6191+ CACHE 1;
6192+
6193+
6194+ALTER TABLE sched_musiccategory_musiccategoryid_seq OWNER TO web;
6195+
6196+--
6197+-- Name: sched_musiccategory_musiccategoryid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6198+--
6199+
6200+ALTER SEQUENCE sched_musiccategory_musiccategoryid_seq OWNED BY sched_musiccategory.musiccategoryid;
6201+
6202+
6203+--
6204+-- Name: sched_room; Type: TABLE; Schema: public; Owner: web
6205+--
6206+
6207+CREATE TABLE sched_room (
6208+ roomid integer NOT NULL,
6209+ roomname character varying(30) NOT NULL,
6210+ ordering integer
6211+);
6212+
6213+
6214+ALTER TABLE sched_room OWNER TO web;
6215+
6216+--
6217+-- Name: sched_room_roomid_seq; Type: SEQUENCE; Schema: public; Owner: web
6218+--
6219+
6220+CREATE SEQUENCE sched_room_roomid_seq
6221+ START WITH 1
6222+ INCREMENT BY 1
6223+ NO MINVALUE
6224+ NO MAXVALUE
6225+ CACHE 1;
6226+
6227+
6228+ALTER TABLE sched_room_roomid_seq OWNER TO web;
6229+
6230+--
6231+-- Name: sched_room_roomid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6232+--
6233+
6234+ALTER SEQUENCE sched_room_roomid_seq OWNED BY sched_room.roomid;
6235+
6236+
6237+--
6238+-- Name: sched_speechcategory; Type: TABLE; Schema: public; Owner: web
6239+--
6240+
6241+CREATE TABLE sched_speechcategory (
6242+ speechcategoryid integer NOT NULL,
6243+ speechcategoryname character varying(30) NOT NULL,
6244+ ordering integer
6245+);
6246+
6247+
6248+ALTER TABLE sched_speechcategory OWNER TO web;
6249+
6250 --
6251--- Name: show_season; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
6252+-- Name: sched_speechcategory_speechcategoryid_seq; Type: SEQUENCE; Schema: public; Owner: web
6253+--
6254+
6255+CREATE SEQUENCE sched_speechcategory_speechcategoryid_seq
6256+ START WITH 1
6257+ INCREMENT BY 1
6258+ NO MINVALUE
6259+ NO MAXVALUE
6260+ CACHE 1;
6261+
6262+
6263+ALTER TABLE sched_speechcategory_speechcategoryid_seq OWNER TO web;
6264+
6265+--
6266+-- Name: sched_speechcategory_speechcategoryid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6267+--
6268+
6269+ALTER SEQUENCE sched_speechcategory_speechcategoryid_seq OWNED BY sched_speechcategory.speechcategoryid;
6270+
6271+
6272+SET search_path = schedule, pg_catalog;
6273+
6274+SET default_with_oids = false;
6275+
6276+--
6277+-- Name: show_season; Type: TABLE; Schema: schedule; Owner: web
6278 --
6279
6280 CREATE TABLE show_season (
6281@@ -4933,52 +5988,52 @@
6282 );
6283
6284
6285-ALTER TABLE schedule.show_season OWNER TO myradio;
6286+ALTER TABLE show_season OWNER TO web;
6287
6288 --
6289--- Name: TABLE show_season; Type: COMMENT; Schema: schedule; Owner: myradio
6290+-- Name: TABLE show_season; Type: COMMENT; Schema: schedule; Owner: web
6291 --
6292
6293 COMMENT ON TABLE show_season IS 'Shows are now divided into Seasons - these are what actually have requested times and individual shows linked to them.';
6294
6295
6296 --
6297--- Name: COLUMN show_season.show_season_id; Type: COMMENT; Schema: schedule; Owner: myradio
6298+-- Name: COLUMN show_season.show_season_id; Type: COMMENT; Schema: schedule; Owner: web
6299 --
6300
6301 COMMENT ON COLUMN show_season.show_season_id IS 'A unique identifier for each season';
6302
6303
6304 --
6305--- Name: COLUMN show_season.show_id; Type: COMMENT; Schema: schedule; Owner: myradio
6306+-- Name: COLUMN show_season.show_id; Type: COMMENT; Schema: schedule; Owner: web
6307 --
6308
6309 COMMENT ON COLUMN show_season.show_id IS 'The ID of the show this is a season for';
6310
6311
6312 --
6313--- Name: COLUMN show_season.termid; Type: COMMENT; Schema: schedule; Owner: myradio
6314+-- Name: COLUMN show_season.termid; Type: COMMENT; Schema: schedule; Owner: web
6315 --
6316
6317 COMMENT ON COLUMN show_season.termid IS 'The ID for the term this season should be scheduled for';
6318
6319
6320 --
6321--- Name: COLUMN show_season.submitted; Type: COMMENT; Schema: schedule; Owner: myradio
6322+-- Name: COLUMN show_season.submitted; Type: COMMENT; Schema: schedule; Owner: web
6323 --
6324
6325 COMMENT ON COLUMN show_season.submitted IS 'When the application was submitted. If Null, the application has just been saved by the user';
6326
6327
6328 --
6329--- Name: COLUMN show_season.memberid; Type: COMMENT; Schema: schedule; Owner: myradio
6330+-- Name: COLUMN show_season.memberid; Type: COMMENT; Schema: schedule; Owner: web
6331 --
6332
6333 COMMENT ON COLUMN show_season.memberid IS 'The ID of the user that submitted the application';
6334
6335
6336 --
6337--- Name: show_season_timeslot; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
6338+-- Name: show_season_timeslot; Type: TABLE; Schema: schedule; Owner: web
6339 --
6340
6341 CREATE TABLE show_season_timeslot (
6342@@ -4991,17 +6046,17 @@
6343 );
6344
6345
6346-ALTER TABLE schedule.show_season_timeslot OWNER TO myradio;
6347+ALTER TABLE show_season_timeslot OWNER TO web;
6348
6349 --
6350--- Name: COLUMN show_season_timeslot.duration; Type: COMMENT; Schema: schedule; Owner: myradio
6351+-- Name: COLUMN show_season_timeslot.duration; Type: COMMENT; Schema: schedule; Owner: web
6352 --
6353
6354 COMMENT ON COLUMN show_season_timeslot.duration IS 'The duration of the show, as a time interval.';
6355
6356
6357 --
6358--- Name: view_timeslot_legacy; Type: VIEW; Schema: schedule; Owner: myradio
6359+-- Name: view_timeslot_legacy; Type: VIEW; Schema: schedule; Owner: web
6360 --
6361
6362 CREATE VIEW view_timeslot_legacy AS
6363@@ -5029,12 +6084,12 @@
6364 LIMIT 1))) t2 ON ((t1.show_id = t2.show_id)));
6365
6366
6367-ALTER TABLE schedule.view_timeslot_legacy OWNER TO myradio;
6368+ALTER TABLE view_timeslot_legacy OWNER TO web;
6369
6370 SET search_path = public, pg_catalog;
6371
6372 --
6373--- Name: sched_timeslot; Type: VIEW; Schema: public; Owner: myradio
6374+-- Name: sched_timeslot; Type: VIEW; Schema: public; Owner: web
6375 --
6376
6377 CREATE VIEW sched_timeslot AS
6378@@ -5047,10 +6102,10 @@
6379 FROM schedule.view_timeslot_legacy;
6380
6381
6382-ALTER TABLE public.sched_timeslot OWNER TO myradio;
6383+ALTER TABLE sched_timeslot OWNER TO web;
6384
6385 --
6386--- Name: selector_actions; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6387+-- Name: selector_actions; Type: TABLE; Schema: public; Owner: web
6388 --
6389
6390 CREATE TABLE selector_actions (
6391@@ -5059,10 +6114,10 @@
6392 );
6393
6394
6395-ALTER TABLE public.selector_actions OWNER TO myradio;
6396+ALTER TABLE selector_actions OWNER TO web;
6397
6398 --
6399--- Name: selector_actions_action_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6400+-- Name: selector_actions_action_seq; Type: SEQUENCE; Schema: public; Owner: web
6401 --
6402
6403 CREATE SEQUENCE selector_actions_action_seq
6404@@ -5073,17 +6128,17 @@
6405 CACHE 1;
6406
6407
6408-ALTER TABLE public.selector_actions_action_seq OWNER TO myradio;
6409+ALTER TABLE selector_actions_action_seq OWNER TO web;
6410
6411 --
6412--- Name: selector_actions_action_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6413+-- Name: selector_actions_action_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6414 --
6415
6416 ALTER SEQUENCE selector_actions_action_seq OWNED BY selector_actions.action;
6417
6418
6419 --
6420--- Name: selector_selid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6421+-- Name: selector_selid_seq; Type: SEQUENCE; Schema: public; Owner: web
6422 --
6423
6424 CREATE SEQUENCE selector_selid_seq
6425@@ -5094,17 +6149,17 @@
6426 CACHE 1;
6427
6428
6429-ALTER TABLE public.selector_selid_seq OWNER TO myradio;
6430+ALTER TABLE selector_selid_seq OWNER TO web;
6431
6432 --
6433--- Name: selector_selid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6434+-- Name: selector_selid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6435 --
6436
6437 ALTER SEQUENCE selector_selid_seq OWNED BY selector.selid;
6438
6439
6440 --
6441--- Name: sis_comm_track_comm_trackid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6442+-- Name: sis_comm_track_comm_trackid_seq; Type: SEQUENCE; Schema: public; Owner: web
6443 --
6444
6445 CREATE SEQUENCE sis_comm_track_comm_trackid_seq
6446@@ -5115,12 +6170,12 @@
6447 CACHE 1;
6448
6449
6450-ALTER TABLE public.sis_comm_track_comm_trackid_seq OWNER TO myradio;
6451+ALTER TABLE sis_comm_track_comm_trackid_seq OWNER TO web;
6452
6453 SET default_with_oids = true;
6454
6455 --
6456--- Name: sis_commtype; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6457+-- Name: sis_commtype; Type: TABLE; Schema: public; Owner: web
6458 --
6459
6460 CREATE TABLE sis_commtype (
6461@@ -5129,10 +6184,10 @@
6462 );
6463
6464
6465-ALTER TABLE public.sis_commtype OWNER TO myradio;
6466+ALTER TABLE sis_commtype OWNER TO web;
6467
6468 --
6469--- Name: sis_commtype_commtypeid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6470+-- Name: sis_commtype_commtypeid_seq; Type: SEQUENCE; Schema: public; Owner: web
6471 --
6472
6473 CREATE SEQUENCE sis_commtype_commtypeid_seq
6474@@ -5143,10 +6198,10 @@
6475 CACHE 1;
6476
6477
6478-ALTER TABLE public.sis_commtype_commtypeid_seq OWNER TO myradio;
6479+ALTER TABLE sis_commtype_commtypeid_seq OWNER TO web;
6480
6481 --
6482--- Name: sis_commtype_commtypeid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6483+-- Name: sis_commtype_commtypeid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6484 --
6485
6486 ALTER SEQUENCE sis_commtype_commtypeid_seq OWNED BY sis_commtype.commtypeid;
6487@@ -5155,7 +6210,7 @@
6488 SET default_with_oids = false;
6489
6490 --
6491--- Name: sis_piss; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6492+-- Name: sis_piss; Type: TABLE; Schema: public; Owner: web
6493 --
6494
6495 CREATE TABLE sis_piss (
6496@@ -5166,17 +6221,17 @@
6497 );
6498
6499
6500-ALTER TABLE public.sis_piss OWNER TO myradio;
6501+ALTER TABLE sis_piss OWNER TO web;
6502
6503 --
6504--- Name: TABLE sis_piss; Type: COMMENT; Schema: public; Owner: myradio
6505+-- Name: TABLE sis_piss; Type: COMMENT; Schema: public; Owner: web
6506 --
6507
6508 COMMENT ON TABLE sis_piss IS 'SIS2 Presenter Information Sheets';
6509
6510
6511 --
6512--- Name: sis_piss_id_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6513+-- Name: sis_piss_id_seq; Type: SEQUENCE; Schema: public; Owner: web
6514 --
6515
6516 CREATE SEQUENCE sis_piss_id_seq
6517@@ -5187,10 +6242,10 @@
6518 CACHE 1;
6519
6520
6521-ALTER TABLE public.sis_piss_id_seq OWNER TO myradio;
6522+ALTER TABLE sis_piss_id_seq OWNER TO web;
6523
6524 --
6525--- Name: sis_piss_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6526+-- Name: sis_piss_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6527 --
6528
6529 ALTER SEQUENCE sis_piss_id_seq OWNED BY sis_piss.id;
6530@@ -5199,7 +6254,7 @@
6531 SET default_with_oids = true;
6532
6533 --
6534--- Name: sis_status; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6535+-- Name: sis_status; Type: TABLE; Schema: public; Owner: web
6536 --
6537
6538 CREATE TABLE sis_status (
6539@@ -5208,31 +6263,31 @@
6540 );
6541
6542
6543-ALTER TABLE public.sis_status OWNER TO myradio;
6544+ALTER TABLE sis_status OWNER TO web;
6545
6546 --
6547--- Name: sis_status_statusid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6548+-- Name: sis_status_statusid_seq; Type: SEQUENCE; Schema: public; Owner: web
6549 --
6550
6551 CREATE SEQUENCE sis_status_statusid_seq
6552- START WITH 6
6553+ START WITH 1
6554 INCREMENT BY 1
6555 NO MINVALUE
6556 NO MAXVALUE
6557 CACHE 1;
6558
6559
6560-ALTER TABLE public.sis_status_statusid_seq OWNER TO myradio;
6561+ALTER TABLE sis_status_statusid_seq OWNER TO web;
6562
6563 --
6564--- Name: sis_status_statusid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6565+-- Name: sis_status_statusid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6566 --
6567
6568 ALTER SEQUENCE sis_status_statusid_seq OWNED BY sis_status.statusid;
6569
6570
6571 --
6572--- Name: sis_type_typeid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6573+-- Name: sis_type_typeid_seq; Type: SEQUENCE; Schema: public; Owner: web
6574 --
6575
6576 CREATE SEQUENCE sis_type_typeid_seq
6577@@ -5243,61 +6298,79 @@
6578 CACHE 1;
6579
6580
6581-ALTER TABLE public.sis_type_typeid_seq OWNER TO myradio;
6582+ALTER TABLE sis_type_typeid_seq OWNER TO web;
6583
6584 SET default_with_oids = false;
6585
6586 --
6587--- Name: site_package; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6588+-- Name: sso_session; Type: TABLE; Schema: public; Owner: web
6589 --
6590
6591-CREATE TABLE site_package (
6592- packageid integer NOT NULL,
6593- name text NOT NULL,
6594- active boolean DEFAULT false NOT NULL,
6595- starttime timestamp without time zone,
6596- endtime timestamp without time zone
6597+CREATE TABLE sso_session (
6598+ id character varying(32) NOT NULL,
6599+ data text,
6600+ "timestamp" timestamp without time zone NOT NULL
6601 );
6602
6603
6604-ALTER TABLE public.site_package OWNER TO myradio;
6605+ALTER TABLE sso_session OWNER TO web;
6606+
6607+SET default_with_oids = true;
6608
6609 --
6610--- Name: TABLE site_package; Type: COMMENT; Schema: public; Owner: myradio
6611+-- Name: strm_useragent; Type: TABLE; Schema: public; Owner: web
6612 --
6613
6614-COMMENT ON TABLE site_package IS 'Table defining special event packages, which temporarily replace the site look and feel.
6615-Packages reside in /content/packages/*NAME* and must include the following files:
6616-1) package.css - a CSS file patching the normal URY CSS to add event-specific changes such as a different banner.
6617-2) index.php - a PHP file that will replace the home page while the package is active. This will usually redirect to the actual home page for the event.';
6618+CREATE TABLE strm_useragent (
6619+ useragentid integer NOT NULL,
6620+ useragent character varying(255) NOT NULL
6621+);
6622+
6623
6624+ALTER TABLE strm_useragent OWNER TO web;
6625
6626 --
6627--- Name: COLUMN site_package.packageid; Type: COMMENT; Schema: public; Owner: myradio
6628+-- Name: strm_client_clientid_seq; Type: SEQUENCE; Schema: public; Owner: web
6629 --
6630
6631-COMMENT ON COLUMN site_package.packageid IS 'The unique identifier of the package. The package with the highest packageid (and active set to TRUE) is the one that will be applied to the site.';
6632+CREATE SEQUENCE strm_client_clientid_seq
6633+ START WITH 1
6634+ INCREMENT BY 1
6635+ NO MINVALUE
6636+ NO MAXVALUE
6637+ CACHE 1;
6638+
6639
6640+ALTER TABLE strm_client_clientid_seq OWNER TO web;
6641
6642 --
6643--- Name: COLUMN site_package.name; Type: COMMENT; Schema: public; Owner: myradio
6644+-- Name: strm_client_clientid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6645 --
6646
6647-COMMENT ON COLUMN site_package.name IS 'The name of the package, which also denotes the subdirectory of /content/packages/ that contains the package files.';
6648+ALTER SEQUENCE strm_client_clientid_seq OWNED BY strm_useragent.useragentid;
6649
6650
6651 --
6652--- Name: COLUMN site_package.active; Type: COMMENT; Schema: public; Owner: myradio
6653+-- Name: strm_log; Type: TABLE; Schema: public; Owner: web
6654 --
6655
6656-COMMENT ON COLUMN site_package.active IS 'When TRUE, the package is active. There should generally be only one active package; in the case that there are multiple the one with the highest packageid is selected.';
6657+CREATE TABLE strm_log (
6658+ logid integer NOT NULL,
6659+ streamid integer NOT NULL,
6660+ useragentid integer NOT NULL,
6661+ starttime timestamp with time zone NOT NULL,
6662+ endtime timestamp with time zone NOT NULL,
6663+ ipaddr inet NOT NULL
6664+);
6665+
6666
6667+ALTER TABLE strm_log OWNER TO web;
6668
6669 --
6670--- Name: site_special_package_packageid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6671+-- Name: strm_log_logid_seq; Type: SEQUENCE; Schema: public; Owner: web
6672 --
6673
6674-CREATE SEQUENCE site_special_package_packageid_seq
6675+CREATE SEQUENCE strm_log_logid_seq
6676 START WITH 1
6677 INCREMENT BY 1
6678 NO MINVALUE
6679@@ -5305,33 +6378,33 @@
6680 CACHE 1;
6681
6682
6683-ALTER TABLE public.site_special_package_packageid_seq OWNER TO myradio;
6684+ALTER TABLE strm_log_logid_seq OWNER TO web;
6685
6686 --
6687--- Name: site_special_package_packageid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6688+-- Name: strm_log_logid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6689 --
6690
6691-ALTER SEQUENCE site_special_package_packageid_seq OWNED BY site_package.packageid;
6692+ALTER SEQUENCE strm_log_logid_seq OWNED BY strm_log.logid;
6693
6694
6695 --
6696--- Name: sitetree_tree; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6697+-- Name: strm_logfile; Type: TABLE; Schema: public; Owner: web
6698 --
6699
6700-CREATE TABLE sitetree_tree (
6701- id integer NOT NULL,
6702- title character varying(100) NOT NULL,
6703- alias character varying(80) NOT NULL
6704+CREATE TABLE strm_logfile (
6705+ logfileid integer NOT NULL,
6706+ filename character varying(255) NOT NULL,
6707+ lastsize integer
6708 );
6709
6710
6711-ALTER TABLE public.sitetree_tree OWNER TO myradio;
6712+ALTER TABLE strm_logfile OWNER TO web;
6713
6714 --
6715--- Name: sitetree_tree_id_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6716+-- Name: strm_logfile_logfileid_seq; Type: SEQUENCE; Schema: public; Owner: web
6717 --
6718
6719-CREATE SEQUENCE sitetree_tree_id_seq
6720+CREATE SEQUENCE strm_logfile_logfileid_seq
6721 START WITH 1
6722 INCREMENT BY 1
6723 NO MINVALUE
6724@@ -5339,60 +6412,32 @@
6725 CACHE 1;
6726
6727
6728-ALTER TABLE public.sitetree_tree_id_seq OWNER TO myradio;
6729-
6730---
6731--- Name: sitetree_tree_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6732---
6733-
6734-ALTER SEQUENCE sitetree_tree_id_seq OWNED BY sitetree_tree.id;
6735-
6736+ALTER TABLE strm_logfile_logfileid_seq OWNER TO web;
6737
6738 --
6739--- Name: sitetree_treeitem; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6740+-- Name: strm_logfile_logfileid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6741 --
6742
6743-CREATE TABLE sitetree_treeitem (
6744- id integer NOT NULL,
6745- title character varying(100) NOT NULL,
6746- hint character varying(200) NOT NULL,
6747- url character varying(200) NOT NULL,
6748- urlaspattern boolean NOT NULL,
6749- tree_id integer NOT NULL,
6750- hidden boolean NOT NULL,
6751- alias character varying(80),
6752- description text NOT NULL,
6753- inmenu boolean NOT NULL,
6754- inbreadcrumbs boolean NOT NULL,
6755- insitetree boolean NOT NULL,
6756- access_loggedin boolean NOT NULL,
6757- access_restricted boolean NOT NULL,
6758- access_perm_type integer NOT NULL,
6759- parent_id integer,
6760- sort_order integer NOT NULL
6761-);
6762-
6763+ALTER SEQUENCE strm_logfile_logfileid_seq OWNED BY strm_logfile.logfileid;
6764
6765-ALTER TABLE public.sitetree_treeitem OWNER TO myradio;
6766
6767 --
6768--- Name: sitetree_treeitem_access_permissions; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6769+-- Name: strm_stream; Type: TABLE; Schema: public; Owner: web
6770 --
6771
6772-CREATE TABLE sitetree_treeitem_access_permissions (
6773- id integer NOT NULL,
6774- treeitem_id integer NOT NULL,
6775- permission_id integer NOT NULL
6776+CREATE TABLE strm_stream (
6777+ streamid integer NOT NULL,
6778+ streamname character varying(255) NOT NULL
6779 );
6780
6781
6782-ALTER TABLE public.sitetree_treeitem_access_permissions OWNER TO myradio;
6783+ALTER TABLE strm_stream OWNER TO web;
6784
6785 --
6786--- Name: sitetree_treeitem_access_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6787+-- Name: strm_stream_streamid_seq; Type: SEQUENCE; Schema: public; Owner: web
6788 --
6789
6790-CREATE SEQUENCE sitetree_treeitem_access_permissions_id_seq
6791+CREATE SEQUENCE strm_stream_streamid_seq
6792 START WITH 1
6793 INCREMENT BY 1
6794 NO MINVALUE
6795@@ -5400,68 +6445,88 @@
6796 CACHE 1;
6797
6798
6799-ALTER TABLE public.sitetree_treeitem_access_permissions_id_seq OWNER TO myradio;
6800+ALTER TABLE strm_stream_streamid_seq OWNER TO web;
6801+
6802+--
6803+-- Name: strm_stream_streamid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6804+--
6805+
6806+ALTER SEQUENCE strm_stream_streamid_seq OWNED BY strm_stream.streamid;
6807+
6808
6809 --
6810--- Name: sitetree_treeitem_access_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6811+-- Name: team; Type: TABLE; Schema: public; Owner: pgsql
6812 --
6813
6814-ALTER SEQUENCE sitetree_treeitem_access_permissions_id_seq OWNED BY sitetree_treeitem_access_permissions.id;
6815+CREATE TABLE team (
6816+ teamid integer DEFAULT nextval(('"team_teamid_seq"'::text)::regclass) NOT NULL,
6817+ team_name character varying(255) NOT NULL,
6818+ descr character varying(255),
6819+ local_group character varying(255),
6820+ local_alias character varying(255),
6821+ ordering smallint,
6822+ status character(1) DEFAULT 'c'::bpchar NOT NULL
6823+);
6824+
6825
6826+ALTER TABLE team OWNER TO pgsql;
6827
6828 --
6829--- Name: sitetree_treeitem_id_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6830+-- Name: team_teamid_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
6831 --
6832
6833-CREATE SEQUENCE sitetree_treeitem_id_seq
6834+CREATE SEQUENCE team_teamid_seq
6835 START WITH 1
6836 INCREMENT BY 1
6837 NO MINVALUE
6838- NO MAXVALUE
6839+ MAXVALUE 2147483647
6840 CACHE 1;
6841
6842
6843-ALTER TABLE public.sitetree_treeitem_id_seq OWNER TO myradio;
6844+ALTER TABLE team_teamid_seq OWNER TO pgsql;
6845+
6846+SET default_with_oids = false;
6847
6848 --
6849--- Name: sitetree_treeitem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6850+-- Name: terms; Type: TABLE; Schema: public; Owner: web
6851 --
6852
6853-ALTER SEQUENCE sitetree_treeitem_id_seq OWNED BY sitetree_treeitem.id;
6854+CREATE TABLE terms (
6855+ start timestamp with time zone NOT NULL,
6856+ descr character varying(10) NOT NULL,
6857+ finish timestamp with time zone NOT NULL,
6858+ termid integer NOT NULL
6859+);
6860+
6861
6862+ALTER TABLE terms OWNER TO web;
6863
6864 --
6865--- Name: sso_session; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6866+-- Name: TABLE terms; Type: COMMENT; Schema: public; Owner: web
6867 --
6868
6869-CREATE TABLE sso_session (
6870- id character varying(32) NOT NULL,
6871- data text,
6872- "timestamp" timestamp without time zone NOT NULL
6873-);
6874+COMMENT ON TABLE terms IS 'URY university term database. Must be updated regularly. Starts and finishes should be midnight UTC on the Monday of Weeks 1 and 11 respectively, NOT MIDNIGHT LOCAL TIME.';
6875
6876
6877-ALTER TABLE public.sso_session OWNER TO myradio;
6878+--
6879+-- Name: COLUMN terms.start; Type: COMMENT; Schema: public; Owner: web
6880+--
6881+
6882+COMMENT ON COLUMN terms.start IS 'Midnight UTC, Monday Week 1';
6883
6884-SET default_with_oids = true;
6885
6886 --
6887--- Name: strm_useragent; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6888+-- Name: COLUMN terms.finish; Type: COMMENT; Schema: public; Owner: web
6889 --
6890
6891-CREATE TABLE strm_useragent (
6892- useragentid integer NOT NULL,
6893- useragent character varying(255) NOT NULL
6894-);
6895-
6896+COMMENT ON COLUMN terms.finish IS 'Midnight UTC, Monday Week 11';
6897
6898-ALTER TABLE public.strm_useragent OWNER TO myradio;
6899
6900 --
6901--- Name: strm_client_clientid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6902+-- Name: terms_termid_seq; Type: SEQUENCE; Schema: public; Owner: web
6903 --
6904
6905-CREATE SEQUENCE strm_client_clientid_seq
6906+CREATE SEQUENCE terms_termid_seq
6907 START WITH 1
6908 INCREMENT BY 1
6909 NO MINVALUE
6910@@ -5469,70 +6534,79 @@
6911 CACHE 1;
6912
6913
6914-ALTER TABLE public.strm_client_clientid_seq OWNER TO myradio;
6915+ALTER TABLE terms_termid_seq OWNER TO web;
6916
6917 --
6918--- Name: strm_client_clientid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6919+-- Name: terms_termid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: web
6920 --
6921
6922-ALTER SEQUENCE strm_client_clientid_seq OWNED BY strm_useragent.useragentid;
6923+ALTER SEQUENCE terms_termid_seq OWNED BY terms.termid;
6924
6925
6926+SET search_path = rapier, pg_catalog;
6927+
6928 --
6929--- Name: strm_log; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6930+-- Name: acl_member; Type: TABLE; Schema: rapier; Owner: web
6931 --
6932
6933-CREATE TABLE strm_log (
6934- logid integer NOT NULL,
6935- streamid integer NOT NULL,
6936- useragentid integer NOT NULL,
6937- starttime timestamp with time zone NOT NULL,
6938- endtime timestamp with time zone NOT NULL,
6939- ipaddr inet NOT NULL
6940+CREATE TABLE acl_member (
6941+ privilegeid integer NOT NULL,
6942+ memberid integer,
6943+ class text NOT NULL,
6944+ verb text NOT NULL,
6945+ scope integer DEFAULT 0 NOT NULL
6946 );
6947
6948
6949-ALTER TABLE public.strm_log OWNER TO myradio;
6950+ALTER TABLE acl_member OWNER TO web;
6951
6952 --
6953--- Name: strm_log_logid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
6954+-- Name: TABLE acl_member; Type: COMMENT; Schema: rapier; Owner: web
6955 --
6956
6957-CREATE SEQUENCE strm_log_logid_seq
6958- START WITH 1
6959- INCREMENT BY 1
6960- NO MINVALUE
6961- NO MAXVALUE
6962- CACHE 1;
6963+COMMENT ON TABLE acl_member IS 'Access Control List for regular members (used to grant temporary and extraordinary permissions)';
6964
6965
6966-ALTER TABLE public.strm_log_logid_seq OWNER TO myradio;
6967+--
6968+-- Name: COLUMN acl_member.privilegeid; Type: COMMENT; Schema: rapier; Owner: web
6969+--
6970+
6971+COMMENT ON COLUMN acl_member.privilegeid IS 'The unique ID of this ACL row.';
6972+
6973
6974 --
6975--- Name: strm_log_logid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
6976+-- Name: COLUMN acl_member.memberid; Type: COMMENT; Schema: rapier; Owner: web
6977 --
6978
6979-ALTER SEQUENCE strm_log_logid_seq OWNED BY strm_log.logid;
6980+COMMENT ON COLUMN acl_member.memberid IS 'The unique ID of the member being granted a permission.';
6981
6982
6983 --
6984--- Name: strm_logfile; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
6985+-- Name: COLUMN acl_member.class; Type: COMMENT; Schema: rapier; Owner: web
6986 --
6987
6988-CREATE TABLE strm_logfile (
6989- logfileid integer NOT NULL,
6990- filename character varying(255) NOT NULL,
6991- lastsize integer
6992-);
6993+COMMENT ON COLUMN acl_member.class IS 'The full name of the Rapier object class a permission is being granted for.';
6994
6995
6996-ALTER TABLE public.strm_logfile OWNER TO myradio;
6997+--
6998+-- Name: COLUMN acl_member.verb; Type: COMMENT; Schema: rapier; Owner: web
6999+--
7000+
7001+COMMENT ON COLUMN acl_member.verb IS 'The verb (eg "read") representing the privileged action being granted.';
7002+
7003
7004 --
7005--- Name: strm_logfile_logfileid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
7006+-- Name: COLUMN acl_member.scope; Type: COMMENT; Schema: rapier; Owner: web
7007 --
7008
7009-CREATE SEQUENCE strm_logfile_logfileid_seq
7010+COMMENT ON COLUMN acl_member.scope IS 'The scope of this action being granted. (see constants_acl_scope).';
7011+
7012+
7013+--
7014+-- Name: acl_member_privilegeid_seq; Type: SEQUENCE; Schema: rapier; Owner: web
7015+--
7016+
7017+CREATE SEQUENCE acl_member_privilegeid_seq
7018 START WITH 1
7019 INCREMENT BY 1
7020 NO MINVALUE
7021@@ -5540,32 +6614,42 @@
7022 CACHE 1;
7023
7024
7025-ALTER TABLE public.strm_logfile_logfileid_seq OWNER TO myradio;
7026+ALTER TABLE acl_member_privilegeid_seq OWNER TO web;
7027
7028 --
7029--- Name: strm_logfile_logfileid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
7030+-- Name: acl_member_privilegeid_seq; Type: SEQUENCE OWNED BY; Schema: rapier; Owner: web
7031 --
7032
7033-ALTER SEQUENCE strm_logfile_logfileid_seq OWNED BY strm_logfile.logfileid;
7034+ALTER SEQUENCE acl_member_privilegeid_seq OWNED BY acl_member.privilegeid;
7035
7036
7037 --
7038--- Name: strm_stream; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
7039+-- Name: acl_officer; Type: TABLE; Schema: rapier; Owner: web
7040 --
7041
7042-CREATE TABLE strm_stream (
7043- streamid integer NOT NULL,
7044- streamname character varying(255) NOT NULL
7045+CREATE TABLE acl_officer (
7046+ privilegeid integer DEFAULT nextval('acl_member_privilegeid_seq'::regclass) NOT NULL,
7047+ officerid integer NOT NULL,
7048+ class text NOT NULL,
7049+ verb text NOT NULL,
7050+ scope integer DEFAULT 0 NOT NULL
7051 );
7052
7053
7054-ALTER TABLE public.strm_stream OWNER TO myradio;
7055+ALTER TABLE acl_officer OWNER TO web;
7056
7057 --
7058--- Name: strm_stream_streamid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
7059+-- Name: COLUMN acl_officer.class; Type: COMMENT; Schema: rapier; Owner: web
7060 --
7061
7062-CREATE SEQUENCE strm_stream_streamid_seq
7063+COMMENT ON COLUMN acl_officer.class IS 'The full name of the Rapier object class a permission is being granted for.';
7064+
7065+
7066+--
7067+-- Name: acl_officer_privilegeid_seq; Type: SEQUENCE; Schema: rapier; Owner: web
7068+--
7069+
7070+CREATE SEQUENCE acl_officer_privilegeid_seq
7071 START WITH 1
7072 INCREMENT BY 1
7073 NO MINVALUE
7074@@ -5573,108 +6657,136 @@
7075 CACHE 1;
7076
7077
7078-ALTER TABLE public.strm_stream_streamid_seq OWNER TO myradio;
7079+ALTER TABLE acl_officer_privilegeid_seq OWNER TO web;
7080
7081 --
7082--- Name: strm_stream_streamid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
7083+-- Name: client; Type: TABLE; Schema: rapier; Owner: web
7084 --
7085
7086-ALTER SEQUENCE strm_stream_streamid_seq OWNED BY strm_stream.streamid;
7087+CREATE TABLE client (
7088+ clientid integer NOT NULL,
7089+ name text NOT NULL,
7090+ secrethash text NOT NULL,
7091+ description text
7092+);
7093+
7094
7095+ALTER TABLE client OWNER TO web;
7096
7097 --
7098--- Name: team; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
7099+-- Name: TABLE client; Type: COMMENT; Schema: rapier; Owner: web
7100 --
7101
7102-CREATE TABLE team (
7103- teamid integer DEFAULT nextval(('"team_teamid_seq"'::text)::regclass) NOT NULL,
7104- team_name character varying(255) NOT NULL,
7105- descr character varying(255),
7106- local_group character varying(255),
7107- local_alias character varying(255),
7108- ordering smallint,
7109- status character(1) DEFAULT 'c'::bpchar NOT NULL
7110-);
7111+COMMENT ON TABLE client IS 'Registry of clients allowed to use Rapier.';
7112+
7113+
7114+--
7115+-- Name: COLUMN client.clientid; Type: COMMENT; Schema: rapier; Owner: web
7116+--
7117
7118+COMMENT ON COLUMN client.clientid IS 'The numeric ID of the client.';
7119
7120-ALTER TABLE public.team OWNER TO myradio;
7121
7122 --
7123--- Name: team_teamid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
7124+-- Name: COLUMN client.name; Type: COMMENT; Schema: rapier; Owner: web
7125 --
7126
7127-CREATE SEQUENCE team_teamid_seq
7128+COMMENT ON COLUMN client.name IS 'The log-in name of the client.';
7129+
7130+
7131+--
7132+-- Name: COLUMN client.secrethash; Type: COMMENT; Schema: rapier; Owner: web
7133+--
7134+
7135+COMMENT ON COLUMN client.secrethash IS 'A hash of the log-in password of the client.';
7136+
7137+
7138+--
7139+-- Name: COLUMN client.description; Type: COMMENT; Schema: rapier; Owner: web
7140+--
7141+
7142+COMMENT ON COLUMN client.description IS 'A human-readable description of the client.';
7143+
7144+
7145+--
7146+-- Name: client_clientid_seq; Type: SEQUENCE; Schema: rapier; Owner: web
7147+--
7148+
7149+CREATE SEQUENCE client_clientid_seq
7150 START WITH 1
7151 INCREMENT BY 1
7152 NO MINVALUE
7153- MAXVALUE 2147483647
7154+ NO MAXVALUE
7155 CACHE 1;
7156
7157
7158-ALTER TABLE public.team_teamid_seq OWNER TO myradio;
7159+ALTER TABLE client_clientid_seq OWNER TO web;
7160+
7161+--
7162+-- Name: client_clientid_seq; Type: SEQUENCE OWNED BY; Schema: rapier; Owner: web
7163+--
7164+
7165+ALTER SEQUENCE client_clientid_seq OWNED BY client.clientid;
7166
7167-SET default_with_oids = false;
7168
7169 --
7170--- Name: terms; Type: TABLE; Schema: public; Owner: myradio; Tablespace:
7171+-- Name: constants_acl_scope; Type: TABLE; Schema: rapier; Owner: web
7172 --
7173
7174-CREATE TABLE terms (
7175- start timestamp with time zone NOT NULL,
7176- descr character varying(10) NOT NULL,
7177- finish timestamp with time zone NOT NULL,
7178- termid integer NOT NULL
7179+CREATE TABLE constants_acl_scope (
7180+ scopeid integer NOT NULL,
7181+ description text NOT NULL
7182 );
7183
7184
7185-ALTER TABLE public.terms OWNER TO myradio;
7186+ALTER TABLE constants_acl_scope OWNER TO web;
7187
7188 --
7189--- Name: TABLE terms; Type: COMMENT; Schema: public; Owner: myradio
7190+-- Name: TABLE constants_acl_scope; Type: COMMENT; Schema: rapier; Owner: web
7191 --
7192
7193-COMMENT ON TABLE terms IS 'URY university term database. Must be updated regularly. Starts and finishes should be midnight UTC on the Monday of Weeks 1 and 11 respectively, NOT MIDNIGHT LOCAL TIME.';
7194+COMMENT ON TABLE constants_acl_scope IS 'Human-readable descriptions for the ACL scope levels.';
7195
7196
7197 --
7198--- Name: COLUMN terms.start; Type: COMMENT; Schema: public; Owner: myradio
7199+-- Name: COLUMN constants_acl_scope.scopeid; Type: COMMENT; Schema: rapier; Owner: web
7200 --
7201
7202-COMMENT ON COLUMN terms.start IS 'Midnight UTC, Monday Week 1';
7203+COMMENT ON COLUMN constants_acl_scope.scopeid IS 'The unique ID of this scope level.';
7204
7205
7206 --
7207--- Name: COLUMN terms.finish; Type: COMMENT; Schema: public; Owner: myradio
7208+-- Name: COLUMN constants_acl_scope.description; Type: COMMENT; Schema: rapier; Owner: web
7209 --
7210
7211-COMMENT ON COLUMN terms.finish IS 'Midnight UTC, Monday Week 11';
7212+COMMENT ON COLUMN constants_acl_scope.description IS 'The human-readable description of this scope level.';
7213
7214
7215 --
7216--- Name: terms_termid_seq; Type: SEQUENCE; Schema: public; Owner: myradio
7217+-- Name: constants_acl_scope_scopeid_seq; Type: SEQUENCE; Schema: rapier; Owner: web
7218 --
7219
7220-CREATE SEQUENCE terms_termid_seq
7221- START WITH 1
7222+CREATE SEQUENCE constants_acl_scope_scopeid_seq
7223+ START WITH 3
7224 INCREMENT BY 1
7225 NO MINVALUE
7226 NO MAXVALUE
7227 CACHE 1;
7228
7229
7230-ALTER TABLE public.terms_termid_seq OWNER TO myradio;
7231+ALTER TABLE constants_acl_scope_scopeid_seq OWNER TO web;
7232
7233 --
7234--- Name: terms_termid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: myradio
7235+-- Name: constants_acl_scope_scopeid_seq; Type: SEQUENCE OWNED BY; Schema: rapier; Owner: web
7236 --
7237
7238-ALTER SEQUENCE terms_termid_seq OWNED BY terms.termid;
7239+ALTER SEQUENCE constants_acl_scope_scopeid_seq OWNED BY constants_acl_scope.scopeid;
7240
7241
7242 SET search_path = schedule, pg_catalog;
7243
7244 --
7245--- Name: block; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7246+-- Name: block; Type: TABLE; Schema: schedule; Owner: web
7247 --
7248
7249 CREATE TABLE block (
7250@@ -5687,59 +6799,59 @@
7251 );
7252
7253
7254-ALTER TABLE schedule.block OWNER TO myradio;
7255+ALTER TABLE block OWNER TO web;
7256
7257 --
7258--- Name: TABLE block; Type: COMMENT; Schema: schedule; Owner: myradio
7259+-- Name: TABLE block; Type: COMMENT; Schema: schedule; Owner: web
7260 --
7261
7262 COMMENT ON TABLE block IS 'Schedule blocks, which divide up a schedule (via matching rules covered by other tables) into groups of shows.';
7263
7264
7265 --
7266--- Name: COLUMN block.block_id; Type: COMMENT; Schema: schedule; Owner: myradio
7267+-- Name: COLUMN block.block_id; Type: COMMENT; Schema: schedule; Owner: web
7268 --
7269
7270 COMMENT ON COLUMN block.block_id IS 'The unique identifier of this schedule block.';
7271
7272
7273 --
7274--- Name: COLUMN block.name; Type: COMMENT; Schema: schedule; Owner: myradio
7275+-- Name: COLUMN block.name; Type: COMMENT; Schema: schedule; Owner: web
7276 --
7277
7278 COMMENT ON COLUMN block.name IS 'The human-readable and publicly displayed name of this block.';
7279
7280
7281 --
7282--- Name: COLUMN block.tag; Type: COMMENT; Schema: schedule; Owner: myradio
7283+-- Name: COLUMN block.tag; Type: COMMENT; Schema: schedule; Owner: web
7284 --
7285
7286 COMMENT ON COLUMN block.tag IS 'The machine-readable string identifier used, for example, as the prefix of the CSS classes used to colour this block.';
7287
7288
7289 --
7290--- Name: COLUMN block.priority; Type: COMMENT; Schema: schedule; Owner: myradio
7291+-- Name: COLUMN block.priority; Type: COMMENT; Schema: schedule; Owner: web
7292 --
7293
7294 COMMENT ON COLUMN block.priority IS 'The priority of this block when deciding which block shows fall into. A lower number indicates a higher priority.';
7295
7296
7297 --
7298--- Name: COLUMN block.is_listable; Type: COMMENT; Schema: schedule; Owner: myradio
7299+-- Name: COLUMN block.is_listable; Type: COMMENT; Schema: schedule; Owner: web
7300 --
7301
7302 COMMENT ON COLUMN block.is_listable IS 'If true, the block appears in lists of blocks, allowing people to find shows in that block.';
7303
7304
7305 --
7306--- Name: COLUMN block.description; Type: COMMENT; Schema: schedule; Owner: myradio
7307+-- Name: COLUMN block.description; Type: COMMENT; Schema: schedule; Owner: web
7308 --
7309
7310 COMMENT ON COLUMN block.description IS 'A human-readable description of the block.';
7311
7312
7313 --
7314--- Name: block_description_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7315+-- Name: block_description_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7316 --
7317
7318 CREATE SEQUENCE block_description_seq
7319@@ -5750,17 +6862,17 @@
7320 CACHE 1;
7321
7322
7323-ALTER TABLE schedule.block_description_seq OWNER TO myradio;
7324+ALTER TABLE block_description_seq OWNER TO web;
7325
7326 --
7327--- Name: block_description_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7328+-- Name: block_description_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7329 --
7330
7331 ALTER SEQUENCE block_description_seq OWNED BY block.description;
7332
7333
7334 --
7335--- Name: block_range_rule; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7336+-- Name: block_range_rule; Type: TABLE; Schema: schedule; Owner: web
7337 --
7338
7339 CREATE TABLE block_range_rule (
7340@@ -5771,46 +6883,47 @@
7341 );
7342
7343
7344-ALTER TABLE schedule.block_range_rule OWNER TO myradio;
7345+ALTER TABLE block_range_rule OWNER TO web;
7346
7347 --
7348--- Name: TABLE block_range_rule; Type: COMMENT; Schema: schedule; Owner: myradio
7349+-- Name: TABLE block_range_rule; Type: COMMENT; Schema: schedule; Owner: web
7350 --
7351
7352 COMMENT ON TABLE block_range_rule IS 'Block rules that associate timeslots falling into given ranges with corresponding blocks.
7353+
7354 This is the lowest priority rule type.';
7355
7356
7357 --
7358--- Name: COLUMN block_range_rule.block_range_rule_id; Type: COMMENT; Schema: schedule; Owner: myradio
7359+-- Name: COLUMN block_range_rule.block_range_rule_id; Type: COMMENT; Schema: schedule; Owner: web
7360 --
7361
7362 COMMENT ON COLUMN block_range_rule.block_range_rule_id IS 'The unique identifier of this block rule.';
7363
7364
7365 --
7366--- Name: COLUMN block_range_rule.block_id; Type: COMMENT; Schema: schedule; Owner: myradio
7367+-- Name: COLUMN block_range_rule.block_id; Type: COMMENT; Schema: schedule; Owner: web
7368 --
7369
7370 COMMENT ON COLUMN block_range_rule.block_id IS 'The identifier of the block this rule matches.';
7371
7372
7373 --
7374--- Name: COLUMN block_range_rule.start_time; Type: COMMENT; Schema: schedule; Owner: myradio
7375+-- Name: COLUMN block_range_rule.start_time; Type: COMMENT; Schema: schedule; Owner: web
7376 --
7377
7378 COMMENT ON COLUMN block_range_rule.start_time IS 'The start of the range, as an offset from midnight on the day concerned.';
7379
7380
7381 --
7382--- Name: COLUMN block_range_rule.end_time; Type: COMMENT; Schema: schedule; Owner: myradio
7383+-- Name: COLUMN block_range_rule.end_time; Type: COMMENT; Schema: schedule; Owner: web
7384 --
7385
7386 COMMENT ON COLUMN block_range_rule.end_time IS 'The end of this range, as an offset from midnight on the day concerned.';
7387
7388
7389 --
7390--- Name: block_range_rule_block_range_rule_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7391+-- Name: block_range_rule_block_range_rule_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7392 --
7393
7394 CREATE SEQUENCE block_range_rule_block_range_rule_id_seq
7395@@ -5821,17 +6934,17 @@
7396 CACHE 1;
7397
7398
7399-ALTER TABLE schedule.block_range_rule_block_range_rule_id_seq OWNER TO myradio;
7400+ALTER TABLE block_range_rule_block_range_rule_id_seq OWNER TO web;
7401
7402 --
7403--- Name: block_range_rule_block_range_rule_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7404+-- Name: block_range_rule_block_range_rule_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7405 --
7406
7407 ALTER SEQUENCE block_range_rule_block_range_rule_id_seq OWNED BY block_range_rule.block_range_rule_id;
7408
7409
7410 --
7411--- Name: block_show_rules_block_show_rule_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7412+-- Name: block_show_rules_block_show_rule_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7413 --
7414
7415 CREATE SEQUENCE block_show_rules_block_show_rule_id_seq
7416@@ -5842,10 +6955,10 @@
7417 CACHE 1;
7418
7419
7420-ALTER TABLE schedule.block_show_rules_block_show_rule_id_seq OWNER TO myradio;
7421+ALTER TABLE block_show_rules_block_show_rule_id_seq OWNER TO web;
7422
7423 --
7424--- Name: block_show_rule; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7425+-- Name: block_show_rule; Type: TABLE; Schema: schedule; Owner: web
7426 --
7427
7428 CREATE TABLE block_show_rule (
7429@@ -5855,39 +6968,40 @@
7430 );
7431
7432
7433-ALTER TABLE schedule.block_show_rule OWNER TO myradio;
7434+ALTER TABLE block_show_rule OWNER TO web;
7435
7436 --
7437--- Name: TABLE block_show_rule; Type: COMMENT; Schema: schedule; Owner: myradio
7438+-- Name: TABLE block_show_rule; Type: COMMENT; Schema: schedule; Owner: web
7439 --
7440
7441 COMMENT ON TABLE block_show_rule IS 'A block show rule matches all timeslots of a given show to a given block.
7442+
7443 This rule scheme takes precedence over any other scheme except direct timeslot assignment.';
7444
7445
7446 --
7447--- Name: COLUMN block_show_rule.block_show_rule_id; Type: COMMENT; Schema: schedule; Owner: myradio
7448+-- Name: COLUMN block_show_rule.block_show_rule_id; Type: COMMENT; Schema: schedule; Owner: web
7449 --
7450
7451 COMMENT ON COLUMN block_show_rule.block_show_rule_id IS 'The unique ID of the matching rule.';
7452
7453
7454 --
7455--- Name: COLUMN block_show_rule.block_id; Type: COMMENT; Schema: schedule; Owner: myradio
7456+-- Name: COLUMN block_show_rule.block_id; Type: COMMENT; Schema: schedule; Owner: web
7457 --
7458
7459 COMMENT ON COLUMN block_show_rule.block_id IS 'The ID of the block this rule assigns a show to.';
7460
7461
7462 --
7463--- Name: COLUMN block_show_rule.show_id; Type: COMMENT; Schema: schedule; Owner: myradio
7464+-- Name: COLUMN block_show_rule.show_id; Type: COMMENT; Schema: schedule; Owner: web
7465 --
7466
7467 COMMENT ON COLUMN block_show_rule.show_id IS 'The ID of the show this rule assigns to a block.';
7468
7469
7470 --
7471--- Name: blocks_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7472+-- Name: blocks_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7473 --
7474
7475 CREATE SEQUENCE blocks_id_seq
7476@@ -5898,17 +7012,17 @@
7477 CACHE 1;
7478
7479
7480-ALTER TABLE schedule.blocks_id_seq OWNER TO myradio;
7481+ALTER TABLE blocks_id_seq OWNER TO web;
7482
7483 --
7484--- Name: blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7485+-- Name: blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7486 --
7487
7488 ALTER SEQUENCE blocks_id_seq OWNED BY block.block_id;
7489
7490
7491 --
7492--- Name: genre; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7493+-- Name: genre; Type: TABLE; Schema: schedule; Owner: web
7494 --
7495
7496 CREATE TABLE genre (
7497@@ -5917,10 +7031,10 @@
7498 );
7499
7500
7501-ALTER TABLE schedule.genre OWNER TO myradio;
7502+ALTER TABLE genre OWNER TO web;
7503
7504 --
7505--- Name: genre_genre_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7506+-- Name: genre_genre_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7507 --
7508
7509 CREATE SEQUENCE genre_genre_id_seq
7510@@ -5931,17 +7045,17 @@
7511 CACHE 1;
7512
7513
7514-ALTER TABLE schedule.genre_genre_id_seq OWNER TO myradio;
7515+ALTER TABLE genre_genre_id_seq OWNER TO web;
7516
7517 --
7518--- Name: genre_genre_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7519+-- Name: genre_genre_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7520 --
7521
7522 ALTER SEQUENCE genre_genre_id_seq OWNED BY genre.genre_id;
7523
7524
7525 --
7526--- Name: location; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7527+-- Name: location; Type: TABLE; Schema: schedule; Owner: web
7528 --
7529
7530 CREATE TABLE location (
7531@@ -5950,24 +7064,24 @@
7532 );
7533
7534
7535-ALTER TABLE schedule.location OWNER TO myradio;
7536+ALTER TABLE location OWNER TO web;
7537
7538 --
7539--- Name: TABLE location; Type: COMMENT; Schema: schedule; Owner: myradio
7540+-- Name: TABLE location; Type: COMMENT; Schema: schedule; Owner: web
7541 --
7542
7543 COMMENT ON TABLE location IS 'Locations include Studio 1, Studio 2, Outside Broadcast, Production Orifice';
7544
7545
7546 --
7547--- Name: COLUMN location.location_name; Type: COMMENT; Schema: schedule; Owner: myradio
7548+-- Name: COLUMN location.location_name; Type: COMMENT; Schema: schedule; Owner: web
7549 --
7550
7551 COMMENT ON COLUMN location.location_name IS 'The textual name of the location';
7552
7553
7554 --
7555--- Name: location_location_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7556+-- Name: location_location_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7557 --
7558
7559 CREATE SEQUENCE location_location_id_seq
7560@@ -5978,17 +7092,17 @@
7561 CACHE 1;
7562
7563
7564-ALTER TABLE schedule.location_location_id_seq OWNER TO myradio;
7565+ALTER TABLE location_location_id_seq OWNER TO web;
7566
7567 --
7568--- Name: location_location_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7569+-- Name: location_location_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7570 --
7571
7572 ALTER SEQUENCE location_location_id_seq OWNED BY location.location_id;
7573
7574
7575 --
7576--- Name: season_metadata_season_metadata_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7577+-- Name: season_metadata_season_metadata_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7578 --
7579
7580 CREATE SEQUENCE season_metadata_season_metadata_id_seq
7581@@ -5999,10 +7113,10 @@
7582 CACHE 1;
7583
7584
7585-ALTER TABLE schedule.season_metadata_season_metadata_id_seq OWNER TO myradio;
7586+ALTER TABLE season_metadata_season_metadata_id_seq OWNER TO web;
7587
7588 --
7589--- Name: season_metadata; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7590+-- Name: season_metadata; Type: TABLE; Schema: schedule; Owner: web
7591 --
7592
7593 CREATE TABLE season_metadata (
7594@@ -6017,66 +7131,66 @@
7595 );
7596
7597
7598-ALTER TABLE schedule.season_metadata OWNER TO myradio;
7599+ALTER TABLE season_metadata OWNER TO web;
7600
7601 --
7602--- Name: COLUMN season_metadata.season_metadata_id; Type: COMMENT; Schema: schedule; Owner: myradio
7603+-- Name: COLUMN season_metadata.season_metadata_id; Type: COMMENT; Schema: schedule; Owner: web
7604 --
7605
7606 COMMENT ON COLUMN season_metadata.season_metadata_id IS 'A unique identifier for each text item entry';
7607
7608
7609 --
7610--- Name: COLUMN season_metadata.metadata_key_id; Type: COMMENT; Schema: schedule; Owner: myradio
7611+-- Name: COLUMN season_metadata.metadata_key_id; Type: COMMENT; Schema: schedule; Owner: web
7612 --
7613
7614 COMMENT ON COLUMN season_metadata.metadata_key_id IS 'The ID of the type of metadata stored in this table';
7615
7616
7617 --
7618--- Name: COLUMN season_metadata.show_season_id; Type: COMMENT; Schema: schedule; Owner: myradio
7619+-- Name: COLUMN season_metadata.show_season_id; Type: COMMENT; Schema: schedule; Owner: web
7620 --
7621
7622 COMMENT ON COLUMN season_metadata.show_season_id IS 'The ID of the season the metadata applies to';
7623
7624
7625 --
7626--- Name: COLUMN season_metadata.metadata_value; Type: COMMENT; Schema: schedule; Owner: myradio
7627+-- Name: COLUMN season_metadata.metadata_value; Type: COMMENT; Schema: schedule; Owner: web
7628 --
7629
7630 COMMENT ON COLUMN season_metadata.metadata_value IS 'The value of the metadata';
7631
7632
7633 --
7634--- Name: COLUMN season_metadata.effective_from; Type: COMMENT; Schema: schedule; Owner: myradio
7635+-- Name: COLUMN season_metadata.effective_from; Type: COMMENT; Schema: schedule; Owner: web
7636 --
7637
7638 COMMENT ON COLUMN season_metadata.effective_from IS 'The timestamp from which this version of the season metadata became active. A value of NULL means it is not yet active (e.g. pending review)';
7639
7640
7641 --
7642--- Name: COLUMN season_metadata.memberid; Type: COMMENT; Schema: schedule; Owner: myradio
7643+-- Name: COLUMN season_metadata.memberid; Type: COMMENT; Schema: schedule; Owner: web
7644 --
7645
7646 COMMENT ON COLUMN season_metadata.memberid IS 'The ID of the member who submitted the updated version of the season metadata';
7647
7648
7649 --
7650--- Name: COLUMN season_metadata.approvedid; Type: COMMENT; Schema: schedule; Owner: myradio
7651+-- Name: COLUMN season_metadata.approvedid; Type: COMMENT; Schema: schedule; Owner: web
7652 --
7653
7654 COMMENT ON COLUMN season_metadata.approvedid IS 'The ID of the member who approved the updated version of the season metadata. A value of NULL may mean it is either not approved (See effective_from) or that this metadata type does not need review';
7655
7656
7657 --
7658--- Name: COLUMN season_metadata.effective_to; Type: COMMENT; Schema: schedule; Owner: myradio
7659+-- Name: COLUMN season_metadata.effective_to; Type: COMMENT; Schema: schedule; Owner: web
7660 --
7661
7662 COMMENT ON COLUMN season_metadata.effective_to IS 'The timestamp of the period at which this metadatum stops being effective. If NULL, the metadatum is effective indefinitely from effective_from.';
7663
7664
7665 --
7666--- Name: show_credit; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7667+-- Name: show_credit; Type: TABLE; Schema: schedule; Owner: web
7668 --
7669
7670 CREATE TABLE show_credit (
7671@@ -6091,17 +7205,17 @@
7672 );
7673
7674
7675-ALTER TABLE schedule.show_credit OWNER TO myradio;
7676+ALTER TABLE show_credit OWNER TO web;
7677
7678 --
7679--- Name: TABLE show_credit; Type: COMMENT; Schema: schedule; Owner: myradio
7680+-- Name: TABLE show_credit; Type: COMMENT; Schema: schedule; Owner: web
7681 --
7682
7683 COMMENT ON TABLE show_credit IS 'Associates members to shows';
7684
7685
7686 --
7687--- Name: show_credit_show_credit_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7688+-- Name: show_credit_show_credit_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7689 --
7690
7691 CREATE SEQUENCE show_credit_show_credit_id_seq
7692@@ -6112,17 +7226,17 @@
7693 CACHE 1;
7694
7695
7696-ALTER TABLE schedule.show_credit_show_credit_id_seq OWNER TO myradio;
7697+ALTER TABLE show_credit_show_credit_id_seq OWNER TO web;
7698
7699 --
7700--- Name: show_credit_show_credit_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7701+-- Name: show_credit_show_credit_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7702 --
7703
7704 ALTER SEQUENCE show_credit_show_credit_id_seq OWNED BY show_credit.show_credit_id;
7705
7706
7707 --
7708--- Name: show_genre; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7709+-- Name: show_genre; Type: TABLE; Schema: schedule; Owner: web
7710 --
7711
7712 CREATE TABLE show_genre (
7713@@ -6136,10 +7250,10 @@
7714 );
7715
7716
7717-ALTER TABLE schedule.show_genre OWNER TO myradio;
7718+ALTER TABLE show_genre OWNER TO web;
7719
7720 --
7721--- Name: show_genre_show_genre_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7722+-- Name: show_genre_show_genre_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7723 --
7724
7725 CREATE SEQUENCE show_genre_show_genre_id_seq
7726@@ -6150,17 +7264,17 @@
7727 CACHE 1;
7728
7729
7730-ALTER TABLE schedule.show_genre_show_genre_id_seq OWNER TO myradio;
7731+ALTER TABLE show_genre_show_genre_id_seq OWNER TO web;
7732
7733 --
7734--- Name: show_genre_show_genre_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7735+-- Name: show_genre_show_genre_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7736 --
7737
7738 ALTER SEQUENCE show_genre_show_genre_id_seq OWNED BY show_genre.show_genre_id;
7739
7740
7741 --
7742--- Name: show_image_metadata; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7743+-- Name: show_image_metadata; Type: TABLE; Schema: schedule; Owner: django
7744 --
7745
7746 CREATE TABLE show_image_metadata (
7747@@ -6175,10 +7289,10 @@
7748 );
7749
7750
7751-ALTER TABLE schedule.show_image_metadata OWNER TO myradio;
7752+ALTER TABLE show_image_metadata OWNER TO django;
7753
7754 --
7755--- Name: show_image_metadata_show_image_metadata_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7756+-- Name: show_image_metadata_show_image_metadata_id_seq; Type: SEQUENCE; Schema: schedule; Owner: django
7757 --
7758
7759 CREATE SEQUENCE show_image_metadata_show_image_metadata_id_seq
7760@@ -6189,17 +7303,17 @@
7761 CACHE 1;
7762
7763
7764-ALTER TABLE schedule.show_image_metadata_show_image_metadata_id_seq OWNER TO myradio;
7765+ALTER TABLE show_image_metadata_show_image_metadata_id_seq OWNER TO django;
7766
7767 --
7768--- Name: show_image_metadata_show_image_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7769+-- Name: show_image_metadata_show_image_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: django
7770 --
7771
7772 ALTER SEQUENCE show_image_metadata_show_image_metadata_id_seq OWNED BY show_image_metadata.show_image_metadata_id;
7773
7774
7775 --
7776--- Name: show_location; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7777+-- Name: show_location; Type: TABLE; Schema: schedule; Owner: web
7778 --
7779
7780 CREATE TABLE show_location (
7781@@ -6213,10 +7327,10 @@
7782 );
7783
7784
7785-ALTER TABLE schedule.show_location OWNER TO myradio;
7786+ALTER TABLE show_location OWNER TO web;
7787
7788 --
7789--- Name: show_location_show_location_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7790+-- Name: show_location_show_location_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7791 --
7792
7793 CREATE SEQUENCE show_location_show_location_id_seq
7794@@ -6227,17 +7341,17 @@
7795 CACHE 1;
7796
7797
7798-ALTER TABLE schedule.show_location_show_location_id_seq OWNER TO myradio;
7799+ALTER TABLE show_location_show_location_id_seq OWNER TO web;
7800
7801 --
7802--- Name: show_location_show_location_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7803+-- Name: show_location_show_location_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7804 --
7805
7806 ALTER SEQUENCE show_location_show_location_id_seq OWNED BY show_location.show_location_id;
7807
7808
7809 --
7810--- Name: show_metadata_show_metadata_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7811+-- Name: show_metadata_show_metadata_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7812 --
7813
7814 CREATE SEQUENCE show_metadata_show_metadata_id_seq
7815@@ -6248,17 +7362,17 @@
7816 CACHE 1;
7817
7818
7819-ALTER TABLE schedule.show_metadata_show_metadata_id_seq OWNER TO myradio;
7820+ALTER TABLE show_metadata_show_metadata_id_seq OWNER TO web;
7821
7822 --
7823--- Name: show_metadata_show_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7824+-- Name: show_metadata_show_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7825 --
7826
7827 ALTER SEQUENCE show_metadata_show_metadata_id_seq OWNED BY show_metadata.show_metadata_id;
7828
7829
7830 --
7831--- Name: show_podcast_link; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7832+-- Name: show_podcast_link; Type: TABLE; Schema: schedule; Owner: django
7833 --
7834
7835 CREATE TABLE show_podcast_link (
7836@@ -6267,10 +7381,10 @@
7837 );
7838
7839
7840-ALTER TABLE schedule.show_podcast_link OWNER TO myradio;
7841+ALTER TABLE show_podcast_link OWNER TO django;
7842
7843 --
7844--- Name: show_season_requested_time; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7845+-- Name: show_season_requested_time; Type: TABLE; Schema: schedule; Owner: web
7846 --
7847
7848 CREATE TABLE show_season_requested_time (
7849@@ -6283,45 +7397,45 @@
7850 );
7851
7852
7853-ALTER TABLE schedule.show_season_requested_time OWNER TO myradio;
7854+ALTER TABLE show_season_requested_time OWNER TO web;
7855
7856 --
7857--- Name: TABLE show_season_requested_time; Type: COMMENT; Schema: schedule; Owner: myradio
7858+-- Name: TABLE show_season_requested_time; Type: COMMENT; Schema: schedule; Owner: web
7859 --
7860
7861 COMMENT ON TABLE show_season_requested_time IS 'Stores a list of times requested for a season with their preference. When a season is applied for, users are expected to make at least three preferences';
7862
7863
7864 --
7865--- Name: COLUMN show_season_requested_time.show_season_requested_time_id; Type: COMMENT; Schema: schedule; Owner: myradio
7866+-- Name: COLUMN show_season_requested_time.show_season_requested_time_id; Type: COMMENT; Schema: schedule; Owner: web
7867 --
7868
7869 COMMENT ON COLUMN show_season_requested_time.show_season_requested_time_id IS 'A unique identifier for each show season requested time';
7870
7871
7872 --
7873--- Name: COLUMN show_season_requested_time.requested_day; Type: COMMENT; Schema: schedule; Owner: myradio
7874+-- Name: COLUMN show_season_requested_time.requested_day; Type: COMMENT; Schema: schedule; Owner: web
7875 --
7876
7877 COMMENT ON COLUMN show_season_requested_time.requested_day IS 'The day that the show starts on.';
7878
7879
7880 --
7881--- Name: COLUMN show_season_requested_time.start_time; Type: COMMENT; Schema: schedule; Owner: myradio
7882+-- Name: COLUMN show_season_requested_time.start_time; Type: COMMENT; Schema: schedule; Owner: web
7883 --
7884
7885 COMMENT ON COLUMN show_season_requested_time.start_time IS 'The requested time for the show to start. Stored as seconds since midnight.';
7886
7887
7888 --
7889--- Name: COLUMN show_season_requested_time.preference; Type: COMMENT; Schema: schedule; Owner: myradio
7890+-- Name: COLUMN show_season_requested_time.preference; Type: COMMENT; Schema: schedule; Owner: web
7891 --
7892
7893 COMMENT ON COLUMN show_season_requested_time.preference IS 'A lower preference number means it is more preferred.';
7894
7895
7896 --
7897--- Name: show_season_requested_time_show_season_requested_time_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7898+-- Name: show_season_requested_time_show_season_requested_time_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7899 --
7900
7901 CREATE SEQUENCE show_season_requested_time_show_season_requested_time_id_seq
7902@@ -6332,17 +7446,17 @@
7903 CACHE 1;
7904
7905
7906-ALTER TABLE schedule.show_season_requested_time_show_season_requested_time_id_seq OWNER TO myradio;
7907+ALTER TABLE show_season_requested_time_show_season_requested_time_id_seq OWNER TO web;
7908
7909 --
7910--- Name: show_season_requested_time_show_season_requested_time_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7911+-- Name: show_season_requested_time_show_season_requested_time_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7912 --
7913
7914 ALTER SEQUENCE show_season_requested_time_show_season_requested_time_id_seq OWNED BY show_season_requested_time.show_season_requested_time_id;
7915
7916
7917 --
7918--- Name: show_season_requested_week; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
7919+-- Name: show_season_requested_week; Type: TABLE; Schema: schedule; Owner: web
7920 --
7921
7922 CREATE TABLE show_season_requested_week (
7923@@ -6352,17 +7466,17 @@
7924 );
7925
7926
7927-ALTER TABLE schedule.show_season_requested_week OWNER TO myradio;
7928+ALTER TABLE show_season_requested_week OWNER TO web;
7929
7930 --
7931--- Name: TABLE show_season_requested_week; Type: COMMENT; Schema: schedule; Owner: myradio
7932+-- Name: TABLE show_season_requested_week; Type: COMMENT; Schema: schedule; Owner: web
7933 --
7934
7935 COMMENT ON TABLE show_season_requested_week IS 'Stores a list of weeks for which a season wishes to be scheduled. Uses values 1-10 for weeks within a standard term.';
7936
7937
7938 --
7939--- Name: show_season_requested_week_show_season_requested_week_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7940+-- Name: show_season_requested_week_show_season_requested_week_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7941 --
7942
7943 CREATE SEQUENCE show_season_requested_week_show_season_requested_week_id_seq
7944@@ -6373,17 +7487,17 @@
7945 CACHE 1;
7946
7947
7948-ALTER TABLE schedule.show_season_requested_week_show_season_requested_week_id_seq OWNER TO myradio;
7949+ALTER TABLE show_season_requested_week_show_season_requested_week_id_seq OWNER TO web;
7950
7951 --
7952--- Name: show_season_requested_week_show_season_requested_week_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7953+-- Name: show_season_requested_week_show_season_requested_week_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7954 --
7955
7956 ALTER SEQUENCE show_season_requested_week_show_season_requested_week_id_seq OWNED BY show_season_requested_week.show_season_requested_week_id;
7957
7958
7959 --
7960--- Name: show_season_show_season_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
7961+-- Name: show_season_show_season_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
7962 --
7963
7964 CREATE SEQUENCE show_season_show_season_id_seq
7965@@ -6394,17 +7508,17 @@
7966 CACHE 1;
7967
7968
7969-ALTER TABLE schedule.show_season_show_season_id_seq OWNER TO myradio;
7970+ALTER TABLE show_season_show_season_id_seq OWNER TO web;
7971
7972 --
7973--- Name: show_season_show_season_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
7974+-- Name: show_season_show_season_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
7975 --
7976
7977 ALTER SEQUENCE show_season_show_season_id_seq OWNED BY show_season.show_season_id;
7978
7979
7980 --
7981--- Name: show_season_text_metadata; Type: VIEW; Schema: schedule; Owner: myradio
7982+-- Name: show_season_text_metadata; Type: VIEW; Schema: schedule; Owner: web
7983 --
7984
7985 CREATE VIEW show_season_text_metadata AS
7986@@ -6419,10 +7533,10 @@
7987 FROM season_metadata;
7988
7989
7990-ALTER TABLE schedule.show_season_text_metadata OWNER TO myradio;
7991+ALTER TABLE show_season_text_metadata OWNER TO web;
7992
7993 --
7994--- Name: show_season_timeslot_credit; Type: VIEW; Schema: schedule; Owner: myradio
7995+-- Name: show_season_timeslot_credit; Type: VIEW; Schema: schedule; Owner: web
7996 --
7997
7998 CREATE VIEW show_season_timeslot_credit AS
7999@@ -6439,18 +7553,19 @@
8000 JOIN show_season_timeslot USING (memberid, approvedid, show_season_id));
8001
8002
8003-ALTER TABLE schedule.show_season_timeslot_credit OWNER TO myradio;
8004+ALTER TABLE show_season_timeslot_credit OWNER TO web;
8005
8006 --
8007--- Name: VIEW show_season_timeslot_credit; Type: COMMENT; Schema: schedule; Owner: myradio
8008+-- Name: VIEW show_season_timeslot_credit; Type: COMMENT; Schema: schedule; Owner: web
8009 --
8010
8011 COMMENT ON VIEW show_season_timeslot_credit IS 'Removed:
8012+
8013 WHERE show_credit.effective_from IS NOT NULL AND show_credit.effective_from <= show_season_timeslot.start_time AND (show_credit.effective_to IS NULL OR show_credit.effective_to >= (show_season_timeslot.start_time + show_season_timeslot.duration));';
8014
8015
8016 --
8017--- Name: show_season_timeslot_show_season_timeslot_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
8018+-- Name: show_season_timeslot_show_season_timeslot_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
8019 --
8020
8021 CREATE SEQUENCE show_season_timeslot_show_season_timeslot_id_seq
8022@@ -6461,17 +7576,17 @@
8023 CACHE 1;
8024
8025
8026-ALTER TABLE schedule.show_season_timeslot_show_season_timeslot_id_seq OWNER TO myradio;
8027+ALTER TABLE show_season_timeslot_show_season_timeslot_id_seq OWNER TO web;
8028
8029 --
8030--- Name: show_season_timeslot_show_season_timeslot_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
8031+-- Name: show_season_timeslot_show_season_timeslot_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
8032 --
8033
8034 ALTER SEQUENCE show_season_timeslot_show_season_timeslot_id_seq OWNED BY show_season_timeslot.show_season_timeslot_id;
8035
8036
8037 --
8038--- Name: timeslot_metadata; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
8039+-- Name: timeslot_metadata; Type: TABLE; Schema: schedule; Owner: web
8040 --
8041
8042 CREATE TABLE timeslot_metadata (
8043@@ -6486,17 +7601,17 @@
8044 );
8045
8046
8047-ALTER TABLE schedule.timeslot_metadata OWNER TO myradio;
8048+ALTER TABLE timeslot_metadata OWNER TO web;
8049
8050 --
8051--- Name: COLUMN timeslot_metadata.timeslot_metadata_id; Type: COMMENT; Schema: schedule; Owner: myradio
8052+-- Name: COLUMN timeslot_metadata.timeslot_metadata_id; Type: COMMENT; Schema: schedule; Owner: web
8053 --
8054
8055 COMMENT ON COLUMN timeslot_metadata.timeslot_metadata_id IS 'The unique numeric ID of this metadatum.';
8056
8057
8058 --
8059--- Name: show_season_timeslot_text_metadata; Type: VIEW; Schema: schedule; Owner: myradio
8060+-- Name: show_season_timeslot_text_metadata; Type: VIEW; Schema: schedule; Owner: web
8061 --
8062
8063 CREATE VIEW show_season_timeslot_text_metadata AS
8064@@ -6511,10 +7626,10 @@
8065 FROM timeslot_metadata;
8066
8067
8068-ALTER TABLE schedule.show_season_timeslot_text_metadata OWNER TO myradio;
8069+ALTER TABLE show_season_timeslot_text_metadata OWNER TO web;
8070
8071 --
8072--- Name: show_show_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
8073+-- Name: show_show_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
8074 --
8075
8076 CREATE SEQUENCE show_show_id_seq
8077@@ -6525,17 +7640,17 @@
8078 CACHE 1;
8079
8080
8081-ALTER TABLE schedule.show_show_id_seq OWNER TO myradio;
8082+ALTER TABLE show_show_id_seq OWNER TO web;
8083
8084 --
8085--- Name: show_show_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
8086+-- Name: show_show_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
8087 --
8088
8089 ALTER SEQUENCE show_show_id_seq OWNED BY show.show_id;
8090
8091
8092 --
8093--- Name: show_text_metadata; Type: VIEW; Schema: schedule; Owner: myradio
8094+-- Name: show_text_metadata; Type: VIEW; Schema: schedule; Owner: web
8095 --
8096
8097 CREATE VIEW show_text_metadata AS
8098@@ -6550,10 +7665,10 @@
8099 FROM show_metadata;
8100
8101
8102-ALTER TABLE schedule.show_text_metadata OWNER TO myradio;
8103+ALTER TABLE show_text_metadata OWNER TO web;
8104
8105 --
8106--- Name: show_type; Type: TABLE; Schema: schedule; Owner: myradio; Tablespace:
8107+-- Name: show_type; Type: TABLE; Schema: schedule; Owner: web
8108 --
8109
8110 CREATE TABLE show_type (
8111@@ -6567,59 +7682,59 @@
8112 );
8113
8114
8115-ALTER TABLE schedule.show_type OWNER TO myradio;
8116+ALTER TABLE show_type OWNER TO web;
8117
8118 --
8119--- Name: TABLE show_type; Type: COMMENT; Schema: schedule; Owner: myradio
8120+-- Name: TABLE show_type; Type: COMMENT; Schema: schedule; Owner: web
8121 --
8122
8123 COMMENT ON TABLE show_type IS 'Stores the possible types of “showâ€. Only one of these will actually be a show, but all can be entered on the Scheduling system. This allows support for Demos and Training (even though training is in a lecture - it can be added as Outside Broadcast) as well as John Wakefield’s pre-recording in Studio 2 and other general Studio 2 goings on, since it doesn’t often get used for shows.';
8124
8125
8126 --
8127--- Name: COLUMN show_type.show_type_id; Type: COMMENT; Schema: schedule; Owner: myradio
8128+-- Name: COLUMN show_type.show_type_id; Type: COMMENT; Schema: schedule; Owner: web
8129 --
8130
8131 COMMENT ON COLUMN show_type.show_type_id IS 'A unique identifier for each Show type';
8132
8133
8134 --
8135--- Name: COLUMN show_type.name; Type: COMMENT; Schema: schedule; Owner: myradio
8136+-- Name: COLUMN show_type.name; Type: COMMENT; Schema: schedule; Owner: web
8137 --
8138
8139 COMMENT ON COLUMN show_type.name IS 'The name of the show type';
8140
8141
8142 --
8143--- Name: COLUMN show_type.public; Type: COMMENT; Schema: schedule; Owner: myradio
8144+-- Name: COLUMN show_type.public; Type: COMMENT; Schema: schedule; Owner: web
8145 --
8146
8147 COMMENT ON COLUMN show_type.public IS 'Whether or not this show type is visible on the public schedule';
8148
8149
8150 --
8151--- Name: COLUMN show_type.has_showdb_entry; Type: COMMENT; Schema: schedule; Owner: myradio
8152+-- Name: COLUMN show_type.has_showdb_entry; Type: COMMENT; Schema: schedule; Owner: web
8153 --
8154
8155 COMMENT ON COLUMN show_type.has_showdb_entry IS 'If true, shows of this type and their season/timeslot descendents will have a publicly accessible showdb entry.';
8156
8157
8158 --
8159--- Name: COLUMN show_type.description; Type: COMMENT; Schema: schedule; Owner: myradio
8160+-- Name: COLUMN show_type.description; Type: COMMENT; Schema: schedule; Owner: web
8161 --
8162
8163 COMMENT ON COLUMN show_type.description IS 'A human-readable description of the show type.';
8164
8165
8166 --
8167--- Name: COLUMN show_type.can_be_messaged; Type: COMMENT; Schema: schedule; Owner: myradio
8168+-- Name: COLUMN show_type.can_be_messaged; Type: COMMENT; Schema: schedule; Owner: web
8169 --
8170
8171 COMMENT ON COLUMN show_type.can_be_messaged IS 'If true, the show can be messaged via the website.';
8172
8173
8174 --
8175--- Name: show_type_show_type_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
8176+-- Name: show_type_show_type_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
8177 --
8178
8179 CREATE SEQUENCE show_type_show_type_id_seq
8180@@ -6630,17 +7745,17 @@
8181 CACHE 1;
8182
8183
8184-ALTER TABLE schedule.show_type_show_type_id_seq OWNER TO myradio;
8185+ALTER TABLE show_type_show_type_id_seq OWNER TO web;
8186
8187 --
8188--- Name: show_type_show_type_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
8189+-- Name: show_type_show_type_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
8190 --
8191
8192 ALTER SEQUENCE show_type_show_type_id_seq OWNED BY show_type.show_type_id;
8193
8194
8195 --
8196--- Name: timeslot_metadata_timeslot_metadata_id_seq; Type: SEQUENCE; Schema: schedule; Owner: myradio
8197+-- Name: timeslot_metadata_timeslot_metadata_id_seq; Type: SEQUENCE; Schema: schedule; Owner: web
8198 --
8199
8200 CREATE SEQUENCE timeslot_metadata_timeslot_metadata_id_seq
8201@@ -6651,10 +7766,10 @@
8202 CACHE 1;
8203
8204
8205-ALTER TABLE schedule.timeslot_metadata_timeslot_metadata_id_seq OWNER TO myradio;
8206+ALTER TABLE timeslot_metadata_timeslot_metadata_id_seq OWNER TO web;
8207
8208 --
8209--- Name: timeslot_metadata_timeslot_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: myradio
8210+-- Name: timeslot_metadata_timeslot_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: schedule; Owner: web
8211 --
8212
8213 ALTER SEQUENCE timeslot_metadata_timeslot_metadata_id_seq OWNED BY timeslot_metadata.timeslot_metadata_id;
8214@@ -6663,7 +7778,7 @@
8215 SET search_path = sis2, pg_catalog;
8216
8217 --
8218--- Name: config; Type: TABLE; Schema: sis2; Owner: myradio; Tablespace:
8219+-- Name: config; Type: TABLE; Schema: sis2; Owner: sis
8220 --
8221
8222 CREATE TABLE config (
8223@@ -6672,10 +7787,10 @@
8224 );
8225
8226
8227-ALTER TABLE sis2.config OWNER TO myradio;
8228+ALTER TABLE config OWNER TO sis;
8229
8230 --
8231--- Name: member_options; Type: TABLE; Schema: sis2; Owner: myradio; Tablespace:
8232+-- Name: member_options; Type: TABLE; Schema: sis2; Owner: web
8233 --
8234
8235 CREATE TABLE member_options (
8236@@ -6684,10 +7799,10 @@
8237 );
8238
8239
8240-ALTER TABLE sis2.member_options OWNER TO myradio;
8241+ALTER TABLE member_options OWNER TO web;
8242
8243 --
8244--- Name: member_signin; Type: TABLE; Schema: sis2; Owner: myradio; Tablespace:
8245+-- Name: member_signin; Type: TABLE; Schema: sis2; Owner: web
8246 --
8247
8248 CREATE TABLE member_signin (
8249@@ -6699,52 +7814,52 @@
8250 );
8251
8252
8253-ALTER TABLE sis2.member_signin OWNER TO myradio;
8254+ALTER TABLE member_signin OWNER TO web;
8255
8256 --
8257--- Name: TABLE member_signin; Type: COMMENT; Schema: sis2; Owner: myradio
8258+-- Name: TABLE member_signin; Type: COMMENT; Schema: sis2; Owner: web
8259 --
8260
8261 COMMENT ON TABLE member_signin IS 'Stores members signing into their shows';
8262
8263
8264 --
8265--- Name: COLUMN member_signin.member_signin_id; Type: COMMENT; Schema: sis2; Owner: myradio
8266+-- Name: COLUMN member_signin.member_signin_id; Type: COMMENT; Schema: sis2; Owner: web
8267 --
8268
8269 COMMENT ON COLUMN member_signin.member_signin_id IS 'Unique Identifier for this signin event';
8270
8271
8272 --
8273--- Name: COLUMN member_signin.memberid; Type: COMMENT; Schema: sis2; Owner: myradio
8274+-- Name: COLUMN member_signin.memberid; Type: COMMENT; Schema: sis2; Owner: web
8275 --
8276
8277 COMMENT ON COLUMN member_signin.memberid IS 'The ID of the user signed in';
8278
8279
8280 --
8281--- Name: COLUMN member_signin.sign_time; Type: COMMENT; Schema: sis2; Owner: myradio
8282+-- Name: COLUMN member_signin.sign_time; Type: COMMENT; Schema: sis2; Owner: web
8283 --
8284
8285 COMMENT ON COLUMN member_signin.sign_time IS 'The time the user was signed in';
8286
8287
8288 --
8289--- Name: COLUMN member_signin.signerid; Type: COMMENT; Schema: sis2; Owner: myradio
8290+-- Name: COLUMN member_signin.signerid; Type: COMMENT; Schema: sis2; Owner: web
8291 --
8292
8293 COMMENT ON COLUMN member_signin.signerid IS 'The ID of the user who signed the user in';
8294
8295
8296 --
8297--- Name: COLUMN member_signin.show_season_timeslot_id; Type: COMMENT; Schema: sis2; Owner: myradio
8298+-- Name: COLUMN member_signin.show_season_timeslot_id; Type: COMMENT; Schema: sis2; Owner: web
8299 --
8300
8301 COMMENT ON COLUMN member_signin.show_season_timeslot_id IS 'The Timeslot that the users are signing in to';
8302
8303
8304 --
8305--- Name: member_signin_member_signin_id_seq; Type: SEQUENCE; Schema: sis2; Owner: myradio
8306+-- Name: member_signin_member_signin_id_seq; Type: SEQUENCE; Schema: sis2; Owner: web
8307 --
8308
8309 CREATE SEQUENCE member_signin_member_signin_id_seq
8310@@ -6755,17 +7870,17 @@
8311 CACHE 1;
8312
8313
8314-ALTER TABLE sis2.member_signin_member_signin_id_seq OWNER TO myradio;
8315+ALTER TABLE member_signin_member_signin_id_seq OWNER TO web;
8316
8317 --
8318--- Name: member_signin_member_signin_id_seq; Type: SEQUENCE OWNED BY; Schema: sis2; Owner: myradio
8319+-- Name: member_signin_member_signin_id_seq; Type: SEQUENCE OWNED BY; Schema: sis2; Owner: web
8320 --
8321
8322 ALTER SEQUENCE member_signin_member_signin_id_seq OWNED BY member_signin.member_signin_id;
8323
8324
8325 --
8326--- Name: messages; Type: TABLE; Schema: sis2; Owner: myradio; Tablespace:
8327+-- Name: messages; Type: TABLE; Schema: sis2; Owner: web
8328 --
8329
8330 CREATE TABLE messages (
8331@@ -6781,17 +7896,17 @@
8332 );
8333
8334
8335-ALTER TABLE sis2.messages OWNER TO myradio;
8336+ALTER TABLE messages OWNER TO web;
8337
8338 --
8339--- Name: TABLE messages; Type: COMMENT; Schema: sis2; Owner: myradio
8340+-- Name: TABLE messages; Type: COMMENT; Schema: sis2; Owner: web
8341 --
8342
8343 COMMENT ON TABLE messages IS 'Stores SIS comm messages';
8344
8345
8346 --
8347--- Name: messages_commid_seq; Type: SEQUENCE; Schema: sis2; Owner: myradio
8348+-- Name: messages_commid_seq; Type: SEQUENCE; Schema: sis2; Owner: web
8349 --
8350
8351 CREATE SEQUENCE messages_commid_seq
8352@@ -6802,19 +7917,320 @@
8353 CACHE 1;
8354
8355
8356-ALTER TABLE sis2.messages_commid_seq OWNER TO myradio;
8357+ALTER TABLE messages_commid_seq OWNER TO web;
8358
8359 --
8360--- Name: messages_commid_seq; Type: SEQUENCE OWNED BY; Schema: sis2; Owner: myradio
8361+-- Name: messages_commid_seq; Type: SEQUENCE OWNED BY; Schema: sis2; Owner: web
8362 --
8363
8364 ALTER SEQUENCE messages_commid_seq OWNED BY messages.commid;
8365
8366
8367+SET search_path = smsd, pg_catalog;
8368+
8369+--
8370+-- Name: daemons; Type: TABLE; Schema: smsd; Owner: xsms
8371+--
8372+
8373+CREATE TABLE daemons (
8374+ "Start" text NOT NULL,
8375+ "Info" text NOT NULL
8376+);
8377+
8378+
8379+ALTER TABLE daemons OWNER TO xsms;
8380+
8381+--
8382+-- Name: gammu; Type: TABLE; Schema: smsd; Owner: xsms
8383+--
8384+
8385+CREATE TABLE gammu (
8386+ "Version" smallint DEFAULT (0)::smallint NOT NULL
8387+);
8388+
8389+
8390+ALTER TABLE gammu OWNER TO xsms;
8391+
8392+--
8393+-- Name: inbox; Type: TABLE; Schema: smsd; Owner: xsms
8394+--
8395+
8396+CREATE TABLE inbox (
8397+ "UpdatedInDB" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8398+ "ReceivingDateTime" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8399+ "Text" text NOT NULL,
8400+ "SenderNumber" character varying(20) DEFAULT ''::character varying NOT NULL,
8401+ "Coding" character varying(255) DEFAULT 'Default_No_Compression'::character varying NOT NULL,
8402+ "UDH" text NOT NULL,
8403+ "SMSCNumber" character varying(20) DEFAULT ''::character varying NOT NULL,
8404+ "Class" integer DEFAULT '-1'::integer NOT NULL,
8405+ "TextDecoded" text DEFAULT ''::text NOT NULL,
8406+ "ID" integer NOT NULL,
8407+ "RecipientID" text NOT NULL,
8408+ "Processed" boolean DEFAULT false NOT NULL,
8409+ CONSTRAINT "inbox_Coding_check" CHECK ((("Coding")::text = ANY (ARRAY[('Default_No_Compression'::character varying)::text, ('Unicode_No_Compression'::character varying)::text, ('8bit'::character varying)::text, ('Default_Compression'::character varying)::text, ('Unicode_Compression'::character varying)::text])))
8410+);
8411+
8412+
8413+ALTER TABLE inbox OWNER TO xsms;
8414+
8415+--
8416+-- Name: inbox_ID_seq; Type: SEQUENCE; Schema: smsd; Owner: xsms
8417+--
8418+
8419+CREATE SEQUENCE "inbox_ID_seq"
8420+ START WITH 1
8421+ INCREMENT BY 1
8422+ NO MINVALUE
8423+ NO MAXVALUE
8424+ CACHE 1;
8425+
8426+
8427+ALTER TABLE "inbox_ID_seq" OWNER TO xsms;
8428+
8429+--
8430+-- Name: inbox_ID_seq; Type: SEQUENCE OWNED BY; Schema: smsd; Owner: xsms
8431+--
8432+
8433+ALTER SEQUENCE "inbox_ID_seq" OWNED BY inbox."ID";
8434+
8435+
8436+--
8437+-- Name: outbox; Type: TABLE; Schema: smsd; Owner: xsms
8438+--
8439+
8440+CREATE TABLE outbox (
8441+ "UpdatedInDB" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8442+ "InsertIntoDB" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8443+ "SendingDateTime" timestamp without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8444+ "SendBefore" time without time zone DEFAULT '23:59:59'::time without time zone NOT NULL,
8445+ "SendAfter" time without time zone DEFAULT '00:00:00'::time without time zone NOT NULL,
8446+ "Text" text,
8447+ "DestinationNumber" character varying(20) DEFAULT ''::character varying NOT NULL,
8448+ "Coding" character varying(255) DEFAULT 'Default_No_Compression'::character varying NOT NULL,
8449+ "UDH" text,
8450+ "Class" integer DEFAULT '-1'::integer,
8451+ "TextDecoded" text DEFAULT ''::text NOT NULL,
8452+ "ID" integer NOT NULL,
8453+ "MultiPart" boolean DEFAULT false NOT NULL,
8454+ "RelativeValidity" integer DEFAULT '-1'::integer,
8455+ "SenderID" character varying(255),
8456+ "SendingTimeOut" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8457+ "DeliveryReport" character varying(10) DEFAULT 'default'::character varying,
8458+ "CreatorID" text NOT NULL,
8459+ CONSTRAINT "outbox_Coding_check" CHECK ((("Coding")::text = ANY (ARRAY[('Default_No_Compression'::character varying)::text, ('Unicode_No_Compression'::character varying)::text, ('8bit'::character varying)::text, ('Default_Compression'::character varying)::text, ('Unicode_Compression'::character varying)::text]))),
8460+ CONSTRAINT "outbox_DeliveryReport_check" CHECK ((("DeliveryReport")::text = ANY (ARRAY[('default'::character varying)::text, ('yes'::character varying)::text, ('no'::character varying)::text])))
8461+);
8462+
8463+
8464+ALTER TABLE outbox OWNER TO xsms;
8465+
8466+--
8467+-- Name: outbox_ID_seq; Type: SEQUENCE; Schema: smsd; Owner: xsms
8468+--
8469+
8470+CREATE SEQUENCE "outbox_ID_seq"
8471+ START WITH 1
8472+ INCREMENT BY 1
8473+ NO MINVALUE
8474+ NO MAXVALUE
8475+ CACHE 1;
8476+
8477+
8478+ALTER TABLE "outbox_ID_seq" OWNER TO xsms;
8479+
8480+--
8481+-- Name: outbox_ID_seq; Type: SEQUENCE OWNED BY; Schema: smsd; Owner: xsms
8482+--
8483+
8484+ALTER SEQUENCE "outbox_ID_seq" OWNED BY outbox."ID";
8485+
8486+
8487+--
8488+-- Name: outbox_multipart; Type: TABLE; Schema: smsd; Owner: xsms
8489+--
8490+
8491+CREATE TABLE outbox_multipart (
8492+ "Text" text,
8493+ "Coding" character varying(255) DEFAULT 'Default_No_Compression'::character varying NOT NULL,
8494+ "UDH" text,
8495+ "Class" integer DEFAULT '-1'::integer,
8496+ "TextDecoded" text,
8497+ "ID" integer NOT NULL,
8498+ "SequencePosition" integer DEFAULT 1 NOT NULL,
8499+ CONSTRAINT "outbox_multipart_Coding_check" CHECK ((("Coding")::text = ANY (ARRAY[('Default_No_Compression'::character varying)::text, ('Unicode_No_Compression'::character varying)::text, ('8bit'::character varying)::text, ('Default_Compression'::character varying)::text, ('Unicode_Compression'::character varying)::text])))
8500+);
8501+
8502+
8503+ALTER TABLE outbox_multipart OWNER TO xsms;
8504+
8505+--
8506+-- Name: outbox_multipart_ID_seq; Type: SEQUENCE; Schema: smsd; Owner: xsms
8507+--
8508+
8509+CREATE SEQUENCE "outbox_multipart_ID_seq"
8510+ START WITH 1
8511+ INCREMENT BY 1
8512+ NO MINVALUE
8513+ NO MAXVALUE
8514+ CACHE 1;
8515+
8516+
8517+ALTER TABLE "outbox_multipart_ID_seq" OWNER TO xsms;
8518+
8519+--
8520+-- Name: outbox_multipart_ID_seq; Type: SEQUENCE OWNED BY; Schema: smsd; Owner: xsms
8521+--
8522+
8523+ALTER SEQUENCE "outbox_multipart_ID_seq" OWNED BY outbox_multipart."ID";
8524+
8525+
8526+--
8527+-- Name: pbk; Type: TABLE; Schema: smsd; Owner: xsms
8528+--
8529+
8530+CREATE TABLE pbk (
8531+ "ID" integer NOT NULL,
8532+ "GroupID" integer DEFAULT '-1'::integer NOT NULL,
8533+ "Name" text NOT NULL,
8534+ "Number" text NOT NULL
8535+);
8536+
8537+
8538+ALTER TABLE pbk OWNER TO xsms;
8539+
8540+--
8541+-- Name: pbk_ID_seq; Type: SEQUENCE; Schema: smsd; Owner: xsms
8542+--
8543+
8544+CREATE SEQUENCE "pbk_ID_seq"
8545+ START WITH 1
8546+ INCREMENT BY 1
8547+ NO MINVALUE
8548+ NO MAXVALUE
8549+ CACHE 1;
8550+
8551+
8552+ALTER TABLE "pbk_ID_seq" OWNER TO xsms;
8553+
8554+--
8555+-- Name: pbk_ID_seq; Type: SEQUENCE OWNED BY; Schema: smsd; Owner: xsms
8556+--
8557+
8558+ALTER SEQUENCE "pbk_ID_seq" OWNED BY pbk."ID";
8559+
8560+
8561+--
8562+-- Name: pbk_groups; Type: TABLE; Schema: smsd; Owner: xsms
8563+--
8564+
8565+CREATE TABLE pbk_groups (
8566+ "Name" text NOT NULL,
8567+ "ID" integer NOT NULL
8568+);
8569+
8570+
8571+ALTER TABLE pbk_groups OWNER TO xsms;
8572+
8573+--
8574+-- Name: pbk_groups_ID_seq; Type: SEQUENCE; Schema: smsd; Owner: xsms
8575+--
8576+
8577+CREATE SEQUENCE "pbk_groups_ID_seq"
8578+ START WITH 1
8579+ INCREMENT BY 1
8580+ NO MINVALUE
8581+ NO MAXVALUE
8582+ CACHE 1;
8583+
8584+
8585+ALTER TABLE "pbk_groups_ID_seq" OWNER TO xsms;
8586+
8587+--
8588+-- Name: pbk_groups_ID_seq; Type: SEQUENCE OWNED BY; Schema: smsd; Owner: xsms
8589+--
8590+
8591+ALTER SEQUENCE "pbk_groups_ID_seq" OWNED BY pbk_groups."ID";
8592+
8593+
8594+--
8595+-- Name: phones; Type: TABLE; Schema: smsd; Owner: xsms
8596+--
8597+
8598+CREATE TABLE phones (
8599+ "ID" text NOT NULL,
8600+ "UpdatedInDB" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8601+ "InsertIntoDB" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8602+ "TimeOut" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8603+ "Send" boolean DEFAULT false NOT NULL,
8604+ "Receive" boolean DEFAULT false NOT NULL,
8605+ "IMEI" character varying(35) NOT NULL,
8606+ "Client" text NOT NULL,
8607+ "Battery" integer DEFAULT '-1'::integer NOT NULL,
8608+ "Signal" integer DEFAULT '-1'::integer NOT NULL,
8609+ "Sent" integer DEFAULT 0 NOT NULL,
8610+ "Received" integer DEFAULT 0 NOT NULL
8611+);
8612+
8613+
8614+ALTER TABLE phones OWNER TO xsms;
8615+
8616+--
8617+-- Name: sentitems; Type: TABLE; Schema: smsd; Owner: xsms
8618+--
8619+
8620+CREATE TABLE sentitems (
8621+ "UpdatedInDB" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8622+ "InsertIntoDB" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8623+ "SendingDateTime" timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL,
8624+ "DeliveryDateTime" timestamp(0) without time zone,
8625+ "Text" text NOT NULL,
8626+ "DestinationNumber" character varying(20) DEFAULT ''::character varying NOT NULL,
8627+ "Coding" character varying(255) DEFAULT 'Default_No_Compression'::character varying NOT NULL,
8628+ "UDH" text NOT NULL,
8629+ "SMSCNumber" character varying(20) DEFAULT ''::character varying NOT NULL,
8630+ "Class" integer DEFAULT '-1'::integer NOT NULL,
8631+ "TextDecoded" text DEFAULT ''::text NOT NULL,
8632+ "ID" integer NOT NULL,
8633+ "SenderID" character varying(255) NOT NULL,
8634+ "SequencePosition" integer DEFAULT 1 NOT NULL,
8635+ "Status" character varying(255) DEFAULT 'SendingOK'::character varying NOT NULL,
8636+ "StatusError" integer DEFAULT '-1'::integer NOT NULL,
8637+ "TPMR" integer DEFAULT '-1'::integer NOT NULL,
8638+ "RelativeValidity" integer DEFAULT '-1'::integer NOT NULL,
8639+ "CreatorID" text NOT NULL,
8640+ CONSTRAINT "sentitems_Coding_check" CHECK ((("Coding")::text = ANY (ARRAY[('Default_No_Compression'::character varying)::text, ('Unicode_No_Compression'::character varying)::text, ('8bit'::character varying)::text, ('Default_Compression'::character varying)::text, ('Unicode_Compression'::character varying)::text]))),
8641+ CONSTRAINT "sentitems_Status_check" CHECK ((("Status")::text = ANY (ARRAY[('SendingOK'::character varying)::text, ('SendingOKNoReport'::character varying)::text, ('SendingError'::character varying)::text, ('DeliveryOK'::character varying)::text, ('DeliveryFailed'::character varying)::text, ('DeliveryPending'::character varying)::text, ('DeliveryUnknown'::character varying)::text, ('Error'::character varying)::text])))
8642+);
8643+
8644+
8645+ALTER TABLE sentitems OWNER TO xsms;
8646+
8647+--
8648+-- Name: sentitems_ID_seq; Type: SEQUENCE; Schema: smsd; Owner: xsms
8649+--
8650+
8651+CREATE SEQUENCE "sentitems_ID_seq"
8652+ START WITH 1
8653+ INCREMENT BY 1
8654+ NO MINVALUE
8655+ NO MAXVALUE
8656+ CACHE 1;
8657+
8658+
8659+ALTER TABLE "sentitems_ID_seq" OWNER TO xsms;
8660+
8661+--
8662+-- Name: sentitems_ID_seq; Type: SEQUENCE OWNED BY; Schema: smsd; Owner: xsms
8663+--
8664+
8665+ALTER SEQUENCE "sentitems_ID_seq" OWNED BY sentitems."ID";
8666+
8667+
8668 SET search_path = tracklist, pg_catalog;
8669
8670 --
8671--- Name: selbaps; Type: TABLE; Schema: tracklist; Owner: myradio; Tablespace:
8672+-- Name: selbaps; Type: TABLE; Schema: tracklist; Owner: web
8673 --
8674
8675 CREATE TABLE selbaps (
8676@@ -6823,17 +8239,17 @@
8677 );
8678
8679
8680-ALTER TABLE tracklist.selbaps OWNER TO myradio;
8681+ALTER TABLE selbaps OWNER TO web;
8682
8683 --
8684--- Name: TABLE selbaps; Type: COMMENT; Schema: tracklist; Owner: myradio
8685+-- Name: TABLE selbaps; Type: COMMENT; Schema: tracklist; Owner: web
8686 --
8687
8688 COMMENT ON TABLE selbaps IS 'Marries selector actions with BAPS servers';
8689
8690
8691 --
8692--- Name: source; Type: TABLE; Schema: tracklist; Owner: myradio; Tablespace:
8693+-- Name: source; Type: TABLE; Schema: tracklist; Owner: web
8694 --
8695
8696 CREATE TABLE source (
8697@@ -6842,17 +8258,17 @@
8698 );
8699
8700
8701-ALTER TABLE tracklist.source OWNER TO myradio;
8702+ALTER TABLE source OWNER TO web;
8703
8704 --
8705--- Name: TABLE source; Type: COMMENT; Schema: tracklist; Owner: myradio
8706+-- Name: TABLE source; Type: COMMENT; Schema: tracklist; Owner: web
8707 --
8708
8709 COMMENT ON TABLE source IS 'Lookup table for source of track';
8710
8711
8712 --
8713--- Name: state; Type: TABLE; Schema: tracklist; Owner: myradio; Tablespace:
8714+-- Name: state; Type: TABLE; Schema: tracklist; Owner: web
8715 --
8716
8717 CREATE TABLE state (
8718@@ -6861,17 +8277,17 @@
8719 );
8720
8721
8722-ALTER TABLE tracklist.state OWNER TO myradio;
8723+ALTER TABLE state OWNER TO web;
8724
8725 --
8726--- Name: TABLE state; Type: COMMENT; Schema: tracklist; Owner: myradio
8727+-- Name: TABLE state; Type: COMMENT; Schema: tracklist; Owner: web
8728 --
8729
8730 COMMENT ON TABLE state IS 'State lookup table';
8731
8732
8733 --
8734--- Name: track_notrec; Type: TABLE; Schema: tracklist; Owner: myradio; Tablespace:
8735+-- Name: track_notrec; Type: TABLE; Schema: tracklist; Owner: web
8736 --
8737
8738 CREATE TABLE track_notrec (
8739@@ -6885,17 +8301,17 @@
8740 );
8741
8742
8743-ALTER TABLE tracklist.track_notrec OWNER TO myradio;
8744+ALTER TABLE track_notrec OWNER TO web;
8745
8746 --
8747--- Name: TABLE track_notrec; Type: COMMENT; Schema: tracklist; Owner: myradio
8748+-- Name: TABLE track_notrec; Type: COMMENT; Schema: tracklist; Owner: web
8749 --
8750
8751 COMMENT ON TABLE track_notrec IS 'Retrieves tracks not entered in the database';
8752
8753
8754 --
8755--- Name: track_rec; Type: TABLE; Schema: tracklist; Owner: myradio; Tablespace:
8756+-- Name: track_rec; Type: TABLE; Schema: tracklist; Owner: web
8757 --
8758
8759 CREATE TABLE track_rec (
8760@@ -6905,17 +8321,17 @@
8761 );
8762
8763
8764-ALTER TABLE tracklist.track_rec OWNER TO myradio;
8765+ALTER TABLE track_rec OWNER TO web;
8766
8767 --
8768--- Name: TABLE track_rec; Type: COMMENT; Schema: tracklist; Owner: myradio
8769+-- Name: TABLE track_rec; Type: COMMENT; Schema: tracklist; Owner: web
8770 --
8771
8772 COMMENT ON TABLE track_rec IS 'Retrieves tracks from central database';
8773
8774
8775 --
8776--- Name: tracklist; Type: TABLE; Schema: tracklist; Owner: myradio; Tablespace:
8777+-- Name: tracklist; Type: TABLE; Schema: tracklist; Owner: web
8778 --
8779
8780 CREATE TABLE tracklist (
8781@@ -6929,17 +8345,17 @@
8782 );
8783
8784
8785-ALTER TABLE tracklist.tracklist OWNER TO myradio;
8786+ALTER TABLE tracklist OWNER TO web;
8787
8788 --
8789--- Name: TABLE tracklist; Type: COMMENT; Schema: tracklist; Owner: myradio
8790+-- Name: TABLE tracklist; Type: COMMENT; Schema: tracklist; Owner: web
8791 --
8792
8793 COMMENT ON TABLE tracklist IS 'Main tracklisting table. Things spur off of this';
8794
8795
8796 --
8797--- Name: tracklist_audiologid_seq; Type: SEQUENCE; Schema: tracklist; Owner: myradio
8798+-- Name: tracklist_audiologid_seq; Type: SEQUENCE; Schema: tracklist; Owner: web
8799 --
8800
8801 CREATE SEQUENCE tracklist_audiologid_seq
8802@@ -6950,10 +8366,10 @@
8803 CACHE 1;
8804
8805
8806-ALTER TABLE tracklist.tracklist_audiologid_seq OWNER TO myradio;
8807+ALTER TABLE tracklist_audiologid_seq OWNER TO web;
8808
8809 --
8810--- Name: tracklist_audiologid_seq; Type: SEQUENCE OWNED BY; Schema: tracklist; Owner: myradio
8811+-- Name: tracklist_audiologid_seq; Type: SEQUENCE OWNED BY; Schema: tracklist; Owner: web
8812 --
8813
8814 ALTER SEQUENCE tracklist_audiologid_seq OWNED BY tracklist.audiologid;
8815@@ -6962,7 +8378,7 @@
8816 SET search_path = uryplayer, pg_catalog;
8817
8818 --
8819--- Name: podcast; Type: TABLE; Schema: uryplayer; Owner: myradio; Tablespace:
8820+-- Name: podcast; Type: TABLE; Schema: uryplayer; Owner: django
8821 --
8822
8823 CREATE TABLE podcast (
8824@@ -6975,10 +8391,10 @@
8825 );
8826
8827
8828-ALTER TABLE uryplayer.podcast OWNER TO myradio;
8829+ALTER TABLE podcast OWNER TO django;
8830
8831 --
8832--- Name: podcast_credit; Type: TABLE; Schema: uryplayer; Owner: myradio; Tablespace:
8833+-- Name: podcast_credit; Type: TABLE; Schema: uryplayer; Owner: django
8834 --
8835
8836 CREATE TABLE podcast_credit (
8837@@ -6993,10 +8409,10 @@
8838 );
8839
8840
8841-ALTER TABLE uryplayer.podcast_credit OWNER TO myradio;
8842+ALTER TABLE podcast_credit OWNER TO django;
8843
8844 --
8845--- Name: podcast_credit_podcast_credit_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: myradio
8846+-- Name: podcast_credit_podcast_credit_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: django
8847 --
8848
8849 CREATE SEQUENCE podcast_credit_podcast_credit_id_seq
8850@@ -7007,17 +8423,17 @@
8851 CACHE 1;
8852
8853
8854-ALTER TABLE uryplayer.podcast_credit_podcast_credit_id_seq OWNER TO myradio;
8855+ALTER TABLE podcast_credit_podcast_credit_id_seq OWNER TO django;
8856
8857 --
8858--- Name: podcast_credit_podcast_credit_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: myradio
8859+-- Name: podcast_credit_podcast_credit_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: django
8860 --
8861
8862 ALTER SEQUENCE podcast_credit_podcast_credit_id_seq OWNED BY podcast_credit.podcast_credit_id;
8863
8864
8865 --
8866--- Name: podcast_image_metadata; Type: TABLE; Schema: uryplayer; Owner: myradio; Tablespace:
8867+-- Name: podcast_image_metadata; Type: TABLE; Schema: uryplayer; Owner: django
8868 --
8869
8870 CREATE TABLE podcast_image_metadata (
8871@@ -7032,10 +8448,10 @@
8872 );
8873
8874
8875-ALTER TABLE uryplayer.podcast_image_metadata OWNER TO myradio;
8876+ALTER TABLE podcast_image_metadata OWNER TO django;
8877
8878 --
8879--- Name: podcast_image_metadata_podcast_image_metadata_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: myradio
8880+-- Name: podcast_image_metadata_podcast_image_metadata_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: django
8881 --
8882
8883 CREATE SEQUENCE podcast_image_metadata_podcast_image_metadata_id_seq
8884@@ -7046,17 +8462,17 @@
8885 CACHE 1;
8886
8887
8888-ALTER TABLE uryplayer.podcast_image_metadata_podcast_image_metadata_id_seq OWNER TO myradio;
8889+ALTER TABLE podcast_image_metadata_podcast_image_metadata_id_seq OWNER TO django;
8890
8891 --
8892--- Name: podcast_image_metadata_podcast_image_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: myradio
8893+-- Name: podcast_image_metadata_podcast_image_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: django
8894 --
8895
8896 ALTER SEQUENCE podcast_image_metadata_podcast_image_metadata_id_seq OWNED BY podcast_image_metadata.podcast_image_metadata_id;
8897
8898
8899 --
8900--- Name: podcast_metadata; Type: TABLE; Schema: uryplayer; Owner: myradio; Tablespace:
8901+-- Name: podcast_metadata; Type: TABLE; Schema: uryplayer; Owner: django
8902 --
8903
8904 CREATE TABLE podcast_metadata (
8905@@ -7071,10 +8487,10 @@
8906 );
8907
8908
8909-ALTER TABLE uryplayer.podcast_metadata OWNER TO myradio;
8910+ALTER TABLE podcast_metadata OWNER TO django;
8911
8912 --
8913--- Name: podcast_metadata_podcast_metadata_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: myradio
8914+-- Name: podcast_metadata_podcast_metadata_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: django
8915 --
8916
8917 CREATE SEQUENCE podcast_metadata_podcast_metadata_id_seq
8918@@ -7085,17 +8501,17 @@
8919 CACHE 1;
8920
8921
8922-ALTER TABLE uryplayer.podcast_metadata_podcast_metadata_id_seq OWNER TO myradio;
8923+ALTER TABLE podcast_metadata_podcast_metadata_id_seq OWNER TO django;
8924
8925 --
8926--- Name: podcast_metadata_podcast_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: myradio
8927+-- Name: podcast_metadata_podcast_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: django
8928 --
8929
8930 ALTER SEQUENCE podcast_metadata_podcast_metadata_id_seq OWNED BY podcast_metadata.podcast_metadata_id;
8931
8932
8933 --
8934--- Name: podcast_package_entry; Type: TABLE; Schema: uryplayer; Owner: myradio; Tablespace:
8935+-- Name: podcast_package_entry; Type: TABLE; Schema: uryplayer; Owner: django
8936 --
8937
8938 CREATE TABLE podcast_package_entry (
8939@@ -7109,10 +8525,10 @@
8940 );
8941
8942
8943-ALTER TABLE uryplayer.podcast_package_entry OWNER TO myradio;
8944+ALTER TABLE podcast_package_entry OWNER TO django;
8945
8946 --
8947--- Name: podcast_package_entry_podcast_package_entry_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: myradio
8948+-- Name: podcast_package_entry_podcast_package_entry_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: django
8949 --
8950
8951 CREATE SEQUENCE podcast_package_entry_podcast_package_entry_id_seq
8952@@ -7123,17 +8539,17 @@
8953 CACHE 1;
8954
8955
8956-ALTER TABLE uryplayer.podcast_package_entry_podcast_package_entry_id_seq OWNER TO myradio;
8957+ALTER TABLE podcast_package_entry_podcast_package_entry_id_seq OWNER TO django;
8958
8959 --
8960--- Name: podcast_package_entry_podcast_package_entry_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: myradio
8961+-- Name: podcast_package_entry_podcast_package_entry_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: django
8962 --
8963
8964 ALTER SEQUENCE podcast_package_entry_podcast_package_entry_id_seq OWNED BY podcast_package_entry.podcast_package_entry_id;
8965
8966
8967 --
8968--- Name: podcast_podcast_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: myradio
8969+-- Name: podcast_podcast_id_seq; Type: SEQUENCE; Schema: uryplayer; Owner: django
8970 --
8971
8972 CREATE SEQUENCE podcast_podcast_id_seq
8973@@ -7144,17 +8560,17 @@
8974 CACHE 1;
8975
8976
8977-ALTER TABLE uryplayer.podcast_podcast_id_seq OWNER TO myradio;
8978+ALTER TABLE podcast_podcast_id_seq OWNER TO django;
8979
8980 --
8981--- Name: podcast_podcast_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: myradio
8982+-- Name: podcast_podcast_id_seq; Type: SEQUENCE OWNED BY; Schema: uryplayer; Owner: django
8983 --
8984
8985 ALTER SEQUENCE podcast_podcast_id_seq OWNED BY podcast.podcast_id;
8986
8987
8988 --
8989--- Name: podcast_text_metadata; Type: VIEW; Schema: uryplayer; Owner: myradio
8990+-- Name: podcast_text_metadata; Type: VIEW; Schema: uryplayer; Owner: web
8991 --
8992
8993 CREATE VIEW podcast_text_metadata AS
8994@@ -7169,12 +8585,12 @@
8995 FROM podcast_metadata;
8996
8997
8998-ALTER TABLE uryplayer.podcast_text_metadata OWNER TO myradio;
8999+ALTER TABLE podcast_text_metadata OWNER TO web;
9000
9001 SET search_path = webcam, pg_catalog;
9002
9003 --
9004--- Name: memberviews; Type: TABLE; Schema: webcam; Owner: myradio; Tablespace:
9005+-- Name: memberviews; Type: TABLE; Schema: webcam; Owner: web
9006 --
9007
9008 CREATE TABLE memberviews (
9009@@ -7183,31 +8599,32 @@
9010 );
9011
9012
9013-ALTER TABLE webcam.memberviews OWNER TO myradio;
9014+ALTER TABLE memberviews OWNER TO web;
9015
9016 --
9017--- Name: streams; Type: TABLE; Schema: webcam; Owner: myradio; Tablespace:
9018+-- Name: streams; Type: TABLE; Schema: webcam; Owner: web
9019 --
9020
9021 CREATE TABLE streams (
9022 streamid integer NOT NULL,
9023 streamname character varying NOT NULL,
9024 liveurl character varying NOT NULL,
9025- staticurl character varying NOT NULL
9026+ staticurl character varying NOT NULL,
9027+ camera text
9028 );
9029
9030
9031-ALTER TABLE webcam.streams OWNER TO myradio;
9032+ALTER TABLE streams OWNER TO web;
9033
9034 --
9035--- Name: TABLE streams; Type: COMMENT; Schema: webcam; Owner: myradio
9036+-- Name: TABLE streams; Type: COMMENT; Schema: webcam; Owner: web
9037 --
9038
9039-COMMENT ON TABLE streams IS 'Stores a list of streams available on MyRadio';
9040+COMMENT ON TABLE streams IS 'Stores a list of streams available on MyURY';
9041
9042
9043 --
9044--- Name: streams_streamid_seq; Type: SEQUENCE; Schema: webcam; Owner: myradio
9045+-- Name: streams_streamid_seq; Type: SEQUENCE; Schema: webcam; Owner: web
9046 --
9047
9048 CREATE SEQUENCE streams_streamid_seq
9049@@ -7218,10 +8635,10 @@
9050 CACHE 1;
9051
9052
9053-ALTER TABLE webcam.streams_streamid_seq OWNER TO myradio;
9054+ALTER TABLE streams_streamid_seq OWNER TO web;
9055
9056 --
9057--- Name: streams_streamid_seq; Type: SEQUENCE OWNED BY; Schema: webcam; Owner: myradio
9058+-- Name: streams_streamid_seq; Type: SEQUENCE OWNED BY; Schema: webcam; Owner: web
9059 --
9060
9061 ALTER SEQUENCE streams_streamid_seq OWNED BY streams.streamid;
9062@@ -7230,7 +8647,7 @@
9063 SET search_path = website, pg_catalog;
9064
9065 --
9066--- Name: banner; Type: TABLE; Schema: website; Owner: myradio; Tablespace:
9067+-- Name: banner; Type: TABLE; Schema: website; Owner: web
9068 --
9069
9070 CREATE TABLE banner (
9071@@ -7243,17 +8660,17 @@
9072 );
9073
9074
9075-ALTER TABLE website.banner OWNER TO myradio;
9076+ALTER TABLE banner OWNER TO web;
9077
9078 --
9079--- Name: COLUMN banner.photoid; Type: COMMENT; Schema: website; Owner: myradio
9080+-- Name: COLUMN banner.photoid; Type: COMMENT; Schema: website; Owner: web
9081 --
9082
9083-COMMENT ON COLUMN banner.photoid IS 'The corresponding MyRadio Photo ID, if one exists.';
9084+COMMENT ON COLUMN banner.photoid IS 'The corresponding MyURY Photo ID, if one exists.';
9085
9086
9087 --
9088--- Name: banner_banner_id_seq; Type: SEQUENCE; Schema: website; Owner: myradio
9089+-- Name: banner_banner_id_seq; Type: SEQUENCE; Schema: website; Owner: web
9090 --
9091
9092 CREATE SEQUENCE banner_banner_id_seq
9093@@ -7264,55 +8681,17 @@
9094 CACHE 1;
9095
9096
9097-ALTER TABLE website.banner_banner_id_seq OWNER TO myradio;
9098+ALTER TABLE banner_banner_id_seq OWNER TO web;
9099
9100 --
9101--- Name: banner_banner_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: myradio
9102+-- Name: banner_banner_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: web
9103 --
9104
9105 ALTER SEQUENCE banner_banner_id_seq OWNED BY banner.banner_id;
9106
9107
9108 --
9109--- Name: banner_campaign; Type: TABLE; Schema: website; Owner: myradio; Tablespace:
9110---
9111-
9112-CREATE TABLE banner_campaign (
9113- memberid integer,
9114- approvedid integer,
9115- effective_from timestamp with time zone NOT NULL,
9116- effective_to timestamp with time zone,
9117- banner_campaign_id integer NOT NULL,
9118- banner_location_id integer NOT NULL,
9119- banner_id integer NOT NULL
9120-);
9121-
9122-
9123-ALTER TABLE website.banner_campaign OWNER TO myradio;
9124-
9125---
9126--- Name: banner_campaign_banner_campaign_id_seq; Type: SEQUENCE; Schema: website; Owner: myradio
9127---
9128-
9129-CREATE SEQUENCE banner_campaign_banner_campaign_id_seq
9130- START WITH 1
9131- INCREMENT BY 1
9132- NO MINVALUE
9133- NO MAXVALUE
9134- CACHE 1;
9135-
9136-
9137-ALTER TABLE website.banner_campaign_banner_campaign_id_seq OWNER TO myradio;
9138-
9139---
9140--- Name: banner_campaign_banner_campaign_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: myradio
9141---
9142-
9143-ALTER SEQUENCE banner_campaign_banner_campaign_id_seq OWNED BY banner_campaign.banner_campaign_id;
9144-
9145-
9146---
9147--- Name: banner_location; Type: TABLE; Schema: website; Owner: myradio; Tablespace:
9148+-- Name: banner_location; Type: TABLE; Schema: website; Owner: django
9149 --
9150
9151 CREATE TABLE banner_location (
9152@@ -7322,10 +8701,10 @@
9153 );
9154
9155
9156-ALTER TABLE website.banner_location OWNER TO myradio;
9157+ALTER TABLE banner_location OWNER TO django;
9158
9159 --
9160--- Name: banner_location_banner_location_id_seq; Type: SEQUENCE; Schema: website; Owner: myradio
9161+-- Name: banner_location_banner_location_id_seq; Type: SEQUENCE; Schema: website; Owner: django
9162 --
9163
9164 CREATE SEQUENCE banner_location_banner_location_id_seq
9165@@ -7336,17 +8715,17 @@
9166 CACHE 1;
9167
9168
9169-ALTER TABLE website.banner_location_banner_location_id_seq OWNER TO myradio;
9170+ALTER TABLE banner_location_banner_location_id_seq OWNER TO django;
9171
9172 --
9173--- Name: banner_location_banner_location_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: myradio
9174+-- Name: banner_location_banner_location_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: django
9175 --
9176
9177 ALTER SEQUENCE banner_location_banner_location_id_seq OWNED BY banner_location.banner_location_id;
9178
9179
9180 --
9181--- Name: banner_timeslot; Type: TABLE; Schema: website; Owner: myradio; Tablespace:
9182+-- Name: banner_timeslot; Type: TABLE; Schema: website; Owner: web
9183 --
9184
9185 CREATE TABLE banner_timeslot (
9186@@ -7363,24 +8742,24 @@
9187 );
9188
9189
9190-ALTER TABLE website.banner_timeslot OWNER TO myradio;
9191+ALTER TABLE banner_timeslot OWNER TO web;
9192
9193 --
9194--- Name: COLUMN banner_timeslot.start_time; Type: COMMENT; Schema: website; Owner: myradio
9195+-- Name: COLUMN banner_timeslot.start_time; Type: COMMENT; Schema: website; Owner: web
9196 --
9197
9198 COMMENT ON COLUMN banner_timeslot.start_time IS 'The time of day when the banner will start rotating.';
9199
9200
9201 --
9202--- Name: COLUMN banner_timeslot.end_time; Type: COMMENT; Schema: website; Owner: myradio
9203+-- Name: COLUMN banner_timeslot.end_time; Type: COMMENT; Schema: website; Owner: web
9204 --
9205
9206 COMMENT ON COLUMN banner_timeslot.end_time IS 'The time of day when the banner will stop rotating.';
9207
9208
9209 --
9210--- Name: banner_timeslot_id_seq; Type: SEQUENCE; Schema: website; Owner: myradio
9211+-- Name: banner_timeslot_id_seq; Type: SEQUENCE; Schema: website; Owner: web
9212 --
9213
9214 CREATE SEQUENCE banner_timeslot_id_seq
9215@@ -7391,17 +8770,17 @@
9216 CACHE 1;
9217
9218
9219-ALTER TABLE website.banner_timeslot_id_seq OWNER TO myradio;
9220+ALTER TABLE banner_timeslot_id_seq OWNER TO web;
9221
9222 --
9223--- Name: banner_timeslot_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: myradio
9224+-- Name: banner_timeslot_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: web
9225 --
9226
9227 ALTER SEQUENCE banner_timeslot_id_seq OWNED BY banner_timeslot.id;
9228
9229
9230 --
9231--- Name: banner_type; Type: TABLE; Schema: website; Owner: myradio; Tablespace:
9232+-- Name: banner_type; Type: TABLE; Schema: website; Owner: django
9233 --
9234
9235 CREATE TABLE banner_type (
9236@@ -7411,10 +8790,10 @@
9237 );
9238
9239
9240-ALTER TABLE website.banner_type OWNER TO myradio;
9241+ALTER TABLE banner_type OWNER TO django;
9242
9243 --
9244--- Name: banner_type_banner_type_id_seq; Type: SEQUENCE; Schema: website; Owner: myradio
9245+-- Name: banner_type_banner_type_id_seq; Type: SEQUENCE; Schema: website; Owner: django
9246 --
9247
9248 CREATE SEQUENCE banner_type_banner_type_id_seq
9249@@ -7425,10 +8804,10 @@
9250 CACHE 1;
9251
9252
9253-ALTER TABLE website.banner_type_banner_type_id_seq OWNER TO myradio;
9254+ALTER TABLE banner_type_banner_type_id_seq OWNER TO django;
9255
9256 --
9257--- Name: banner_type_banner_type_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: myradio
9258+-- Name: banner_type_banner_type_id_seq; Type: SEQUENCE OWNED BY; Schema: website; Owner: django
9259 --
9260
9261 ALTER SEQUENCE banner_type_banner_type_id_seq OWNED BY banner_type.banner_type_id;
9262@@ -7437,21 +8816,35 @@
9263 SET search_path = bapsplanner, pg_catalog;
9264
9265 --
9266--- Name: managedplaylistid; Type: DEFAULT; Schema: bapsplanner; Owner: myradio
9267+-- Name: client_id; Type: DEFAULT; Schema: bapsplanner; Owner: web
9268+--
9269+
9270+ALTER TABLE ONLY client_ids ALTER COLUMN client_id SET DEFAULT nextval('client_ids_client_id_seq'::regclass);
9271+
9272+
9273+--
9274+-- Name: manageditemid; Type: DEFAULT; Schema: bapsplanner; Owner: web
9275+--
9276+
9277+ALTER TABLE ONLY managed_items ALTER COLUMN manageditemid SET DEFAULT nextval('managed_items_manageditemid_seq'::regclass);
9278+
9279+
9280+--
9281+-- Name: managedplaylistid; Type: DEFAULT; Schema: bapsplanner; Owner: web
9282 --
9283
9284 ALTER TABLE ONLY managed_playlists ALTER COLUMN managedplaylistid SET DEFAULT nextval('managed_playlists_managedplaylistid_seq'::regclass);
9285
9286
9287 --
9288--- Name: timeslot_change_set_id; Type: DEFAULT; Schema: bapsplanner; Owner: myradio
9289+-- Name: timeslot_change_set_id; Type: DEFAULT; Schema: bapsplanner; Owner: web
9290 --
9291
9292 ALTER TABLE ONLY timeslot_change_ops ALTER COLUMN timeslot_change_set_id SET DEFAULT nextval('timeslot_change_ops_timeslot_change_set_id_seq'::regclass);
9293
9294
9295 --
9296--- Name: timeslot_item_id; Type: DEFAULT; Schema: bapsplanner; Owner: myradio
9297+-- Name: timeslot_item_id; Type: DEFAULT; Schema: bapsplanner; Owner: web
9298 --
9299
9300 ALTER TABLE ONLY timeslot_items ALTER COLUMN timeslot_item_id SET DEFAULT nextval('timeslot_items_timeslot_item_id_seq'::regclass);
9301@@ -7460,21 +8853,21 @@
9302 SET search_path = jukebox, pg_catalog;
9303
9304 --
9305--- Name: entryid; Type: DEFAULT; Schema: jukebox; Owner: myradio
9306+-- Name: entryid; Type: DEFAULT; Schema: jukebox; Owner: web
9307 --
9308
9309 ALTER TABLE ONLY playlist_entries ALTER COLUMN entryid SET DEFAULT nextval('playlist_entries_entryid_seq'::regclass);
9310
9311
9312 --
9313--- Name: request_id; Type: DEFAULT; Schema: jukebox; Owner: myradio
9314+-- Name: request_id; Type: DEFAULT; Schema: jukebox; Owner: web
9315 --
9316
9317 ALTER TABLE ONLY request ALTER COLUMN request_id SET DEFAULT nextval('request_request_id_seq'::regclass);
9318
9319
9320 --
9321--- Name: silenceid; Type: DEFAULT; Schema: jukebox; Owner: myradio
9322+-- Name: silenceid; Type: DEFAULT; Schema: jukebox; Owner: web
9323 --
9324
9325 ALTER TABLE ONLY silence_log ALTER COLUMN silenceid SET DEFAULT nextval('silence_log_silenceid_seq'::regclass);
9326@@ -7483,14 +8876,14 @@
9327 SET search_path = mail, pg_catalog;
9328
9329 --
9330--- Name: alias_id; Type: DEFAULT; Schema: mail; Owner: myradio
9331+-- Name: alias_id; Type: DEFAULT; Schema: mail; Owner: web
9332 --
9333
9334 ALTER TABLE ONLY alias ALTER COLUMN alias_id SET DEFAULT nextval('alias_alias_id_seq'::regclass);
9335
9336
9337 --
9338--- Name: email_id; Type: DEFAULT; Schema: mail; Owner: myradio
9339+-- Name: email_id; Type: DEFAULT; Schema: mail; Owner: web
9340 --
9341
9342 ALTER TABLE ONLY email ALTER COLUMN email_id SET DEFAULT nextval('emails_email_id_seq'::regclass);
9343@@ -7499,28 +8892,28 @@
9344 SET search_path = metadata, pg_catalog;
9345
9346 --
9347--- Name: metadata_key_id; Type: DEFAULT; Schema: metadata; Owner: myradio
9348+-- Name: metadata_key_id; Type: DEFAULT; Schema: metadata; Owner: web
9349 --
9350
9351 ALTER TABLE ONLY metadata_key ALTER COLUMN metadata_key_id SET DEFAULT nextval('metadata_key_metadata_key_id_seq'::regclass);
9352
9353
9354 --
9355--- Name: package_id; Type: DEFAULT; Schema: metadata; Owner: myradio
9356+-- Name: package_id; Type: DEFAULT; Schema: metadata; Owner: django
9357 --
9358
9359 ALTER TABLE ONLY package ALTER COLUMN package_id SET DEFAULT nextval('package_package_id_seq'::regclass);
9360
9361
9362 --
9363--- Name: package_image_metadata_id; Type: DEFAULT; Schema: metadata; Owner: myradio
9364+-- Name: package_image_metadata_id; Type: DEFAULT; Schema: metadata; Owner: django
9365 --
9366
9367 ALTER TABLE ONLY package_image_metadata ALTER COLUMN package_image_metadata_id SET DEFAULT nextval('package_image_metadata_package_image_metadata_id_seq'::regclass);
9368
9369
9370 --
9371--- Name: package_text_metadata_id; Type: DEFAULT; Schema: metadata; Owner: myradio
9372+-- Name: package_text_metadata_id; Type: DEFAULT; Schema: metadata; Owner: django
9373 --
9374
9375 ALTER TABLE ONLY package_text_metadata ALTER COLUMN package_text_metadata_id SET DEFAULT nextval('package_text_metadata_package_text_metadata_id_seq'::regclass);
9376@@ -7529,21 +8922,21 @@
9377 SET search_path = music, pg_catalog;
9378
9379 --
9380--- Name: chart_release_id; Type: DEFAULT; Schema: music; Owner: myradio
9381+-- Name: chart_release_id; Type: DEFAULT; Schema: music; Owner: django
9382 --
9383
9384 ALTER TABLE ONLY chart_release ALTER COLUMN chart_release_id SET DEFAULT nextval('chart_release_chart_release_id_seq'::regclass);
9385
9386
9387 --
9388--- Name: chart_row_id; Type: DEFAULT; Schema: music; Owner: myradio
9389+-- Name: chart_row_id; Type: DEFAULT; Schema: music; Owner: django
9390 --
9391
9392 ALTER TABLE ONLY chart_row ALTER COLUMN chart_row_id SET DEFAULT nextval('chart_row_chart_row_id_seq'::regclass);
9393
9394
9395 --
9396--- Name: chart_type_id; Type: DEFAULT; Schema: music; Owner: myradio
9397+-- Name: chart_type_id; Type: DEFAULT; Schema: music; Owner: django
9398 --
9399
9400 ALTER TABLE ONLY chart_type ALTER COLUMN chart_type_id SET DEFAULT nextval('chart_type_chart_type_id_seq'::regclass);
9401@@ -7552,91 +8945,133 @@
9402 SET search_path = myury, pg_catalog;
9403
9404 --
9405--- Name: actpermissionid; Type: DEFAULT; Schema: myury; Owner: myradio
9406+-- Name: actpermissionid; Type: DEFAULT; Schema: myury; Owner: web
9407 --
9408
9409 ALTER TABLE ONLY act_permission ALTER COLUMN actpermissionid SET DEFAULT nextval('act_permission_actpermissionid_seq'::regclass);
9410
9411
9412 --
9413--- Name: actionid; Type: DEFAULT; Schema: myury; Owner: myradio
9414+-- Name: actionid; Type: DEFAULT; Schema: myury; Owner: web
9415 --
9416
9417 ALTER TABLE ONLY actions ALTER COLUMN actionid SET DEFAULT nextval('actions_actionid_seq'::regclass);
9418
9419
9420 --
9421--- Name: api_map_id; Type: DEFAULT; Schema: myury; Owner: myradio
9422+-- Name: api_map_id; Type: DEFAULT; Schema: myury; Owner: web
9423 --
9424
9425 ALTER TABLE ONLY api_class_map ALTER COLUMN api_map_id SET DEFAULT nextval('api_class_map_api_map_id_seq'::regclass);
9426
9427
9428 --
9429--- Name: api_log_id; Type: DEFAULT; Schema: myury; Owner: myradio
9430+-- Name: api_log_id; Type: DEFAULT; Schema: myury; Owner: web
9431 --
9432
9433 ALTER TABLE ONLY api_key_log ALTER COLUMN api_log_id SET DEFAULT nextval('api_key_log_api_log_id_seq'::regclass);
9434
9435
9436 --
9437--- Name: api_method_auth_id; Type: DEFAULT; Schema: myury; Owner: myradio
9438+-- Name: api_method_auth_id; Type: DEFAULT; Schema: myury; Owner: web
9439 --
9440
9441 ALTER TABLE ONLY api_method_auth ALTER COLUMN api_method_auth_id SET DEFAULT nextval('api_method_auth_api_method_auth_id_seq'::regclass);
9442
9443
9444 --
9445--- Name: api_mixin_auth_id; Type: DEFAULT; Schema: myury; Owner: myradio
9446+-- Name: api_mixin_auth_id; Type: DEFAULT; Schema: myury; Owner: web
9447 --
9448
9449 ALTER TABLE ONLY api_mixin_auth ALTER COLUMN api_mixin_auth_id SET DEFAULT nextval('api_mixin_auth_api_mixin_auth_id_seq'::regclass);
9450
9451
9452 --
9453--- Name: awardid; Type: DEFAULT; Schema: myury; Owner: myradio
9454+-- Name: awardid; Type: DEFAULT; Schema: myury; Owner: web
9455 --
9456
9457 ALTER TABLE ONLY award_categories ALTER COLUMN awardid SET DEFAULT nextval('award_categories_awardid_seq'::regclass);
9458
9459
9460 --
9461--- Name: awardmemberid; Type: DEFAULT; Schema: myury; Owner: myradio
9462+-- Name: awardmemberid; Type: DEFAULT; Schema: myury; Owner: web
9463 --
9464
9465 ALTER TABLE ONLY award_member ALTER COLUMN awardmemberid SET DEFAULT nextval('award_member_awardmemberid_seq'::regclass);
9466
9467
9468 --
9469--- Name: request_id; Type: DEFAULT; Schema: myury; Owner: myradio
9470+-- Name: contract_version_id; Type: DEFAULT; Schema: myury; Owner: web
9471+--
9472+
9473+ALTER TABLE ONLY contract_versions ALTER COLUMN contract_version_id SET DEFAULT nextval('contract_versions_contract_version_id_seq'::regclass);
9474+
9475+
9476+--
9477+-- Name: request_id; Type: DEFAULT; Schema: myury; Owner: web
9478 --
9479
9480 ALTER TABLE ONLY error_rate ALTER COLUMN request_id SET DEFAULT nextval('error_rate_request_id_seq'::regclass);
9481
9482
9483 --
9484--- Name: moduleid; Type: DEFAULT; Schema: myury; Owner: myradio
9485+-- Name: columnid; Type: DEFAULT; Schema: myury; Owner: web
9486+--
9487+
9488+ALTER TABLE ONLY menu_columns ALTER COLUMN columnid SET DEFAULT nextval('menu_columns_columnid_seq'::regclass);
9489+
9490+
9491+--
9492+-- Name: itemid; Type: DEFAULT; Schema: myury; Owner: web
9493+--
9494+
9495+ALTER TABLE ONLY menu_links ALTER COLUMN itemid SET DEFAULT nextval('menu_links_itemid_seq'::regclass);
9496+
9497+
9498+--
9499+-- Name: menumoduleid; Type: DEFAULT; Schema: myury; Owner: web
9500+--
9501+
9502+ALTER TABLE ONLY menu_module ALTER COLUMN menumoduleid SET DEFAULT nextval('menu_module_menumoduleid_seq'::regclass);
9503+
9504+
9505+--
9506+-- Name: sectionid; Type: DEFAULT; Schema: myury; Owner: web
9507+--
9508+
9509+ALTER TABLE ONLY menu_sections ALTER COLUMN sectionid SET DEFAULT nextval('menu_sections_sectionid_seq'::regclass);
9510+
9511+
9512+--
9513+-- Name: twigitemid; Type: DEFAULT; Schema: myury; Owner: web
9514+--
9515+
9516+ALTER TABLE ONLY menu_twigitems ALTER COLUMN twigitemid SET DEFAULT nextval('menu_twigitems_twigitemid_seq'::regclass);
9517+
9518+
9519+--
9520+-- Name: moduleid; Type: DEFAULT; Schema: myury; Owner: web
9521 --
9522
9523 ALTER TABLE ONLY modules ALTER COLUMN moduleid SET DEFAULT nextval('modules_moduleid_seq'::regclass);
9524
9525
9526 --
9527--- Name: photoid; Type: DEFAULT; Schema: myury; Owner: myradio
9528+-- Name: photoid; Type: DEFAULT; Schema: myury; Owner: web
9529 --
9530
9531 ALTER TABLE ONLY photos ALTER COLUMN photoid SET DEFAULT nextval('photos_photoid_seq'::regclass);
9532
9533
9534 --
9535--- Name: serviceid; Type: DEFAULT; Schema: myury; Owner: myradio
9536+-- Name: serviceid; Type: DEFAULT; Schema: myury; Owner: web
9537 --
9538
9539 ALTER TABLE ONLY services ALTER COLUMN serviceid SET DEFAULT nextval('services_serviceid_seq'::regclass);
9540
9541
9542 --
9543--- Name: serviceversionid; Type: DEFAULT; Schema: myury; Owner: myradio
9544+-- Name: serviceversionid; Type: DEFAULT; Schema: myury; Owner: web
9545 --
9546
9547 ALTER TABLE ONLY services_versions ALTER COLUMN serviceversionid SET DEFAULT nextval('services_versions_serviceversionid_seq'::regclass);
9548@@ -7645,56 +9080,56 @@
9549 SET search_path = people, pg_catalog;
9550
9551 --
9552--- Name: credit_type_id; Type: DEFAULT; Schema: people; Owner: myradio
9553+-- Name: credit_type_id; Type: DEFAULT; Schema: people; Owner: web
9554 --
9555
9556 ALTER TABLE ONLY credit_type ALTER COLUMN credit_type_id SET DEFAULT nextval('"schedule.showcredittype_id_seq"'::regclass);
9557
9558
9559 --
9560--- Name: group_root_role_id; Type: DEFAULT; Schema: people; Owner: myradio
9561+-- Name: group_root_role_id; Type: DEFAULT; Schema: people; Owner: pgsql
9562 --
9563
9564 ALTER TABLE ONLY group_root_role ALTER COLUMN group_root_role_id SET DEFAULT nextval('group_root_role_group_root_role_id_seq'::regclass);
9565
9566
9567 --
9568--- Name: group_type_id; Type: DEFAULT; Schema: people; Owner: myradio
9569+-- Name: group_type_id; Type: DEFAULT; Schema: people; Owner: pgsql
9570 --
9571
9572 ALTER TABLE ONLY group_type ALTER COLUMN group_type_id SET DEFAULT nextval('group_type_group_type_id_seq'::regclass);
9573
9574
9575 --
9576--- Name: quote_id; Type: DEFAULT; Schema: people; Owner: myradio
9577+-- Name: quote_id; Type: DEFAULT; Schema: people; Owner: web
9578 --
9579
9580 ALTER TABLE ONLY quote ALTER COLUMN quote_id SET DEFAULT nextval('quote_quote_id_seq'::regclass);
9581
9582
9583 --
9584--- Name: role_id; Type: DEFAULT; Schema: people; Owner: myradio
9585+-- Name: role_id; Type: DEFAULT; Schema: people; Owner: web
9586 --
9587
9588 ALTER TABLE ONLY role ALTER COLUMN role_id SET DEFAULT nextval('roles_id_seq'::regclass);
9589
9590
9591 --
9592--- Name: role_inheritance_id; Type: DEFAULT; Schema: people; Owner: myradio
9593+-- Name: role_inheritance_id; Type: DEFAULT; Schema: people; Owner: web
9594 --
9595
9596 ALTER TABLE ONLY role_inheritance ALTER COLUMN role_inheritance_id SET DEFAULT nextval('role_inheritance_role_inheritance_id_seq'::regclass);
9597
9598
9599 --
9600--- Name: role_text_metadata_id; Type: DEFAULT; Schema: people; Owner: myradio
9601+-- Name: role_text_metadata_id; Type: DEFAULT; Schema: people; Owner: web
9602 --
9603
9604 ALTER TABLE ONLY role_text_metadata ALTER COLUMN role_text_metadata_id SET DEFAULT nextval('role_metadata_role_metadata_id_seq'::regclass);
9605
9606
9607 --
9608--- Name: role_visibility_id; Type: DEFAULT; Schema: people; Owner: myradio
9609+-- Name: role_visibility_id; Type: DEFAULT; Schema: people; Owner: web
9610 --
9611
9612 ALTER TABLE ONLY role_visibility ALTER COLUMN role_visibility_id SET DEFAULT nextval('types_id_seq'::regclass);
9613@@ -7703,408 +9138,410 @@
9614 SET search_path = public, pg_catalog;
9615
9616 --
9617--- Name: privilegeid; Type: DEFAULT; Schema: public; Owner: myradio
9618---
9619-
9620-ALTER TABLE ONLY acl_member ALTER COLUMN privilegeid SET DEFAULT nextval('acl_member_privilegeid_seq'::regclass);
9621-
9622-
9623---
9624--- Name: id; Type: DEFAULT; Schema: public; Owner: myradio
9625+-- Name: id; Type: DEFAULT; Schema: public; Owner: django
9626 --
9627
9628 ALTER TABLE ONLY auth_group ALTER COLUMN id SET DEFAULT nextval('auth_group_id_seq'::regclass);
9629
9630
9631 --
9632--- Name: id; Type: DEFAULT; Schema: public; Owner: myradio
9633---
9634-
9635-ALTER TABLE ONLY auth_permission ALTER COLUMN id SET DEFAULT nextval('auth_permission_id_seq'::regclass);
9636-
9637-
9638---
9639--- Name: id; Type: DEFAULT; Schema: public; Owner: myradio
9640+-- Name: id; Type: DEFAULT; Schema: public; Owner: django
9641 --
9642
9643 ALTER TABLE ONLY auth_user ALTER COLUMN id SET DEFAULT nextval('auth_user_id_seq'::regclass);
9644
9645
9646 --
9647--- Name: id; Type: DEFAULT; Schema: public; Owner: myradio
9648+-- Name: id; Type: DEFAULT; Schema: public; Owner: django
9649 --
9650
9651 ALTER TABLE ONLY auth_user_groups ALTER COLUMN id SET DEFAULT nextval('auth_user_groups_id_seq'::regclass);
9652
9653
9654 --
9655--- Name: audioid; Type: DEFAULT; Schema: public; Owner: myradio
9656+-- Name: audioid; Type: DEFAULT; Schema: public; Owner: web
9657 --
9658
9659 ALTER TABLE ONLY baps_audio ALTER COLUMN audioid SET DEFAULT nextval('baps_audio_audioid_seq'::regclass);
9660
9661
9662 --
9663--- Name: audiologid; Type: DEFAULT; Schema: public; Owner: myradio
9664+-- Name: audiologid; Type: DEFAULT; Schema: public; Owner: web
9665 --
9666
9667 ALTER TABLE ONLY baps_audiolog ALTER COLUMN audiologid SET DEFAULT nextval('baps_audiolog_audiologid_seq'::regclass);
9668
9669
9670 --
9671--- Name: filefolderid; Type: DEFAULT; Schema: public; Owner: myradio
9672+-- Name: filefolderid; Type: DEFAULT; Schema: public; Owner: web
9673 --
9674
9675 ALTER TABLE ONLY baps_filefolder ALTER COLUMN filefolderid SET DEFAULT nextval('baps_filefolder_filefolderid_seq'::regclass);
9676
9677
9678 --
9679--- Name: fileitemid; Type: DEFAULT; Schema: public; Owner: myradio
9680+-- Name: fileitemid; Type: DEFAULT; Schema: public; Owner: web
9681 --
9682
9683 ALTER TABLE ONLY baps_fileitem ALTER COLUMN fileitemid SET DEFAULT nextval('baps_fileitem_fileitemid_seq'::regclass);
9684
9685
9686 --
9687--- Name: itemid; Type: DEFAULT; Schema: public; Owner: myradio
9688+-- Name: itemid; Type: DEFAULT; Schema: public; Owner: web
9689 --
9690
9691 ALTER TABLE ONLY baps_item ALTER COLUMN itemid SET DEFAULT nextval('baps_item_itemid_seq'::regclass);
9692
9693
9694 --
9695--- Name: libraryitemid; Type: DEFAULT; Schema: public; Owner: myradio
9696+-- Name: libraryitemid; Type: DEFAULT; Schema: public; Owner: web
9697 --
9698
9699 ALTER TABLE ONLY baps_libraryitem ALTER COLUMN libraryitemid SET DEFAULT nextval('baps_libraryitem_libraryitemid_seq'::regclass);
9700
9701
9702 --
9703--- Name: listingid; Type: DEFAULT; Schema: public; Owner: myradio
9704+-- Name: listingid; Type: DEFAULT; Schema: public; Owner: web
9705 --
9706
9707 ALTER TABLE ONLY baps_listing ALTER COLUMN listingid SET DEFAULT nextval('baps_listing_listingid_seq'::regclass);
9708
9709
9710 --
9711--- Name: serverid; Type: DEFAULT; Schema: public; Owner: myradio
9712+-- Name: serverid; Type: DEFAULT; Schema: public; Owner: web
9713 --
9714
9715 ALTER TABLE ONLY baps_server ALTER COLUMN serverid SET DEFAULT nextval('baps_server_serverid_seq'::regclass);
9716
9717
9718 --
9719--- Name: showid; Type: DEFAULT; Schema: public; Owner: myradio
9720+-- Name: showid; Type: DEFAULT; Schema: public; Owner: web
9721 --
9722
9723 ALTER TABLE ONLY baps_show ALTER COLUMN showid SET DEFAULT nextval('baps_show_showid_seq'::regclass);
9724
9725
9726 --
9727--- Name: textitemid; Type: DEFAULT; Schema: public; Owner: myradio
9728+-- Name: textitemid; Type: DEFAULT; Schema: public; Owner: web
9729 --
9730
9731 ALTER TABLE ONLY baps_textitem ALTER COLUMN textitemid SET DEFAULT nextval('baps_textitem_textitemid_seq'::regclass);
9732
9733
9734 --
9735--- Name: userid; Type: DEFAULT; Schema: public; Owner: myradio
9736+-- Name: userid; Type: DEFAULT; Schema: public; Owner: web
9737 --
9738
9739 ALTER TABLE ONLY baps_user ALTER COLUMN userid SET DEFAULT nextval('baps_user_userid_seq'::regclass);
9740
9741
9742 --
9743--- Name: userexternalid; Type: DEFAULT; Schema: public; Owner: myradio
9744+-- Name: userexternalid; Type: DEFAULT; Schema: public; Owner: web
9745 --
9746
9747 ALTER TABLE ONLY baps_user_external ALTER COLUMN userexternalid SET DEFAULT nextval('baps_user_external_userexternalid_seq'::regclass);
9748
9749
9750 --
9751--- Name: userfilefolderid; Type: DEFAULT; Schema: public; Owner: myradio
9752+-- Name: userfilefolderid; Type: DEFAULT; Schema: public; Owner: web
9753 --
9754
9755 ALTER TABLE ONLY baps_user_filefolder ALTER COLUMN userfilefolderid SET DEFAULT nextval('baps_user_filefolder_userfilefolderid_seq'::regclass);
9756
9757
9758 --
9759--- Name: clientid; Type: DEFAULT; Schema: public; Owner: myradio
9760---
9761-
9762-ALTER TABLE ONLY client ALTER COLUMN clientid SET DEFAULT nextval('client_clientid_seq'::regclass);
9763-
9764-
9765---
9766--- Name: scopeid; Type: DEFAULT; Schema: public; Owner: myradio
9767---
9768-
9769-ALTER TABLE ONLY constants_acl_scope ALTER COLUMN scopeid SET DEFAULT nextval('constants_acl_scope_scopeid_seq'::regclass);
9770-
9771-
9772---
9773--- Name: feedid; Type: DEFAULT; Schema: public; Owner: myradio
9774+-- Name: feedid; Type: DEFAULT; Schema: public; Owner: web
9775 --
9776
9777 ALTER TABLE ONLY l_newsfeed ALTER COLUMN feedid SET DEFAULT nextval('l_newsfeeds_feedid_seq'::regclass);
9778
9779
9780 --
9781--- Name: presenterstatusid; Type: DEFAULT; Schema: public; Owner: myradio
9782+-- Name: presenterstatusid; Type: DEFAULT; Schema: public; Owner: web
9783 --
9784
9785 ALTER TABLE ONLY l_presenterstatus ALTER COLUMN presenterstatusid SET DEFAULT nextval('l_presenterstatus_presenterstatusid_seq'::regclass);
9786
9787
9788 --
9789--- Name: aliasid; Type: DEFAULT; Schema: public; Owner: myradio
9790+-- Name: aliasid; Type: DEFAULT; Schema: public; Owner: web
9791 --
9792
9793 ALTER TABLE ONLY mail_alias_text ALTER COLUMN aliasid SET DEFAULT nextval('mail_aliasid_seq'::regclass);
9794
9795
9796 --
9797--- Name: listid; Type: DEFAULT; Schema: public; Owner: myradio
9798+-- Name: listid; Type: DEFAULT; Schema: public; Owner: web
9799 --
9800
9801 ALTER TABLE ONLY mail_list ALTER COLUMN listid SET DEFAULT nextval('mail_list_listid_seq'::regclass);
9802
9803
9804 --
9805--- Name: membernewsfeedid; Type: DEFAULT; Schema: public; Owner: myradio
9806+-- Name: membernewsfeedid; Type: DEFAULT; Schema: public; Owner: web
9807 --
9808
9809 ALTER TABLE ONLY member_news_feed ALTER COLUMN membernewsfeedid SET DEFAULT nextval('member_news_feed_membernewsfeedid_seq'::regclass);
9810
9811
9812 --
9813--- Name: memberpresenterstatusid; Type: DEFAULT; Schema: public; Owner: myradio
9814+-- Name: memberpresenterstatusid; Type: DEFAULT; Schema: public; Owner: web
9815 --
9816
9817 ALTER TABLE ONLY member_presenterstatus ALTER COLUMN memberpresenterstatusid SET DEFAULT nextval('member_presenterstatus_memberpresenterstatusid_seq'::regclass);
9818
9819
9820 --
9821--- Name: newsentryid; Type: DEFAULT; Schema: public; Owner: myradio
9822+-- Name: newsentryid; Type: DEFAULT; Schema: public; Owner: web
9823 --
9824
9825 ALTER TABLE ONLY news_feed ALTER COLUMN newsentryid SET DEFAULT nextval('news_feed_newsentryid_seq'::regclass);
9826
9827
9828 --
9829--- Name: correctionid; Type: DEFAULT; Schema: public; Owner: myradio
9830+-- Name: correctionid; Type: DEFAULT; Schema: public; Owner: web
9831 --
9832
9833 ALTER TABLE ONLY rec_trackcorrection ALTER COLUMN correctionid SET DEFAULT nextval('rec_trackcorrection_correctionid_seq'::regclass);
9834
9835
9836 --
9837--- Name: selid; Type: DEFAULT; Schema: public; Owner: myradio
9838+-- Name: proposalid; Type: DEFAULT; Schema: public; Owner: web
9839 --
9840
9841-ALTER TABLE ONLY selector ALTER COLUMN selid SET DEFAULT nextval('selector_selid_seq'::regclass);
9842+ALTER TABLE ONLY rec_trackproposal ALTER COLUMN proposalid SET DEFAULT nextval('rec_trackproposal_proposalid_seq'::regclass);
9843
9844
9845 --
9846--- Name: action; Type: DEFAULT; Schema: public; Owner: myradio
9847+-- Name: entrytypeid; Type: DEFAULT; Schema: public; Owner: web
9848 --
9849
9850-ALTER TABLE ONLY selector_actions ALTER COLUMN action SET DEFAULT nextval('selector_actions_action_seq'::regclass);
9851+ALTER TABLE ONLY sched_entrytype ALTER COLUMN entrytypeid SET DEFAULT nextval('sched_entrytype_entrytypeid_seq'::regclass);
9852
9853
9854 --
9855--- Name: commtypeid; Type: DEFAULT; Schema: public; Owner: myradio
9856+-- Name: musiccategoryid; Type: DEFAULT; Schema: public; Owner: web
9857 --
9858
9859-ALTER TABLE ONLY sis_commtype ALTER COLUMN commtypeid SET DEFAULT nextval('sis_commtype_commtypeid_seq'::regclass);
9860+ALTER TABLE ONLY sched_musiccategory ALTER COLUMN musiccategoryid SET DEFAULT nextval('sched_musiccategory_musiccategoryid_seq'::regclass);
9861
9862
9863 --
9864--- Name: id; Type: DEFAULT; Schema: public; Owner: myradio
9865+-- Name: roomid; Type: DEFAULT; Schema: public; Owner: web
9866 --
9867
9868-ALTER TABLE ONLY sis_piss ALTER COLUMN id SET DEFAULT nextval('sis_piss_id_seq'::regclass);
9869+ALTER TABLE ONLY sched_room ALTER COLUMN roomid SET DEFAULT nextval('sched_room_roomid_seq'::regclass);
9870
9871
9872 --
9873--- Name: statusid; Type: DEFAULT; Schema: public; Owner: myradio
9874+-- Name: speechcategoryid; Type: DEFAULT; Schema: public; Owner: web
9875 --
9876
9877-ALTER TABLE ONLY sis_status ALTER COLUMN statusid SET DEFAULT nextval('sis_status_statusid_seq'::regclass);
9878+ALTER TABLE ONLY sched_speechcategory ALTER COLUMN speechcategoryid SET DEFAULT nextval('sched_speechcategory_speechcategoryid_seq'::regclass);
9879+
9880+
9881+--
9882+-- Name: selid; Type: DEFAULT; Schema: public; Owner: web
9883+--
9884+
9885+ALTER TABLE ONLY selector ALTER COLUMN selid SET DEFAULT nextval('selector_selid_seq'::regclass);
9886
9887
9888 --
9889--- Name: packageid; Type: DEFAULT; Schema: public; Owner: myradio
9890+-- Name: action; Type: DEFAULT; Schema: public; Owner: web
9891 --
9892
9893-ALTER TABLE ONLY site_package ALTER COLUMN packageid SET DEFAULT nextval('site_special_package_packageid_seq'::regclass);
9894+ALTER TABLE ONLY selector_actions ALTER COLUMN action SET DEFAULT nextval('selector_actions_action_seq'::regclass);
9895
9896
9897 --
9898--- Name: id; Type: DEFAULT; Schema: public; Owner: myradio
9899+-- Name: commtypeid; Type: DEFAULT; Schema: public; Owner: web
9900 --
9901
9902-ALTER TABLE ONLY sitetree_tree ALTER COLUMN id SET DEFAULT nextval('sitetree_tree_id_seq'::regclass);
9903+ALTER TABLE ONLY sis_commtype ALTER COLUMN commtypeid SET DEFAULT nextval('sis_commtype_commtypeid_seq'::regclass);
9904
9905
9906 --
9907--- Name: id; Type: DEFAULT; Schema: public; Owner: myradio
9908+-- Name: id; Type: DEFAULT; Schema: public; Owner: web
9909 --
9910
9911-ALTER TABLE ONLY sitetree_treeitem ALTER COLUMN id SET DEFAULT nextval('sitetree_treeitem_id_seq'::regclass);
9912+ALTER TABLE ONLY sis_piss ALTER COLUMN id SET DEFAULT nextval('sis_piss_id_seq'::regclass);
9913
9914
9915 --
9916--- Name: id; Type: DEFAULT; Schema: public; Owner: myradio
9917+-- Name: statusid; Type: DEFAULT; Schema: public; Owner: web
9918 --
9919
9920-ALTER TABLE ONLY sitetree_treeitem_access_permissions ALTER COLUMN id SET DEFAULT nextval('sitetree_treeitem_access_permissions_id_seq'::regclass);
9921+ALTER TABLE ONLY sis_status ALTER COLUMN statusid SET DEFAULT nextval('sis_status_statusid_seq'::regclass);
9922
9923
9924 --
9925--- Name: logid; Type: DEFAULT; Schema: public; Owner: myradio
9926+-- Name: logid; Type: DEFAULT; Schema: public; Owner: web
9927 --
9928
9929 ALTER TABLE ONLY strm_log ALTER COLUMN logid SET DEFAULT nextval('strm_log_logid_seq'::regclass);
9930
9931
9932 --
9933--- Name: logfileid; Type: DEFAULT; Schema: public; Owner: myradio
9934+-- Name: logfileid; Type: DEFAULT; Schema: public; Owner: web
9935 --
9936
9937 ALTER TABLE ONLY strm_logfile ALTER COLUMN logfileid SET DEFAULT nextval('strm_logfile_logfileid_seq'::regclass);
9938
9939
9940 --
9941--- Name: streamid; Type: DEFAULT; Schema: public; Owner: myradio
9942+-- Name: streamid; Type: DEFAULT; Schema: public; Owner: web
9943 --
9944
9945 ALTER TABLE ONLY strm_stream ALTER COLUMN streamid SET DEFAULT nextval('strm_stream_streamid_seq'::regclass);
9946
9947
9948 --
9949--- Name: useragentid; Type: DEFAULT; Schema: public; Owner: myradio
9950+-- Name: useragentid; Type: DEFAULT; Schema: public; Owner: web
9951 --
9952
9953 ALTER TABLE ONLY strm_useragent ALTER COLUMN useragentid SET DEFAULT nextval('strm_client_clientid_seq'::regclass);
9954
9955
9956 --
9957--- Name: termid; Type: DEFAULT; Schema: public; Owner: myradio
9958+-- Name: termid; Type: DEFAULT; Schema: public; Owner: web
9959 --
9960
9961 ALTER TABLE ONLY terms ALTER COLUMN termid SET DEFAULT nextval('terms_termid_seq'::regclass);
9962
9963
9964+SET search_path = rapier, pg_catalog;
9965+
9966+--
9967+-- Name: privilegeid; Type: DEFAULT; Schema: rapier; Owner: web
9968+--
9969+
9970+ALTER TABLE ONLY acl_member ALTER COLUMN privilegeid SET DEFAULT nextval('acl_member_privilegeid_seq'::regclass);
9971+
9972+
9973+--
9974+-- Name: clientid; Type: DEFAULT; Schema: rapier; Owner: web
9975+--
9976+
9977+ALTER TABLE ONLY client ALTER COLUMN clientid SET DEFAULT nextval('client_clientid_seq'::regclass);
9978+
9979+
9980+--
9981+-- Name: scopeid; Type: DEFAULT; Schema: rapier; Owner: web
9982+--
9983+
9984+ALTER TABLE ONLY constants_acl_scope ALTER COLUMN scopeid SET DEFAULT nextval('constants_acl_scope_scopeid_seq'::regclass);
9985+
9986+
9987 SET search_path = schedule, pg_catalog;
9988
9989 --
9990--- Name: block_id; Type: DEFAULT; Schema: schedule; Owner: myradio
9991+-- Name: block_id; Type: DEFAULT; Schema: schedule; Owner: web
9992 --
9993
9994 ALTER TABLE ONLY block ALTER COLUMN block_id SET DEFAULT nextval('blocks_id_seq'::regclass);
9995
9996
9997 --
9998--- Name: block_range_rule_id; Type: DEFAULT; Schema: schedule; Owner: myradio
9999+-- Name: block_range_rule_id; Type: DEFAULT; Schema: schedule; Owner: web
10000 --
10001
10002 ALTER TABLE ONLY block_range_rule ALTER COLUMN block_range_rule_id SET DEFAULT nextval('block_range_rule_block_range_rule_id_seq'::regclass);
10003
10004
10005 --
10006--- Name: genre_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10007+-- Name: genre_id; Type: DEFAULT; Schema: schedule; Owner: web
10008 --
10009
10010 ALTER TABLE ONLY genre ALTER COLUMN genre_id SET DEFAULT nextval('genre_genre_id_seq'::regclass);
10011
10012
10013 --
10014--- Name: location_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10015+-- Name: location_id; Type: DEFAULT; Schema: schedule; Owner: web
10016 --
10017
10018 ALTER TABLE ONLY location ALTER COLUMN location_id SET DEFAULT nextval('location_location_id_seq'::regclass);
10019
10020
10021 --
10022--- Name: show_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10023+-- Name: show_id; Type: DEFAULT; Schema: schedule; Owner: web
10024 --
10025
10026 ALTER TABLE ONLY show ALTER COLUMN show_id SET DEFAULT nextval('show_show_id_seq'::regclass);
10027
10028
10029 --
10030--- Name: show_credit_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10031+-- Name: show_credit_id; Type: DEFAULT; Schema: schedule; Owner: web
10032 --
10033
10034 ALTER TABLE ONLY show_credit ALTER COLUMN show_credit_id SET DEFAULT nextval('show_credit_show_credit_id_seq'::regclass);
10035
10036
10037 --
10038--- Name: show_genre_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10039+-- Name: show_genre_id; Type: DEFAULT; Schema: schedule; Owner: web
10040 --
10041
10042 ALTER TABLE ONLY show_genre ALTER COLUMN show_genre_id SET DEFAULT nextval('show_genre_show_genre_id_seq'::regclass);
10043
10044
10045 --
10046--- Name: show_image_metadata_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10047+-- Name: show_image_metadata_id; Type: DEFAULT; Schema: schedule; Owner: django
10048 --
10049
10050 ALTER TABLE ONLY show_image_metadata ALTER COLUMN show_image_metadata_id SET DEFAULT nextval('show_image_metadata_show_image_metadata_id_seq'::regclass);
10051
10052
10053 --
10054--- Name: show_location_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10055+-- Name: show_location_id; Type: DEFAULT; Schema: schedule; Owner: web
10056 --
10057
10058 ALTER TABLE ONLY show_location ALTER COLUMN show_location_id SET DEFAULT nextval('show_location_show_location_id_seq'::regclass);
10059
10060
10061 --
10062--- Name: show_metadata_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10063+-- Name: show_metadata_id; Type: DEFAULT; Schema: schedule; Owner: web
10064 --
10065
10066 ALTER TABLE ONLY show_metadata ALTER COLUMN show_metadata_id SET DEFAULT nextval('show_metadata_show_metadata_id_seq'::regclass);
10067
10068
10069 --
10070--- Name: show_season_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10071+-- Name: show_season_id; Type: DEFAULT; Schema: schedule; Owner: web
10072 --
10073
10074 ALTER TABLE ONLY show_season ALTER COLUMN show_season_id SET DEFAULT nextval('show_season_show_season_id_seq'::regclass);
10075
10076
10077 --
10078--- Name: show_season_requested_time_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10079+-- Name: show_season_requested_time_id; Type: DEFAULT; Schema: schedule; Owner: web
10080 --
10081
10082 ALTER TABLE ONLY show_season_requested_time ALTER COLUMN show_season_requested_time_id SET DEFAULT nextval('show_season_requested_time_show_season_requested_time_id_seq'::regclass);
10083
10084
10085 --
10086--- Name: show_season_requested_week_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10087+-- Name: show_season_requested_week_id; Type: DEFAULT; Schema: schedule; Owner: web
10088 --
10089
10090 ALTER TABLE ONLY show_season_requested_week ALTER COLUMN show_season_requested_week_id SET DEFAULT nextval('show_season_requested_week_show_season_requested_week_id_seq'::regclass);
10091
10092
10093 --
10094--- Name: show_season_timeslot_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10095+-- Name: show_season_timeslot_id; Type: DEFAULT; Schema: schedule; Owner: web
10096 --
10097
10098 ALTER TABLE ONLY show_season_timeslot ALTER COLUMN show_season_timeslot_id SET DEFAULT nextval('show_season_timeslot_show_season_timeslot_id_seq'::regclass);
10099
10100
10101 --
10102--- Name: show_type_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10103+-- Name: show_type_id; Type: DEFAULT; Schema: schedule; Owner: web
10104 --
10105
10106 ALTER TABLE ONLY show_type ALTER COLUMN show_type_id SET DEFAULT nextval('show_type_show_type_id_seq'::regclass);
10107
10108
10109 --
10110--- Name: timeslot_metadata_id; Type: DEFAULT; Schema: schedule; Owner: myradio
10111+-- Name: timeslot_metadata_id; Type: DEFAULT; Schema: schedule; Owner: web
10112 --
10113
10114 ALTER TABLE ONLY timeslot_metadata ALTER COLUMN timeslot_metadata_id SET DEFAULT nextval('timeslot_metadata_timeslot_metadata_id_seq'::regclass);
10115@@ -8113,23 +9550,67 @@
10116 SET search_path = sis2, pg_catalog;
10117
10118 --
10119--- Name: member_signin_id; Type: DEFAULT; Schema: sis2; Owner: myradio
10120+-- Name: member_signin_id; Type: DEFAULT; Schema: sis2; Owner: web
10121 --
10122
10123 ALTER TABLE ONLY member_signin ALTER COLUMN member_signin_id SET DEFAULT nextval('member_signin_member_signin_id_seq'::regclass);
10124
10125
10126 --
10127--- Name: commid; Type: DEFAULT; Schema: sis2; Owner: myradio
10128+-- Name: commid; Type: DEFAULT; Schema: sis2; Owner: web
10129 --
10130
10131 ALTER TABLE ONLY messages ALTER COLUMN commid SET DEFAULT nextval('messages_commid_seq'::regclass);
10132
10133
10134+SET search_path = smsd, pg_catalog;
10135+
10136+--
10137+-- Name: ID; Type: DEFAULT; Schema: smsd; Owner: xsms
10138+--
10139+
10140+ALTER TABLE ONLY inbox ALTER COLUMN "ID" SET DEFAULT nextval('"inbox_ID_seq"'::regclass);
10141+
10142+
10143+--
10144+-- Name: ID; Type: DEFAULT; Schema: smsd; Owner: xsms
10145+--
10146+
10147+ALTER TABLE ONLY outbox ALTER COLUMN "ID" SET DEFAULT nextval('"outbox_ID_seq"'::regclass);
10148+
10149+
10150+--
10151+-- Name: ID; Type: DEFAULT; Schema: smsd; Owner: xsms
10152+--
10153+
10154+ALTER TABLE ONLY outbox_multipart ALTER COLUMN "ID" SET DEFAULT nextval('"outbox_multipart_ID_seq"'::regclass);
10155+
10156+
10157+--
10158+-- Name: ID; Type: DEFAULT; Schema: smsd; Owner: xsms
10159+--
10160+
10161+ALTER TABLE ONLY pbk ALTER COLUMN "ID" SET DEFAULT nextval('"pbk_ID_seq"'::regclass);
10162+
10163+
10164+--
10165+-- Name: ID; Type: DEFAULT; Schema: smsd; Owner: xsms
10166+--
10167+
10168+ALTER TABLE ONLY pbk_groups ALTER COLUMN "ID" SET DEFAULT nextval('"pbk_groups_ID_seq"'::regclass);
10169+
10170+
10171+--
10172+-- Name: ID; Type: DEFAULT; Schema: smsd; Owner: xsms
10173+--
10174+
10175+ALTER TABLE ONLY sentitems ALTER COLUMN "ID" SET DEFAULT nextval('"sentitems_ID_seq"'::regclass);
10176+
10177+
10178 SET search_path = tracklist, pg_catalog;
10179
10180 --
10181--- Name: audiologid; Type: DEFAULT; Schema: tracklist; Owner: myradio
10182+-- Name: audiologid; Type: DEFAULT; Schema: tracklist; Owner: web
10183 --
10184
10185 ALTER TABLE ONLY tracklist ALTER COLUMN audiologid SET DEFAULT nextval('tracklist_audiologid_seq'::regclass);
10186@@ -8138,35 +9619,35 @@
10187 SET search_path = uryplayer, pg_catalog;
10188
10189 --
10190--- Name: podcast_id; Type: DEFAULT; Schema: uryplayer; Owner: myradio
10191+-- Name: podcast_id; Type: DEFAULT; Schema: uryplayer; Owner: django
10192 --
10193
10194 ALTER TABLE ONLY podcast ALTER COLUMN podcast_id SET DEFAULT nextval('podcast_podcast_id_seq'::regclass);
10195
10196
10197 --
10198--- Name: podcast_credit_id; Type: DEFAULT; Schema: uryplayer; Owner: myradio
10199+-- Name: podcast_credit_id; Type: DEFAULT; Schema: uryplayer; Owner: django
10200 --
10201
10202 ALTER TABLE ONLY podcast_credit ALTER COLUMN podcast_credit_id SET DEFAULT nextval('podcast_credit_podcast_credit_id_seq'::regclass);
10203
10204
10205 --
10206--- Name: podcast_image_metadata_id; Type: DEFAULT; Schema: uryplayer; Owner: myradio
10207+-- Name: podcast_image_metadata_id; Type: DEFAULT; Schema: uryplayer; Owner: django
10208 --
10209
10210 ALTER TABLE ONLY podcast_image_metadata ALTER COLUMN podcast_image_metadata_id SET DEFAULT nextval('podcast_image_metadata_podcast_image_metadata_id_seq'::regclass);
10211
10212
10213 --
10214--- Name: podcast_metadata_id; Type: DEFAULT; Schema: uryplayer; Owner: myradio
10215+-- Name: podcast_metadata_id; Type: DEFAULT; Schema: uryplayer; Owner: django
10216 --
10217
10218 ALTER TABLE ONLY podcast_metadata ALTER COLUMN podcast_metadata_id SET DEFAULT nextval('podcast_metadata_podcast_metadata_id_seq'::regclass);
10219
10220
10221 --
10222--- Name: podcast_package_entry_id; Type: DEFAULT; Schema: uryplayer; Owner: myradio
10223+-- Name: podcast_package_entry_id; Type: DEFAULT; Schema: uryplayer; Owner: django
10224 --
10225
10226 ALTER TABLE ONLY podcast_package_entry ALTER COLUMN podcast_package_entry_id SET DEFAULT nextval('podcast_package_entry_podcast_package_entry_id_seq'::regclass);
10227@@ -8175,7 +9656,7 @@
10228 SET search_path = webcam, pg_catalog;
10229
10230 --
10231--- Name: streamid; Type: DEFAULT; Schema: webcam; Owner: myradio
10232+-- Name: streamid; Type: DEFAULT; Schema: webcam; Owner: web
10233 --
10234
10235 ALTER TABLE ONLY streams ALTER COLUMN streamid SET DEFAULT nextval('streams_streamid_seq'::regclass);
10236@@ -8184,35 +9665,35 @@
10237 SET search_path = website, pg_catalog;
10238
10239 --
10240--- Name: banner_id; Type: DEFAULT; Schema: website; Owner: myradio
10241+-- Name: banner_id; Type: DEFAULT; Schema: website; Owner: web
10242 --
10243
10244 ALTER TABLE ONLY banner ALTER COLUMN banner_id SET DEFAULT nextval('banner_banner_id_seq'::regclass);
10245
10246
10247 --
10248--- Name: banner_campaign_id; Type: DEFAULT; Schema: website; Owner: myradio
10249+-- Name: banner_campaign_id; Type: DEFAULT; Schema: website; Owner: django
10250 --
10251
10252 ALTER TABLE ONLY banner_campaign ALTER COLUMN banner_campaign_id SET DEFAULT nextval('banner_campaign_banner_campaign_id_seq'::regclass);
10253
10254
10255 --
10256--- Name: banner_location_id; Type: DEFAULT; Schema: website; Owner: myradio
10257+-- Name: banner_location_id; Type: DEFAULT; Schema: website; Owner: django
10258 --
10259
10260 ALTER TABLE ONLY banner_location ALTER COLUMN banner_location_id SET DEFAULT nextval('banner_location_banner_location_id_seq'::regclass);
10261
10262
10263 --
10264--- Name: id; Type: DEFAULT; Schema: website; Owner: myradio
10265+-- Name: id; Type: DEFAULT; Schema: website; Owner: web
10266 --
10267
10268 ALTER TABLE ONLY banner_timeslot ALTER COLUMN id SET DEFAULT nextval('banner_timeslot_id_seq'::regclass);
10269
10270
10271 --
10272--- Name: banner_type_id; Type: DEFAULT; Schema: website; Owner: myradio
10273+-- Name: banner_type_id; Type: DEFAULT; Schema: website; Owner: django
10274 --
10275
10276 ALTER TABLE ONLY banner_type ALTER COLUMN banner_type_id SET DEFAULT nextval('banner_type_banner_type_id_seq'::regclass);
10277@@ -8221,7 +9702,7 @@
10278 SET search_path = bapsplanner, pg_catalog;
10279
10280 --
10281--- Name: auto_playlists_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: myradio; Tablespace:
10282+-- Name: auto_playlists_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: postgres
10283 --
10284
10285 ALTER TABLE ONLY auto_playlists
10286@@ -8229,7 +9710,7 @@
10287
10288
10289 --
10290--- Name: client_ids_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: myradio; Tablespace:
10291+-- Name: client_ids_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: web
10292 --
10293
10294 ALTER TABLE ONLY client_ids
10295@@ -8237,7 +9718,7 @@
10296
10297
10298 --
10299--- Name: managed_items_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: myradio; Tablespace:
10300+-- Name: managed_items_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: web
10301 --
10302
10303 ALTER TABLE ONLY managed_items
10304@@ -8245,7 +9726,7 @@
10305
10306
10307 --
10308--- Name: managed_playlists_folder_key; Type: CONSTRAINT; Schema: bapsplanner; Owner: myradio; Tablespace:
10309+-- Name: managed_playlists_folder_key; Type: CONSTRAINT; Schema: bapsplanner; Owner: web
10310 --
10311
10312 ALTER TABLE ONLY managed_playlists
10313@@ -8253,7 +9734,7 @@
10314
10315
10316 --
10317--- Name: managed_playlists_name_key; Type: CONSTRAINT; Schema: bapsplanner; Owner: myradio; Tablespace:
10318+-- Name: managed_playlists_name_key; Type: CONSTRAINT; Schema: bapsplanner; Owner: web
10319 --
10320
10321 ALTER TABLE ONLY managed_playlists
10322@@ -8261,7 +9742,7 @@
10323
10324
10325 --
10326--- Name: managed_playlists_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: myradio; Tablespace:
10327+-- Name: managed_playlists_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: web
10328 --
10329
10330 ALTER TABLE ONLY managed_playlists
10331@@ -8269,7 +9750,7 @@
10332
10333
10334 --
10335--- Name: secure_play_token_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: myradio; Tablespace:
10336+-- Name: secure_play_token_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: web
10337 --
10338
10339 ALTER TABLE ONLY secure_play_token
10340@@ -8277,7 +9758,7 @@
10341
10342
10343 --
10344--- Name: timeslot_change_ops_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: myradio; Tablespace:
10345+-- Name: timeslot_change_ops_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: web
10346 --
10347
10348 ALTER TABLE ONLY timeslot_change_ops
10349@@ -8285,17 +9766,43 @@
10350
10351
10352 --
10353--- Name: timeslot_items_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: myradio; Tablespace:
10354+-- Name: timeslot_items_pkey; Type: CONSTRAINT; Schema: bapsplanner; Owner: web
10355 --
10356
10357 ALTER TABLE ONLY timeslot_items
10358 ADD CONSTRAINT timeslot_items_pkey PRIMARY KEY (timeslot_item_id);
10359
10360
10361+SET search_path = deploy, pg_catalog;
10362+
10363+--
10364+-- Name: myury_pkey; Type: CONSTRAINT; Schema: deploy; Owner: web
10365+--
10366+
10367+ALTER TABLE ONLY myury
10368+ ADD CONSTRAINT myury_pkey PRIMARY KEY (memberid);
10369+
10370+
10371+--
10372+-- Name: showplanner_pkey; Type: CONSTRAINT; Schema: deploy; Owner: web
10373+--
10374+
10375+ALTER TABLE ONLY showplanner
10376+ ADD CONSTRAINT showplanner_pkey PRIMARY KEY (memberid);
10377+
10378+
10379 SET search_path = jukebox, pg_catalog;
10380
10381 --
10382--- Name: playlist_entries_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: myradio; Tablespace:
10383+-- Name: playlist_availability_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: web
10384+--
10385+
10386+ALTER TABLE ONLY playlist_availability
10387+ ADD CONSTRAINT playlist_availability_pkey PRIMARY KEY (playlist_availability_id);
10388+
10389+
10390+--
10391+-- Name: playlist_entries_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: web
10392 --
10393
10394 ALTER TABLE ONLY playlist_entries
10395@@ -8303,7 +9810,7 @@
10396
10397
10398 --
10399--- Name: playlist_revisions_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: myradio; Tablespace:
10400+-- Name: playlist_revisions_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: web
10401 --
10402
10403 ALTER TABLE ONLY playlist_revisions
10404@@ -8311,7 +9818,7 @@
10405
10406
10407 --
10408--- Name: playlist_timeslot_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: myradio; Tablespace:
10409+-- Name: playlist_timeslot_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: web
10410 --
10411
10412 ALTER TABLE ONLY playlist_timeslot
10413@@ -8319,7 +9826,7 @@
10414
10415
10416 --
10417--- Name: playlists_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: myradio; Tablespace:
10418+-- Name: playlists_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: web
10419 --
10420
10421 ALTER TABLE ONLY playlists
10422@@ -8327,7 +9834,7 @@
10423
10424
10425 --
10426--- Name: request_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: myradio; Tablespace:
10427+-- Name: request_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: web
10428 --
10429
10430 ALTER TABLE ONLY request
10431@@ -8335,7 +9842,7 @@
10432
10433
10434 --
10435--- Name: silence_log_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: myradio; Tablespace:
10436+-- Name: silence_log_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: web
10437 --
10438
10439 ALTER TABLE ONLY silence_log
10440@@ -8343,17 +9850,53 @@
10441
10442
10443 --
10444--- Name: track_blacklist_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: myradio; Tablespace:
10445+-- Name: track_blacklist_pkey; Type: CONSTRAINT; Schema: jukebox; Owner: web
10446 --
10447
10448 ALTER TABLE ONLY track_blacklist
10449 ADD CONSTRAINT track_blacklist_pkey PRIMARY KEY (trackid);
10450
10451
10452+SET search_path = loggerng, pg_catalog;
10453+
10454+--
10455+-- Name: logs_pkey; Type: CONSTRAINT; Schema: loggerng; Owner: web
10456+--
10457+
10458+ALTER TABLE ONLY logs
10459+ ADD CONSTRAINT logs_pkey PRIMARY KEY (start, "end", format);
10460+
10461+
10462+--
10463+-- Name: requests_pkey; Type: CONSTRAINT; Schema: loggerng; Owner: web
10464+--
10465+
10466+ALTER TABLE ONLY requests
10467+ ADD CONSTRAINT requests_pkey PRIMARY KEY ("user", start, "end", format);
10468+
10469+
10470+SET search_path = loggerng_test, pg_catalog;
10471+
10472+--
10473+-- Name: logs_pkey; Type: CONSTRAINT; Schema: loggerng_test; Owner: web
10474+--
10475+
10476+ALTER TABLE ONLY logs
10477+ ADD CONSTRAINT logs_pkey PRIMARY KEY (start, "end", format);
10478+
10479+
10480+--
10481+-- Name: requests_pkey; Type: CONSTRAINT; Schema: loggerng_test; Owner: web
10482+--
10483+
10484+ALTER TABLE ONLY requests
10485+ ADD CONSTRAINT requests_pkey PRIMARY KEY ("user", start, "end", format);
10486+
10487+
10488 SET search_path = mail, pg_catalog;
10489
10490 --
10491--- Name: alias_list_pkey; Type: CONSTRAINT; Schema: mail; Owner: myradio; Tablespace:
10492+-- Name: alias_list_pkey; Type: CONSTRAINT; Schema: mail; Owner: web
10493 --
10494
10495 ALTER TABLE ONLY alias_list
10496@@ -8361,7 +9904,7 @@
10497
10498
10499 --
10500--- Name: alias_member_pkey; Type: CONSTRAINT; Schema: mail; Owner: myradio; Tablespace:
10501+-- Name: alias_member_pkey; Type: CONSTRAINT; Schema: mail; Owner: web
10502 --
10503
10504 ALTER TABLE ONLY alias_member
10505@@ -8369,7 +9912,7 @@
10506
10507
10508 --
10509--- Name: alias_officer_pkey; Type: CONSTRAINT; Schema: mail; Owner: myradio; Tablespace:
10510+-- Name: alias_officer_pkey; Type: CONSTRAINT; Schema: mail; Owner: web
10511 --
10512
10513 ALTER TABLE ONLY alias_officer
10514@@ -8377,7 +9920,7 @@
10515
10516
10517 --
10518--- Name: alias_pkey; Type: CONSTRAINT; Schema: mail; Owner: myradio; Tablespace:
10519+-- Name: alias_pkey; Type: CONSTRAINT; Schema: mail; Owner: web
10520 --
10521
10522 ALTER TABLE ONLY alias
10523@@ -8385,7 +9928,7 @@
10524
10525
10526 --
10527--- Name: alias_source_key; Type: CONSTRAINT; Schema: mail; Owner: myradio; Tablespace:
10528+-- Name: alias_source_key; Type: CONSTRAINT; Schema: mail; Owner: web
10529 --
10530
10531 ALTER TABLE ONLY alias
10532@@ -8393,7 +9936,7 @@
10533
10534
10535 --
10536--- Name: alias_text_pkey; Type: CONSTRAINT; Schema: mail; Owner: myradio; Tablespace:
10537+-- Name: alias_text_pkey; Type: CONSTRAINT; Schema: mail; Owner: web
10538 --
10539
10540 ALTER TABLE ONLY alias_text
10541@@ -8401,7 +9944,7 @@
10542
10543
10544 --
10545--- Name: email_recipient_list_pkey; Type: CONSTRAINT; Schema: mail; Owner: myradio; Tablespace:
10546+-- Name: email_recipient_list_pkey; Type: CONSTRAINT; Schema: mail; Owner: web
10547 --
10548
10549 ALTER TABLE ONLY email_recipient_list
10550@@ -8409,7 +9952,7 @@
10551
10552
10553 --
10554--- Name: email_recipient_user_pkey; Type: CONSTRAINT; Schema: mail; Owner: myradio; Tablespace:
10555+-- Name: email_recipient_user_pkey; Type: CONSTRAINT; Schema: mail; Owner: web
10556 --
10557
10558 ALTER TABLE ONLY email_recipient_member
10559@@ -8417,7 +9960,7 @@
10560
10561
10562 --
10563--- Name: emails_pkey; Type: CONSTRAINT; Schema: mail; Owner: myradio; Tablespace:
10564+-- Name: emails_pkey; Type: CONSTRAINT; Schema: mail; Owner: web
10565 --
10566
10567 ALTER TABLE ONLY email
10568@@ -8427,7 +9970,7 @@
10569 SET search_path = metadata, pg_catalog;
10570
10571 --
10572--- Name: metadata_key_name_key; Type: CONSTRAINT; Schema: metadata; Owner: myradio; Tablespace:
10573+-- Name: metadata_key_name_key; Type: CONSTRAINT; Schema: metadata; Owner: web
10574 --
10575
10576 ALTER TABLE ONLY metadata_key
10577@@ -8435,7 +9978,7 @@
10578
10579
10580 --
10581--- Name: metadata_key_pkey; Type: CONSTRAINT; Schema: metadata; Owner: myradio; Tablespace:
10582+-- Name: metadata_key_pkey; Type: CONSTRAINT; Schema: metadata; Owner: web
10583 --
10584
10585 ALTER TABLE ONLY metadata_key
10586@@ -8443,7 +9986,7 @@
10587
10588
10589 --
10590--- Name: package_image_metadata_pkey; Type: CONSTRAINT; Schema: metadata; Owner: myradio; Tablespace:
10591+-- Name: package_image_metadata_pkey; Type: CONSTRAINT; Schema: metadata; Owner: django
10592 --
10593
10594 ALTER TABLE ONLY package_image_metadata
10595@@ -8451,7 +9994,7 @@
10596
10597
10598 --
10599--- Name: package_pkey; Type: CONSTRAINT; Schema: metadata; Owner: myradio; Tablespace:
10600+-- Name: package_pkey; Type: CONSTRAINT; Schema: metadata; Owner: django
10601 --
10602
10603 ALTER TABLE ONLY package
10604@@ -8459,7 +10002,7 @@
10605
10606
10607 --
10608--- Name: package_text_metadata_pkey; Type: CONSTRAINT; Schema: metadata; Owner: myradio; Tablespace:
10609+-- Name: package_text_metadata_pkey; Type: CONSTRAINT; Schema: metadata; Owner: django
10610 --
10611
10612 ALTER TABLE ONLY package_text_metadata
10613@@ -8469,7 +10012,7 @@
10614 SET search_path = music, pg_catalog;
10615
10616 --
10617--- Name: chart_release_pkey; Type: CONSTRAINT; Schema: music; Owner: myradio; Tablespace:
10618+-- Name: chart_release_pkey; Type: CONSTRAINT; Schema: music; Owner: django
10619 --
10620
10621 ALTER TABLE ONLY chart_release
10622@@ -8477,7 +10020,7 @@
10623
10624
10625 --
10626--- Name: chart_row_chart_row_id_key; Type: CONSTRAINT; Schema: music; Owner: myradio; Tablespace:
10627+-- Name: chart_row_chart_row_id_key; Type: CONSTRAINT; Schema: music; Owner: django
10628 --
10629
10630 ALTER TABLE ONLY chart_row
10631@@ -8485,7 +10028,7 @@
10632
10633
10634 --
10635--- Name: chart_row_pkey; Type: CONSTRAINT; Schema: music; Owner: myradio; Tablespace:
10636+-- Name: chart_row_pkey; Type: CONSTRAINT; Schema: music; Owner: django
10637 --
10638
10639 ALTER TABLE ONLY chart_row
10640@@ -8493,7 +10036,7 @@
10641
10642
10643 --
10644--- Name: chart_type_pkey; Type: CONSTRAINT; Schema: music; Owner: myradio; Tablespace:
10645+-- Name: chart_type_pkey; Type: CONSTRAINT; Schema: music; Owner: django
10646 --
10647
10648 ALTER TABLE ONLY chart_type
10649@@ -8501,7 +10044,7 @@
10650
10651
10652 --
10653--- Name: explicit_checked_pkey; Type: CONSTRAINT; Schema: music; Owner: myradio; Tablespace:
10654+-- Name: explicit_checked_pkey; Type: CONSTRAINT; Schema: music; Owner: web
10655 --
10656
10657 ALTER TABLE ONLY explicit_checked
10658@@ -8511,7 +10054,7 @@
10659 SET search_path = myradio, pg_catalog;
10660
10661 --
10662--- Name: schema_pkey; Type: CONSTRAINT; Schema: myradio; Owner: myradio; Tablespace:
10663+-- Name: schema_pkey; Type: CONSTRAINT; Schema: myradio; Owner: web
10664 --
10665
10666 ALTER TABLE ONLY schema
10667@@ -8521,7 +10064,7 @@
10668 SET search_path = myury, pg_catalog;
10669
10670 --
10671--- Name: act_permission_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10672+-- Name: act_permission_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10673 --
10674
10675 ALTER TABLE ONLY act_permission
10676@@ -8529,7 +10072,7 @@
10677
10678
10679 --
10680--- Name: act_permission_serviceid_key; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10681+-- Name: act_permission_serviceid_key; Type: CONSTRAINT; Schema: myury; Owner: web
10682 --
10683
10684 ALTER TABLE ONLY act_permission
10685@@ -8537,7 +10080,7 @@
10686
10687
10688 --
10689--- Name: actions_moduleid_key; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10690+-- Name: actions_moduleid_key; Type: CONSTRAINT; Schema: myury; Owner: web
10691 --
10692
10693 ALTER TABLE ONLY actions
10694@@ -8545,7 +10088,7 @@
10695
10696
10697 --
10698--- Name: actions_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10699+-- Name: actions_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10700 --
10701
10702 ALTER TABLE ONLY actions
10703@@ -8553,7 +10096,7 @@
10704
10705
10706 --
10707--- Name: api_class_map_api_name_key; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10708+-- Name: api_class_map_api_name_key; Type: CONSTRAINT; Schema: myury; Owner: web
10709 --
10710
10711 ALTER TABLE ONLY api_class_map
10712@@ -8561,7 +10104,7 @@
10713
10714
10715 --
10716--- Name: api_class_map_class_name_key; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10717+-- Name: api_class_map_class_name_key; Type: CONSTRAINT; Schema: myury; Owner: web
10718 --
10719
10720 ALTER TABLE ONLY api_class_map
10721@@ -8569,7 +10112,7 @@
10722
10723
10724 --
10725--- Name: api_class_map_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10726+-- Name: api_class_map_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10727 --
10728
10729 ALTER TABLE ONLY api_class_map
10730@@ -8577,7 +10120,7 @@
10731
10732
10733 --
10734--- Name: api_key_auth_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10735+-- Name: api_key_auth_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10736 --
10737
10738 ALTER TABLE ONLY api_key_auth
10739@@ -8585,7 +10128,7 @@
10740
10741
10742 --
10743--- Name: api_key_log_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10744+-- Name: api_key_log_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10745 --
10746
10747 ALTER TABLE ONLY api_key_log
10748@@ -8593,7 +10136,7 @@
10749
10750
10751 --
10752--- Name: api_key_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10753+-- Name: api_key_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10754 --
10755
10756 ALTER TABLE ONLY api_key
10757@@ -8601,7 +10144,7 @@
10758
10759
10760 --
10761--- Name: api_method_auth_class_name_method_name_typeid_key; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10762+-- Name: api_method_auth_class_name_method_name_typeid_key; Type: CONSTRAINT; Schema: myury; Owner: web
10763 --
10764
10765 ALTER TABLE ONLY api_method_auth
10766@@ -8609,7 +10152,7 @@
10767
10768
10769 --
10770--- Name: api_method_auth_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10771+-- Name: api_method_auth_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10772 --
10773
10774 ALTER TABLE ONLY api_method_auth
10775@@ -8617,7 +10160,7 @@
10776
10777
10778 --
10779--- Name: award_categories_name_key; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10780+-- Name: award_categories_name_key; Type: CONSTRAINT; Schema: myury; Owner: web
10781 --
10782
10783 ALTER TABLE ONLY award_categories
10784@@ -8625,7 +10168,7 @@
10785
10786
10787 --
10788--- Name: award_categories_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10789+-- Name: award_categories_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10790 --
10791
10792 ALTER TABLE ONLY award_categories
10793@@ -8633,7 +10176,7 @@
10794
10795
10796 --
10797--- Name: award_member_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10798+-- Name: award_member_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10799 --
10800
10801 ALTER TABLE ONLY award_member
10802@@ -8641,7 +10184,15 @@
10803
10804
10805 --
10806--- Name: error_rate_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10807+-- Name: contract_versions_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10808+--
10809+
10810+ALTER TABLE ONLY contract_versions
10811+ ADD CONSTRAINT contract_versions_pkey PRIMARY KEY (contract_version_id);
10812+
10813+
10814+--
10815+-- Name: error_rate_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10816 --
10817
10818 ALTER TABLE ONLY error_rate
10819@@ -8649,7 +10200,79 @@
10820
10821
10822 --
10823--- Name: modules_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10824+-- Name: menu_columns_order_key; Type: CONSTRAINT; Schema: myury; Owner: web
10825+--
10826+
10827+ALTER TABLE ONLY menu_columns
10828+ ADD CONSTRAINT menu_columns_order_key UNIQUE ("position");
10829+
10830+
10831+--
10832+-- Name: menu_columns_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10833+--
10834+
10835+ALTER TABLE ONLY menu_columns
10836+ ADD CONSTRAINT menu_columns_pkey PRIMARY KEY (columnid);
10837+
10838+
10839+--
10840+-- Name: menu_columns_title_key; Type: CONSTRAINT; Schema: myury; Owner: web
10841+--
10842+
10843+ALTER TABLE ONLY menu_columns
10844+ ADD CONSTRAINT menu_columns_title_key UNIQUE (title);
10845+
10846+
10847+--
10848+-- Name: menu_links_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10849+--
10850+
10851+ALTER TABLE ONLY menu_links
10852+ ADD CONSTRAINT menu_links_pkey PRIMARY KEY (itemid);
10853+
10854+
10855+--
10856+-- Name: menu_links_title_key; Type: CONSTRAINT; Schema: myury; Owner: web
10857+--
10858+
10859+ALTER TABLE ONLY menu_links
10860+ ADD CONSTRAINT menu_links_title_key UNIQUE (title);
10861+
10862+
10863+--
10864+-- Name: menu_module_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10865+--
10866+
10867+ALTER TABLE ONLY menu_module
10868+ ADD CONSTRAINT menu_module_pkey PRIMARY KEY (menumoduleid);
10869+
10870+
10871+--
10872+-- Name: menu_sections_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10873+--
10874+
10875+ALTER TABLE ONLY menu_sections
10876+ ADD CONSTRAINT menu_sections_pkey PRIMARY KEY (sectionid);
10877+
10878+
10879+--
10880+-- Name: menu_sections_title_key; Type: CONSTRAINT; Schema: myury; Owner: web
10881+--
10882+
10883+ALTER TABLE ONLY menu_sections
10884+ ADD CONSTRAINT menu_sections_title_key UNIQUE (title);
10885+
10886+
10887+--
10888+-- Name: menu_twigitems_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10889+--
10890+
10891+ALTER TABLE ONLY menu_twigitems
10892+ ADD CONSTRAINT menu_twigitems_pkey PRIMARY KEY (twigitemid);
10893+
10894+
10895+--
10896+-- Name: modules_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10897 --
10898
10899 ALTER TABLE ONLY modules
10900@@ -8657,7 +10280,7 @@
10901
10902
10903 --
10904--- Name: modules_serviceid_key; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10905+-- Name: modules_serviceid_key; Type: CONSTRAINT; Schema: myury; Owner: web
10906 --
10907
10908 ALTER TABLE ONLY modules
10909@@ -8665,7 +10288,7 @@
10910
10911
10912 --
10913--- Name: photos_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10914+-- Name: photos_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10915 --
10916
10917 ALTER TABLE ONLY photos
10918@@ -8673,7 +10296,7 @@
10919
10920
10921 --
10922--- Name: services_name_key; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10923+-- Name: services_name_key; Type: CONSTRAINT; Schema: myury; Owner: web
10924 --
10925
10926 ALTER TABLE ONLY services
10927@@ -8681,7 +10304,7 @@
10928
10929
10930 --
10931--- Name: services_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10932+-- Name: services_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10933 --
10934
10935 ALTER TABLE ONLY services
10936@@ -8689,7 +10312,7 @@
10937
10938
10939 --
10940--- Name: services_versions_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10941+-- Name: services_versions_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10942 --
10943
10944 ALTER TABLE ONLY services_versions
10945@@ -8697,7 +10320,7 @@
10946
10947
10948 --
10949--- Name: services_versions_serviceid_key; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10950+-- Name: services_versions_serviceid_key; Type: CONSTRAINT; Schema: myury; Owner: web
10951 --
10952
10953 ALTER TABLE ONLY services_versions
10954@@ -8705,7 +10328,7 @@
10955
10956
10957 --
10958--- Name: services_versions_serviceid_key1; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10959+-- Name: services_versions_serviceid_key1; Type: CONSTRAINT; Schema: myury; Owner: web
10960 --
10961
10962 ALTER TABLE ONLY services_versions
10963@@ -8713,7 +10336,7 @@
10964
10965
10966 --
10967--- Name: services_versions_users_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10968+-- Name: services_versions_users_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10969 --
10970
10971 ALTER TABLE ONLY services_versions_member
10972@@ -8721,7 +10344,7 @@
10973
10974
10975 --
10976--- Name: single_login_token_pkey; Type: CONSTRAINT; Schema: myury; Owner: myradio; Tablespace:
10977+-- Name: single_login_token_pkey; Type: CONSTRAINT; Schema: myury; Owner: web
10978 --
10979
10980 ALTER TABLE ONLY password_reset_token
10981@@ -8731,7 +10354,7 @@
10982 SET search_path = people, pg_catalog;
10983
10984 --
10985--- Name: group_root_role_pkey; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
10986+-- Name: group_root_role_pkey; Type: CONSTRAINT; Schema: people; Owner: pgsql
10987 --
10988
10989 ALTER TABLE ONLY group_root_role
10990@@ -8739,7 +10362,7 @@
10991
10992
10993 --
10994--- Name: group_root_role_role_id_id_key; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
10995+-- Name: group_root_role_role_id_id_key; Type: CONSTRAINT; Schema: people; Owner: pgsql
10996 --
10997
10998 ALTER TABLE ONLY group_root_role
10999@@ -8747,7 +10370,7 @@
11000
11001
11002 --
11003--- Name: group_type_pkey; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
11004+-- Name: group_type_pkey; Type: CONSTRAINT; Schema: people; Owner: pgsql
11005 --
11006
11007 ALTER TABLE ONLY group_type
11008@@ -8755,7 +10378,7 @@
11009
11010
11011 --
11012--- Name: metadata_pkey; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
11013+-- Name: metadata_pkey; Type: CONSTRAINT; Schema: people; Owner: web
11014 --
11015
11016 ALTER TABLE ONLY metadata
11017@@ -8763,7 +10386,7 @@
11018
11019
11020 --
11021--- Name: quote_pkey; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
11022+-- Name: quote_pkey; Type: CONSTRAINT; Schema: people; Owner: web
11023 --
11024
11025 ALTER TABLE ONLY quote
11026@@ -8771,7 +10394,7 @@
11027
11028
11029 --
11030--- Name: role_inheritance_pkey; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
11031+-- Name: role_inheritance_pkey; Type: CONSTRAINT; Schema: people; Owner: web
11032 --
11033
11034 ALTER TABLE ONLY role_inheritance
11035@@ -8779,7 +10402,7 @@
11036
11037
11038 --
11039--- Name: role_metadata_pkey; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
11040+-- Name: role_metadata_pkey; Type: CONSTRAINT; Schema: people; Owner: web
11041 --
11042
11043 ALTER TABLE ONLY role_text_metadata
11044@@ -8787,7 +10410,7 @@
11045
11046
11047 --
11048--- Name: roles_pkey; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
11049+-- Name: roles_pkey; Type: CONSTRAINT; Schema: people; Owner: web
11050 --
11051
11052 ALTER TABLE ONLY role
11053@@ -8795,7 +10418,7 @@
11054
11055
11056 --
11057--- Name: schedule.showcredittype_pkey; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
11058+-- Name: schedule.showcredittype_pkey; Type: CONSTRAINT; Schema: people; Owner: web
11059 --
11060
11061 ALTER TABLE ONLY credit_type
11062@@ -8803,7 +10426,7 @@
11063
11064
11065 --
11066--- Name: types_name_key; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
11067+-- Name: types_name_key; Type: CONSTRAINT; Schema: people; Owner: web
11068 --
11069
11070 ALTER TABLE ONLY role_visibility
11071@@ -8811,7 +10434,7 @@
11072
11073
11074 --
11075--- Name: types_pkey; Type: CONSTRAINT; Schema: people; Owner: myradio; Tablespace:
11076+-- Name: types_pkey; Type: CONSTRAINT; Schema: people; Owner: web
11077 --
11078
11079 ALTER TABLE ONLY role_visibility
11080@@ -8821,7 +10444,7 @@
11081 SET search_path = public, pg_catalog;
11082
11083 --
11084--- Name: auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11085+-- Name: auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: django
11086 --
11087
11088 ALTER TABLE ONLY auth_group
11089@@ -8829,7 +10452,7 @@
11090
11091
11092 --
11093--- Name: auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11094+-- Name: auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: django
11095 --
11096
11097 ALTER TABLE ONLY auth_group
11098@@ -8837,7 +10460,7 @@
11099
11100
11101 --
11102--- Name: auth_officer_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11103+-- Name: auth_officer_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11104 --
11105
11106 ALTER TABLE ONLY auth_officer
11107@@ -8845,7 +10468,7 @@
11108
11109
11110 --
11111--- Name: auth_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11112+-- Name: auth_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11113 --
11114
11115 ALTER TABLE ONLY auth
11116@@ -8853,7 +10476,7 @@
11117
11118
11119 --
11120--- Name: auth_subnet_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11121+-- Name: auth_subnet_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11122 --
11123
11124 ALTER TABLE ONLY auth_subnet
11125@@ -8861,7 +10484,7 @@
11126
11127
11128 --
11129--- Name: auth_trainingstatus_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11130+-- Name: auth_trainingstatus_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11131 --
11132
11133 ALTER TABLE ONLY auth_trainingstatus
11134@@ -8869,7 +10492,7 @@
11135
11136
11137 --
11138--- Name: auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11139+-- Name: auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: django
11140 --
11141
11142 ALTER TABLE ONLY auth_user_groups
11143@@ -8877,7 +10500,7 @@
11144
11145
11146 --
11147--- Name: auth_user_groups_user_id_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11148+-- Name: auth_user_groups_user_id_key; Type: CONSTRAINT; Schema: public; Owner: django
11149 --
11150
11151 ALTER TABLE ONLY auth_user_groups
11152@@ -8885,7 +10508,7 @@
11153
11154
11155 --
11156--- Name: auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11157+-- Name: auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: django
11158 --
11159
11160 ALTER TABLE ONLY auth_user
11161@@ -8893,7 +10516,7 @@
11162
11163
11164 --
11165--- Name: auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11166+-- Name: auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: django
11167 --
11168
11169 ALTER TABLE ONLY auth_user
11170@@ -8901,7 +10524,7 @@
11171
11172
11173 --
11174--- Name: baps_audio_filename_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11175+-- Name: baps_audio_filename_key; Type: CONSTRAINT; Schema: public; Owner: web
11176 --
11177
11178 ALTER TABLE ONLY baps_audio
11179@@ -8909,7 +10532,7 @@
11180
11181
11182 --
11183--- Name: baps_audio_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11184+-- Name: baps_audio_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11185 --
11186
11187 ALTER TABLE ONLY baps_audio
11188@@ -8917,7 +10540,7 @@
11189
11190
11191 --
11192--- Name: baps_audio_trackid_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11193+-- Name: baps_audio_trackid_key; Type: CONSTRAINT; Schema: public; Owner: web
11194 --
11195
11196 ALTER TABLE ONLY baps_audio
11197@@ -8925,7 +10548,7 @@
11198
11199
11200 --
11201--- Name: baps_audiolog_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11202+-- Name: baps_audiolog_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11203 --
11204
11205 ALTER TABLE ONLY baps_audiolog
11206@@ -8933,7 +10556,7 @@
11207
11208
11209 --
11210--- Name: baps_filefolder_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11211+-- Name: baps_filefolder_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11212 --
11213
11214 ALTER TABLE ONLY baps_filefolder
11215@@ -8943,7 +10566,7 @@
11216
11217
11218 --
11219--- Name: baps_filefolder_workgroup_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11220+-- Name: baps_filefolder_workgroup_key; Type: CONSTRAINT; Schema: public; Owner: web
11221 --
11222
11223 ALTER TABLE ONLY baps_filefolder
11224@@ -8951,7 +10574,7 @@
11225
11226
11227 --
11228--- Name: baps_fileitem_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11229+-- Name: baps_fileitem_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11230 --
11231
11232 ALTER TABLE ONLY baps_fileitem
11233@@ -8961,7 +10584,7 @@
11234
11235
11236 --
11237--- Name: baps_item_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11238+-- Name: baps_item_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11239 --
11240
11241 ALTER TABLE ONLY baps_item
11242@@ -8971,7 +10594,7 @@
11243
11244
11245 --
11246--- Name: baps_libraryitem_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11247+-- Name: baps_libraryitem_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11248 --
11249
11250 ALTER TABLE ONLY baps_libraryitem
11251@@ -8981,7 +10604,7 @@
11252
11253
11254 --
11255--- Name: baps_listing_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11256+-- Name: baps_listing_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11257 --
11258
11259 ALTER TABLE ONLY baps_listing
11260@@ -8989,7 +10612,7 @@
11261
11262
11263 --
11264--- Name: baps_server_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11265+-- Name: baps_server_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11266 --
11267
11268 ALTER TABLE ONLY baps_server
11269@@ -8997,7 +10620,7 @@
11270
11271
11272 --
11273--- Name: baps_server_servername_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11274+-- Name: baps_server_servername_key; Type: CONSTRAINT; Schema: public; Owner: web
11275 --
11276
11277 ALTER TABLE ONLY baps_server
11278@@ -9005,7 +10628,7 @@
11279
11280
11281 --
11282--- Name: baps_show_name_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11283+-- Name: baps_show_name_key; Type: CONSTRAINT; Schema: public; Owner: web
11284 --
11285
11286 ALTER TABLE ONLY baps_show
11287@@ -9013,7 +10636,7 @@
11288
11289
11290 --
11291--- Name: baps_show_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11292+-- Name: baps_show_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11293 --
11294
11295 ALTER TABLE ONLY baps_show
11296@@ -9023,7 +10646,7 @@
11297
11298
11299 --
11300--- Name: baps_textitem_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11301+-- Name: baps_textitem_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11302 --
11303
11304 ALTER TABLE ONLY baps_textitem
11305@@ -9033,7 +10656,7 @@
11306
11307
11308 --
11309--- Name: baps_user_external_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11310+-- Name: baps_user_external_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11311 --
11312
11313 ALTER TABLE ONLY baps_user_external
11314@@ -9041,7 +10664,7 @@
11315
11316
11317 --
11318--- Name: baps_user_external_userid_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11319+-- Name: baps_user_external_userid_key; Type: CONSTRAINT; Schema: public; Owner: web
11320 --
11321
11322 ALTER TABLE ONLY baps_user_external
11323@@ -9049,7 +10672,7 @@
11324
11325
11326 --
11327--- Name: baps_user_filefolder_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11328+-- Name: baps_user_filefolder_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11329 --
11330
11331 ALTER TABLE ONLY baps_user_filefolder
11332@@ -9057,7 +10680,7 @@
11333
11334
11335 --
11336--- Name: baps_user_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11337+-- Name: baps_user_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11338 --
11339
11340 ALTER TABLE ONLY baps_user
11341@@ -9065,7 +10688,7 @@
11342
11343
11344 --
11345--- Name: baps_user_username_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11346+-- Name: baps_user_username_key; Type: CONSTRAINT; Schema: public; Owner: web
11347 --
11348
11349 ALTER TABLE ONLY baps_user
11350@@ -9075,7 +10698,7 @@
11351
11352
11353 --
11354--- Name: chart_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11355+-- Name: chart_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11356 --
11357
11358 ALTER TABLE ONLY chart
11359@@ -9083,7 +10706,7 @@
11360
11361
11362 --
11363--- Name: l_action_descr_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11364+-- Name: l_action_descr_key; Type: CONSTRAINT; Schema: public; Owner: pgsql
11365 --
11366
11367 ALTER TABLE ONLY l_action
11368@@ -9091,7 +10714,7 @@
11369
11370
11371 --
11372--- Name: l_action_phpconstant_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11373+-- Name: l_action_phpconstant_key; Type: CONSTRAINT; Schema: public; Owner: pgsql
11374 --
11375
11376 ALTER TABLE ONLY l_action
11377@@ -9099,7 +10722,7 @@
11378
11379
11380 --
11381--- Name: l_action_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11382+-- Name: l_action_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11383 --
11384
11385 ALTER TABLE ONLY l_action
11386@@ -9107,7 +10730,7 @@
11387
11388
11389 --
11390--- Name: l_college_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11391+-- Name: l_college_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11392 --
11393
11394 ALTER TABLE ONLY l_college
11395@@ -9115,7 +10738,7 @@
11396
11397
11398 --
11399--- Name: l_musicinterest_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11400+-- Name: l_musicinterest_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11401 --
11402
11403 ALTER TABLE ONLY l_musicinterest
11404@@ -9123,7 +10746,7 @@
11405
11406
11407 --
11408--- Name: l_newsfeeds_feedname_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11409+-- Name: l_newsfeeds_feedname_key; Type: CONSTRAINT; Schema: public; Owner: web
11410 --
11411
11412 ALTER TABLE ONLY l_newsfeed
11413@@ -9131,7 +10754,7 @@
11414
11415
11416 --
11417--- Name: l_newsfeeds_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11418+-- Name: l_newsfeeds_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11419 --
11420
11421 ALTER TABLE ONLY l_newsfeed
11422@@ -9139,7 +10762,7 @@
11423
11424
11425 --
11426--- Name: l_presenterstatus_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11427+-- Name: l_presenterstatus_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11428 --
11429
11430 ALTER TABLE ONLY l_presenterstatus
11431@@ -9147,7 +10770,7 @@
11432
11433
11434 --
11435--- Name: l_status_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11436+-- Name: l_status_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11437 --
11438
11439 ALTER TABLE ONLY l_status
11440@@ -9155,7 +10778,7 @@
11441
11442
11443 --
11444--- Name: l_subnet_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11445+-- Name: l_subnet_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11446 --
11447
11448 ALTER TABLE ONLY l_subnet
11449@@ -9163,7 +10786,7 @@
11450
11451
11452 --
11453--- Name: mail_alias_list_name_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11454+-- Name: mail_alias_list_name_key; Type: CONSTRAINT; Schema: public; Owner: web
11455 --
11456
11457 ALTER TABLE ONLY mail_alias_list
11458@@ -9171,7 +10794,7 @@
11459
11460
11461 --
11462--- Name: mail_alias_list_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11463+-- Name: mail_alias_list_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11464 --
11465
11466 ALTER TABLE ONLY mail_alias_list
11467@@ -9179,7 +10802,7 @@
11468
11469
11470 --
11471--- Name: mail_alias_member_name_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11472+-- Name: mail_alias_member_name_key; Type: CONSTRAINT; Schema: public; Owner: web
11473 --
11474
11475 ALTER TABLE ONLY mail_alias_member
11476@@ -9187,7 +10810,7 @@
11477
11478
11479 --
11480--- Name: mail_alias_member_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11481+-- Name: mail_alias_member_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11482 --
11483
11484 ALTER TABLE ONLY mail_alias_member
11485@@ -9195,7 +10818,7 @@
11486
11487
11488 --
11489--- Name: mail_alias_officer_name_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11490+-- Name: mail_alias_officer_name_key; Type: CONSTRAINT; Schema: public; Owner: web
11491 --
11492
11493 ALTER TABLE ONLY mail_alias_officer
11494@@ -9203,7 +10826,7 @@
11495
11496
11497 --
11498--- Name: mail_alias_officer_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11499+-- Name: mail_alias_officer_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11500 --
11501
11502 ALTER TABLE ONLY mail_alias_officer
11503@@ -9211,7 +10834,7 @@
11504
11505
11506 --
11507--- Name: mail_alias_text_name_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11508+-- Name: mail_alias_text_name_key; Type: CONSTRAINT; Schema: public; Owner: web
11509 --
11510
11511 ALTER TABLE ONLY mail_alias_text
11512@@ -9219,7 +10842,7 @@
11513
11514
11515 --
11516--- Name: mail_alias_text_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11517+-- Name: mail_alias_text_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11518 --
11519
11520 ALTER TABLE ONLY mail_alias_text
11521@@ -9227,7 +10850,7 @@
11522
11523
11524 --
11525--- Name: mail_list_listaddress_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11526+-- Name: mail_list_listaddress_key; Type: CONSTRAINT; Schema: public; Owner: web
11527 --
11528
11529 ALTER TABLE ONLY mail_list
11530@@ -9235,7 +10858,7 @@
11531
11532
11533 --
11534--- Name: mail_list_listname_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11535+-- Name: mail_list_listname_key; Type: CONSTRAINT; Schema: public; Owner: web
11536 --
11537
11538 ALTER TABLE ONLY mail_list
11539@@ -9243,7 +10866,7 @@
11540
11541
11542 --
11543--- Name: mail_list_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11544+-- Name: mail_list_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11545 --
11546
11547 ALTER TABLE ONLY mail_list
11548@@ -9251,7 +10874,7 @@
11549
11550
11551 --
11552--- Name: member_eduroam_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11553+-- Name: member_eduroam_key; Type: CONSTRAINT; Schema: public; Owner: pgsql
11554 --
11555
11556 ALTER TABLE ONLY member
11557@@ -9259,7 +10882,7 @@
11558
11559
11560 --
11561--- Name: member_email_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11562+-- Name: member_email_key; Type: CONSTRAINT; Schema: public; Owner: pgsql
11563 --
11564
11565 ALTER TABLE ONLY member
11566@@ -9267,7 +10890,7 @@
11567
11568
11569 --
11570--- Name: member_local_alias_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11571+-- Name: member_local_alias_key; Type: CONSTRAINT; Schema: public; Owner: pgsql
11572 --
11573
11574 ALTER TABLE ONLY member
11575@@ -9275,7 +10898,7 @@
11576
11577
11578 --
11579--- Name: member_local_name_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11580+-- Name: member_local_name_key; Type: CONSTRAINT; Schema: public; Owner: pgsql
11581 --
11582
11583 ALTER TABLE ONLY member
11584@@ -9283,7 +10906,7 @@
11585
11586
11587 --
11588--- Name: member_mail_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11589+-- Name: member_mail_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11590 --
11591
11592 ALTER TABLE ONLY mail_subscription
11593@@ -9291,7 +10914,7 @@
11594
11595
11596 --
11597--- Name: member_news_feed_memberid_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11598+-- Name: member_news_feed_memberid_key; Type: CONSTRAINT; Schema: public; Owner: web
11599 --
11600
11601 ALTER TABLE ONLY member_news_feed
11602@@ -9299,7 +10922,7 @@
11603
11604
11605 --
11606--- Name: member_news_feed_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11607+-- Name: member_news_feed_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11608 --
11609
11610 ALTER TABLE ONLY member_news_feed
11611@@ -9307,7 +10930,7 @@
11612
11613
11614 --
11615--- Name: member_officer_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11616+-- Name: member_officer_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11617 --
11618
11619 ALTER TABLE ONLY member_officer
11620@@ -9315,7 +10938,7 @@
11621
11622
11623 --
11624--- Name: member_pass_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11625+-- Name: member_pass_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11626 --
11627
11628 ALTER TABLE ONLY member_pass
11629@@ -9323,7 +10946,7 @@
11630
11631
11632 --
11633--- Name: member_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11634+-- Name: member_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11635 --
11636
11637 ALTER TABLE ONLY member
11638@@ -9331,7 +10954,7 @@
11639
11640
11641 --
11642--- Name: member_presenterstatus_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11643+-- Name: member_presenterstatus_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11644 --
11645
11646 ALTER TABLE ONLY member_presenterstatus
11647@@ -9339,7 +10962,7 @@
11648
11649
11650 --
11651--- Name: member_year_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11652+-- Name: member_year_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11653 --
11654
11655 ALTER TABLE ONLY member_year
11656@@ -9347,7 +10970,7 @@
11657
11658
11659 --
11660--- Name: net_switchport_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11661+-- Name: net_switchport_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11662 --
11663
11664 ALTER TABLE ONLY net_switchport_tags
11665@@ -9355,7 +10978,7 @@
11666
11667
11668 --
11669--- Name: net_switchports_mac_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11670+-- Name: net_switchports_mac_key; Type: CONSTRAINT; Schema: public; Owner: web
11671 --
11672
11673 ALTER TABLE ONLY net_switchport
11674@@ -9363,7 +10986,7 @@
11675
11676
11677 --
11678--- Name: net_switchports_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11679+-- Name: net_switchports_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11680 --
11681
11682 ALTER TABLE ONLY net_switchport
11683@@ -9371,7 +10994,7 @@
11684
11685
11686 --
11687--- Name: net_vlan_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11688+-- Name: net_vlan_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11689 --
11690
11691 ALTER TABLE ONLY net_vlan
11692@@ -9379,7 +11002,7 @@
11693
11694
11695 --
11696--- Name: news_feed_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11697+-- Name: news_feed_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11698 --
11699
11700 ALTER TABLE ONLY news_feed
11701@@ -9387,7 +11010,7 @@
11702
11703
11704 --
11705--- Name: nipsweb_migrate_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11706+-- Name: nipsweb_migrate_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11707 --
11708
11709 ALTER TABLE ONLY nipsweb_migrate
11710@@ -9395,7 +11018,7 @@
11711
11712
11713 --
11714--- Name: officer_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11715+-- Name: officer_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
11716 --
11717
11718 ALTER TABLE ONLY officer
11719@@ -9403,7 +11026,7 @@
11720
11721
11722 --
11723--- Name: rec_cleanlookup_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11724+-- Name: rec_cleanlookup_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11725 --
11726
11727 ALTER TABLE ONLY rec_cleanlookup
11728@@ -9411,7 +11034,7 @@
11729
11730
11731 --
11732--- Name: rec_formatlookup_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11733+-- Name: rec_formatlookup_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11734 --
11735
11736 ALTER TABLE ONLY rec_formatlookup
11737@@ -9419,7 +11042,7 @@
11738
11739
11740 --
11741--- Name: rec_genrelookup_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11742+-- Name: rec_genrelookup_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11743 --
11744
11745 ALTER TABLE ONLY rec_genrelookup
11746@@ -9427,7 +11050,7 @@
11747
11748
11749 --
11750--- Name: rec_itunes_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11751+-- Name: rec_itunes_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11752 --
11753
11754 ALTER TABLE ONLY rec_itunes
11755@@ -9435,7 +11058,7 @@
11756
11757
11758 --
11759--- Name: rec_labelqueue_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11760+-- Name: rec_labelqueue_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11761 --
11762
11763 ALTER TABLE ONLY rec_labelqueue
11764@@ -9443,7 +11066,7 @@
11765
11766
11767 --
11768--- Name: rec_locationlookup_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11769+-- Name: rec_locationlookup_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11770 --
11771
11772 ALTER TABLE ONLY rec_locationlookup
11773@@ -9451,7 +11074,7 @@
11774
11775
11776 --
11777--- Name: rec_lookup_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11778+-- Name: rec_lookup_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11779 --
11780
11781 ALTER TABLE ONLY rec_lookup
11782@@ -9459,7 +11082,7 @@
11783
11784
11785 --
11786--- Name: rec_medialookup_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11787+-- Name: rec_medialookup_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11788 --
11789
11790 ALTER TABLE ONLY rec_medialookup
11791@@ -9467,7 +11090,7 @@
11792
11793
11794 --
11795--- Name: rec_record_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11796+-- Name: rec_record_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11797 --
11798
11799 ALTER TABLE ONLY rec_record
11800@@ -9475,7 +11098,7 @@
11801
11802
11803 --
11804--- Name: rec_statuslookup_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11805+-- Name: rec_statuslookup_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11806 --
11807
11808 ALTER TABLE ONLY rec_statuslookup
11809@@ -9483,7 +11106,7 @@
11810
11811
11812 --
11813--- Name: rec_track_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11814+-- Name: rec_track_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11815 --
11816
11817 ALTER TABLE ONLY rec_track
11818@@ -9491,7 +11114,7 @@
11819
11820
11821 --
11822--- Name: rec_track_trackid_recordid_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11823+-- Name: rec_track_trackid_recordid_key; Type: CONSTRAINT; Schema: public; Owner: web
11824 --
11825
11826 ALTER TABLE ONLY rec_track
11827@@ -9499,7 +11122,7 @@
11828
11829
11830 --
11831--- Name: rec_trackcorrection_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11832+-- Name: rec_trackcorrection_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11833 --
11834
11835 ALTER TABLE ONLY rec_trackcorrection
11836@@ -9507,7 +11130,15 @@
11837
11838
11839 --
11840--- Name: recommended_listening_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11841+-- Name: rec_trackproposal_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11842+--
11843+
11844+ALTER TABLE ONLY rec_trackproposal
11845+ ADD CONSTRAINT rec_trackproposal_pkey PRIMARY KEY (proposalid);
11846+
11847+
11848+--
11849+-- Name: recommended_listening_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11850 --
11851
11852 ALTER TABLE ONLY recommended_listening
11853@@ -9515,7 +11146,89 @@
11854
11855
11856 --
11857--- Name: selector_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11858+-- Name: sched_entrytype_entrytypename_key; Type: CONSTRAINT; Schema: public; Owner: web
11859+--
11860+
11861+ALTER TABLE ONLY sched_entrytype
11862+ ADD CONSTRAINT sched_entrytype_entrytypename_key UNIQUE (entrytypename);
11863+
11864+ALTER TABLE sched_entrytype CLUSTER ON sched_entrytype_entrytypename_key;
11865+
11866+
11867+--
11868+-- Name: sched_entrytype_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11869+--
11870+
11871+ALTER TABLE ONLY sched_entrytype
11872+ ADD CONSTRAINT sched_entrytype_pkey PRIMARY KEY (entrytypeid);
11873+
11874+
11875+--
11876+-- Name: sched_genre_musiccategoryname_key; Type: CONSTRAINT; Schema: public; Owner: web
11877+--
11878+
11879+ALTER TABLE ONLY sched_genre
11880+ ADD CONSTRAINT sched_genre_musiccategoryname_key UNIQUE (genrename);
11881+
11882+
11883+--
11884+-- Name: sched_genre_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11885+--
11886+
11887+ALTER TABLE ONLY sched_genre
11888+ ADD CONSTRAINT sched_genre_pkey PRIMARY KEY (genreid);
11889+
11890+
11891+--
11892+-- Name: sched_musiccategory_musiccategoryname_key; Type: CONSTRAINT; Schema: public; Owner: web
11893+--
11894+
11895+ALTER TABLE ONLY sched_musiccategory
11896+ ADD CONSTRAINT sched_musiccategory_musiccategoryname_key UNIQUE (musiccategoryname);
11897+
11898+
11899+--
11900+-- Name: sched_musiccategory_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11901+--
11902+
11903+ALTER TABLE ONLY sched_musiccategory
11904+ ADD CONSTRAINT sched_musiccategory_pkey PRIMARY KEY (musiccategoryid);
11905+
11906+
11907+--
11908+-- Name: sched_room_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11909+--
11910+
11911+ALTER TABLE ONLY sched_room
11912+ ADD CONSTRAINT sched_room_pkey PRIMARY KEY (roomid);
11913+
11914+
11915+--
11916+-- Name: sched_room_roomname_key; Type: CONSTRAINT; Schema: public; Owner: web
11917+--
11918+
11919+ALTER TABLE ONLY sched_room
11920+ ADD CONSTRAINT sched_room_roomname_key UNIQUE (roomname);
11921+
11922+
11923+--
11924+-- Name: sched_speechcategory_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11925+--
11926+
11927+ALTER TABLE ONLY sched_speechcategory
11928+ ADD CONSTRAINT sched_speechcategory_pkey PRIMARY KEY (speechcategoryid);
11929+
11930+
11931+--
11932+-- Name: sched_speechcategory_speechcategoryname_key; Type: CONSTRAINT; Schema: public; Owner: web
11933+--
11934+
11935+ALTER TABLE ONLY sched_speechcategory
11936+ ADD CONSTRAINT sched_speechcategory_speechcategoryname_key UNIQUE (speechcategoryname);
11937+
11938+
11939+--
11940+-- Name: selector_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11941 --
11942
11943 ALTER TABLE ONLY selector_actions
11944@@ -9523,7 +11236,7 @@
11945
11946
11947 --
11948--- Name: selector_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11949+-- Name: selector_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11950 --
11951
11952 ALTER TABLE ONLY selector
11953@@ -9531,7 +11244,7 @@
11954
11955
11956 --
11957--- Name: sis_piss_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11958+-- Name: sis_piss_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11959 --
11960
11961 ALTER TABLE ONLY sis_piss
11962@@ -9539,7 +11252,7 @@
11963
11964
11965 --
11966--- Name: sis_status_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11967+-- Name: sis_status_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11968 --
11969
11970 ALTER TABLE ONLY sis_status
11971@@ -9547,7 +11260,7 @@
11972
11973
11974 --
11975--- Name: sis_type_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11976+-- Name: sis_type_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11977 --
11978
11979 ALTER TABLE ONLY sis_commtype
11980@@ -9555,7 +11268,7 @@
11981
11982
11983 --
11984--- Name: sso_session_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11985+-- Name: sso_session_pkey; Type: CONSTRAINT; Schema: public; Owner: web
11986 --
11987
11988 ALTER TABLE ONLY sso_session
11989@@ -9563,7 +11276,7 @@
11990
11991
11992 --
11993--- Name: strm_client_clientname_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
11994+-- Name: strm_client_clientname_key; Type: CONSTRAINT; Schema: public; Owner: web
11995 --
11996
11997 ALTER TABLE ONLY strm_useragent
11998@@ -9571,7 +11284,7 @@
11999
12000
12001 --
12002--- Name: strm_client_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
12003+-- Name: strm_client_pkey; Type: CONSTRAINT; Schema: public; Owner: web
12004 --
12005
12006 ALTER TABLE ONLY strm_useragent
12007@@ -9579,7 +11292,7 @@
12008
12009
12010 --
12011--- Name: strm_log_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
12012+-- Name: strm_log_pkey; Type: CONSTRAINT; Schema: public; Owner: web
12013 --
12014
12015 ALTER TABLE ONLY strm_log
12016@@ -9587,7 +11300,7 @@
12017
12018
12019 --
12020--- Name: strm_logfile_filename_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
12021+-- Name: strm_logfile_filename_key; Type: CONSTRAINT; Schema: public; Owner: web
12022 --
12023
12024 ALTER TABLE ONLY strm_logfile
12025@@ -9595,7 +11308,7 @@
12026
12027
12028 --
12029--- Name: strm_logfile_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
12030+-- Name: strm_logfile_pkey; Type: CONSTRAINT; Schema: public; Owner: web
12031 --
12032
12033 ALTER TABLE ONLY strm_logfile
12034@@ -9603,7 +11316,7 @@
12035
12036
12037 --
12038--- Name: strm_stream_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
12039+-- Name: strm_stream_pkey; Type: CONSTRAINT; Schema: public; Owner: web
12040 --
12041
12042 ALTER TABLE ONLY strm_stream
12043@@ -9611,7 +11324,7 @@
12044
12045
12046 --
12047--- Name: strm_stream_streamname_key; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
12048+-- Name: strm_stream_streamname_key; Type: CONSTRAINT; Schema: public; Owner: web
12049 --
12050
12051 ALTER TABLE ONLY strm_stream
12052@@ -9619,7 +11332,7 @@
12053
12054
12055 --
12056--- Name: team_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
12057+-- Name: team_pkey; Type: CONSTRAINT; Schema: public; Owner: pgsql
12058 --
12059
12060 ALTER TABLE ONLY team
12061@@ -9627,17 +11340,67 @@
12062
12063
12064 --
12065--- Name: terms_pkey; Type: CONSTRAINT; Schema: public; Owner: myradio; Tablespace:
12066+-- Name: terms_pkey; Type: CONSTRAINT; Schema: public; Owner: web
12067 --
12068
12069 ALTER TABLE ONLY terms
12070 ADD CONSTRAINT terms_pkey PRIMARY KEY (termid);
12071
12072
12073+SET search_path = rapier, pg_catalog;
12074+
12075+--
12076+-- Name: acl_member_memberid_key; Type: CONSTRAINT; Schema: rapier; Owner: web
12077+--
12078+
12079+ALTER TABLE ONLY acl_member
12080+ ADD CONSTRAINT acl_member_memberid_key UNIQUE (memberid, class, verb);
12081+
12082+
12083+--
12084+-- Name: acl_member_pkey; Type: CONSTRAINT; Schema: rapier; Owner: web
12085+--
12086+
12087+ALTER TABLE ONLY acl_member
12088+ ADD CONSTRAINT acl_member_pkey PRIMARY KEY (privilegeid);
12089+
12090+
12091+--
12092+-- Name: acl_officer_officerid_key; Type: CONSTRAINT; Schema: rapier; Owner: web
12093+--
12094+
12095+ALTER TABLE ONLY acl_officer
12096+ ADD CONSTRAINT acl_officer_officerid_key UNIQUE (officerid, class, verb);
12097+
12098+
12099+--
12100+-- Name: acl_officer_pkey; Type: CONSTRAINT; Schema: rapier; Owner: web
12101+--
12102+
12103+ALTER TABLE ONLY acl_officer
12104+ ADD CONSTRAINT acl_officer_pkey PRIMARY KEY (privilegeid);
12105+
12106+
12107+--
12108+-- Name: client_pkey; Type: CONSTRAINT; Schema: rapier; Owner: web
12109+--
12110+
12111+ALTER TABLE ONLY client
12112+ ADD CONSTRAINT client_pkey PRIMARY KEY (clientid);
12113+
12114+
12115+--
12116+-- Name: constants_acl_scope_pkey; Type: CONSTRAINT; Schema: rapier; Owner: web
12117+--
12118+
12119+ALTER TABLE ONLY constants_acl_scope
12120+ ADD CONSTRAINT constants_acl_scope_pkey PRIMARY KEY (scopeid);
12121+
12122+
12123 SET search_path = schedule, pg_catalog;
12124
12125 --
12126--- Name: block_direct_rules_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12127+-- Name: block_direct_rules_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12128 --
12129
12130 ALTER TABLE ONLY block_show_rule
12131@@ -9645,7 +11408,7 @@
12132
12133
12134 --
12135--- Name: block_range_rule_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12136+-- Name: block_range_rule_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12137 --
12138
12139 ALTER TABLE ONLY block_range_rule
12140@@ -9653,7 +11416,7 @@
12141
12142
12143 --
12144--- Name: blocks_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12145+-- Name: blocks_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12146 --
12147
12148 ALTER TABLE ONLY block
12149@@ -9661,7 +11424,7 @@
12150
12151
12152 --
12153--- Name: genre_name_key; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12154+-- Name: genre_name_key; Type: CONSTRAINT; Schema: schedule; Owner: web
12155 --
12156
12157 ALTER TABLE ONLY genre
12158@@ -9669,7 +11432,7 @@
12159
12160
12161 --
12162--- Name: genre_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12163+-- Name: genre_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12164 --
12165
12166 ALTER TABLE ONLY genre
12167@@ -9677,7 +11440,7 @@
12168
12169
12170 --
12171--- Name: location_location_name_key; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12172+-- Name: location_location_name_key; Type: CONSTRAINT; Schema: schedule; Owner: web
12173 --
12174
12175 ALTER TABLE ONLY location
12176@@ -9685,7 +11448,7 @@
12177
12178
12179 --
12180--- Name: location_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12181+-- Name: location_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12182 --
12183
12184 ALTER TABLE ONLY location
12185@@ -9693,7 +11456,7 @@
12186
12187
12188 --
12189--- Name: season_metadata_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12190+-- Name: season_metadata_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12191 --
12192
12193 ALTER TABLE ONLY season_metadata
12194@@ -9701,7 +11464,7 @@
12195
12196
12197 --
12198--- Name: show_credit_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12199+-- Name: show_credit_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12200 --
12201
12202 ALTER TABLE ONLY show_credit
12203@@ -9709,7 +11472,7 @@
12204
12205
12206 --
12207--- Name: show_genre_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12208+-- Name: show_genre_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12209 --
12210
12211 ALTER TABLE ONLY show_genre
12212@@ -9717,7 +11480,7 @@
12213
12214
12215 --
12216--- Name: show_image_metadata_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12217+-- Name: show_image_metadata_pkey; Type: CONSTRAINT; Schema: schedule; Owner: django
12218 --
12219
12220 ALTER TABLE ONLY show_image_metadata
12221@@ -9725,7 +11488,7 @@
12222
12223
12224 --
12225--- Name: show_location_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12226+-- Name: show_location_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12227 --
12228
12229 ALTER TABLE ONLY show_location
12230@@ -9733,7 +11496,7 @@
12231
12232
12233 --
12234--- Name: show_metadata_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12235+-- Name: show_metadata_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12236 --
12237
12238 ALTER TABLE ONLY show_metadata
12239@@ -9741,7 +11504,7 @@
12240
12241
12242 --
12243--- Name: show_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12244+-- Name: show_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12245 --
12246
12247 ALTER TABLE ONLY show
12248@@ -9749,7 +11512,7 @@
12249
12250
12251 --
12252--- Name: show_podcast_link_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12253+-- Name: show_podcast_link_pkey; Type: CONSTRAINT; Schema: schedule; Owner: django
12254 --
12255
12256 ALTER TABLE ONLY show_podcast_link
12257@@ -9757,7 +11520,7 @@
12258
12259
12260 --
12261--- Name: show_season_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12262+-- Name: show_season_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12263 --
12264
12265 ALTER TABLE ONLY show_season
12266@@ -9765,7 +11528,7 @@
12267
12268
12269 --
12270--- Name: show_season_requested_time_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12271+-- Name: show_season_requested_time_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12272 --
12273
12274 ALTER TABLE ONLY show_season_requested_time
12275@@ -9773,7 +11536,7 @@
12276
12277
12278 --
12279--- Name: show_season_requested_week_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12280+-- Name: show_season_requested_week_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12281 --
12282
12283 ALTER TABLE ONLY show_season_requested_week
12284@@ -9781,7 +11544,7 @@
12285
12286
12287 --
12288--- Name: show_season_requested_week_show_season_id_key; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12289+-- Name: show_season_requested_week_show_season_id_key; Type: CONSTRAINT; Schema: schedule; Owner: web
12290 --
12291
12292 ALTER TABLE ONLY show_season_requested_week
12293@@ -9789,7 +11552,7 @@
12294
12295
12296 --
12297--- Name: show_season_timeslot_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12298+-- Name: show_season_timeslot_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12299 --
12300
12301 ALTER TABLE ONLY show_season_timeslot
12302@@ -9797,7 +11560,7 @@
12303
12304
12305 --
12306--- Name: show_season_timeslot_start_time_key; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12307+-- Name: show_season_timeslot_start_time_key; Type: CONSTRAINT; Schema: schedule; Owner: web
12308 --
12309
12310 ALTER TABLE ONLY show_season_timeslot
12311@@ -9805,7 +11568,7 @@
12312
12313
12314 --
12315--- Name: show_type_name_key; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12316+-- Name: show_type_name_key; Type: CONSTRAINT; Schema: schedule; Owner: web
12317 --
12318
12319 ALTER TABLE ONLY show_type
12320@@ -9813,7 +11576,7 @@
12321
12322
12323 --
12324--- Name: show_type_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12325+-- Name: show_type_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12326 --
12327
12328 ALTER TABLE ONLY show_type
12329@@ -9821,7 +11584,7 @@
12330
12331
12332 --
12333--- Name: timeslot_metadata_pkey; Type: CONSTRAINT; Schema: schedule; Owner: myradio; Tablespace:
12334+-- Name: timeslot_metadata_pkey; Type: CONSTRAINT; Schema: schedule; Owner: web
12335 --
12336
12337 ALTER TABLE ONLY timeslot_metadata
12338@@ -9831,7 +11594,7 @@
12339 SET search_path = sis2, pg_catalog;
12340
12341 --
12342--- Name: config_pkey; Type: CONSTRAINT; Schema: sis2; Owner: myradio; Tablespace:
12343+-- Name: config_pkey; Type: CONSTRAINT; Schema: sis2; Owner: sis
12344 --
12345
12346 ALTER TABLE ONLY config
12347@@ -9839,7 +11602,7 @@
12348
12349
12350 --
12351--- Name: member_options_pkey; Type: CONSTRAINT; Schema: sis2; Owner: myradio; Tablespace:
12352+-- Name: member_options_pkey; Type: CONSTRAINT; Schema: sis2; Owner: web
12353 --
12354
12355 ALTER TABLE ONLY member_options
12356@@ -9847,7 +11610,7 @@
12357
12358
12359 --
12360--- Name: member_signin_memberid_show_season_timeslot_id_key; Type: CONSTRAINT; Schema: sis2; Owner: myradio; Tablespace:
12361+-- Name: member_signin_memberid_show_season_timeslot_id_key; Type: CONSTRAINT; Schema: sis2; Owner: web
12362 --
12363
12364 ALTER TABLE ONLY member_signin
12365@@ -9855,17 +11618,75 @@
12366
12367
12368 --
12369--- Name: member_signin_pkey; Type: CONSTRAINT; Schema: sis2; Owner: myradio; Tablespace:
12370+-- Name: member_signin_pkey; Type: CONSTRAINT; Schema: sis2; Owner: web
12371 --
12372
12373 ALTER TABLE ONLY member_signin
12374 ADD CONSTRAINT member_signin_pkey PRIMARY KEY (member_signin_id);
12375
12376
12377+SET search_path = smsd, pg_catalog;
12378+
12379+--
12380+-- Name: inbox_pkey; Type: CONSTRAINT; Schema: smsd; Owner: xsms
12381+--
12382+
12383+ALTER TABLE ONLY inbox
12384+ ADD CONSTRAINT inbox_pkey PRIMARY KEY ("ID");
12385+
12386+
12387+--
12388+-- Name: outbox_multipart_pkey; Type: CONSTRAINT; Schema: smsd; Owner: xsms
12389+--
12390+
12391+ALTER TABLE ONLY outbox_multipart
12392+ ADD CONSTRAINT outbox_multipart_pkey PRIMARY KEY ("ID", "SequencePosition");
12393+
12394+
12395+--
12396+-- Name: outbox_pkey; Type: CONSTRAINT; Schema: smsd; Owner: xsms
12397+--
12398+
12399+ALTER TABLE ONLY outbox
12400+ ADD CONSTRAINT outbox_pkey PRIMARY KEY ("ID");
12401+
12402+
12403+--
12404+-- Name: pbk_groups_pkey; Type: CONSTRAINT; Schema: smsd; Owner: xsms
12405+--
12406+
12407+ALTER TABLE ONLY pbk_groups
12408+ ADD CONSTRAINT pbk_groups_pkey PRIMARY KEY ("ID");
12409+
12410+
12411+--
12412+-- Name: pbk_pkey; Type: CONSTRAINT; Schema: smsd; Owner: xsms
12413+--
12414+
12415+ALTER TABLE ONLY pbk
12416+ ADD CONSTRAINT pbk_pkey PRIMARY KEY ("ID");
12417+
12418+
12419+--
12420+-- Name: phones_pkey; Type: CONSTRAINT; Schema: smsd; Owner: xsms
12421+--
12422+
12423+ALTER TABLE ONLY phones
12424+ ADD CONSTRAINT phones_pkey PRIMARY KEY ("IMEI");
12425+
12426+
12427+--
12428+-- Name: sentitems_pkey; Type: CONSTRAINT; Schema: smsd; Owner: xsms
12429+--
12430+
12431+ALTER TABLE ONLY sentitems
12432+ ADD CONSTRAINT sentitems_pkey PRIMARY KEY ("ID", "SequencePosition");
12433+
12434+
12435 SET search_path = tracklist, pg_catalog;
12436
12437 --
12438--- Name: pri_track_notrec; Type: CONSTRAINT; Schema: tracklist; Owner: myradio; Tablespace:
12439+-- Name: pri_track_notrec; Type: CONSTRAINT; Schema: tracklist; Owner: web
12440 --
12441
12442 ALTER TABLE ONLY track_notrec
12443@@ -9873,7 +11694,7 @@
12444
12445
12446 --
12447--- Name: pri_track_rec; Type: CONSTRAINT; Schema: tracklist; Owner: myradio; Tablespace:
12448+-- Name: pri_track_rec; Type: CONSTRAINT; Schema: tracklist; Owner: web
12449 --
12450
12451 ALTER TABLE ONLY track_rec
12452@@ -9881,7 +11702,7 @@
12453
12454
12455 --
12456--- Name: source_source_key; Type: CONSTRAINT; Schema: tracklist; Owner: myradio; Tablespace:
12457+-- Name: source_source_key; Type: CONSTRAINT; Schema: tracklist; Owner: web
12458 --
12459
12460 ALTER TABLE ONLY source
12461@@ -9889,7 +11710,7 @@
12462
12463
12464 --
12465--- Name: source_sourceid_key; Type: CONSTRAINT; Schema: tracklist; Owner: myradio; Tablespace:
12466+-- Name: source_sourceid_key; Type: CONSTRAINT; Schema: tracklist; Owner: web
12467 --
12468
12469 ALTER TABLE ONLY source
12470@@ -9897,7 +11718,7 @@
12471
12472
12473 --
12474--- Name: state_stateid_key; Type: CONSTRAINT; Schema: tracklist; Owner: myradio; Tablespace:
12475+-- Name: state_stateid_key; Type: CONSTRAINT; Schema: tracklist; Owner: web
12476 --
12477
12478 ALTER TABLE ONLY state
12479@@ -9905,7 +11726,7 @@
12480
12481
12482 --
12483--- Name: tracklist_pkey; Type: CONSTRAINT; Schema: tracklist; Owner: myradio; Tablespace:
12484+-- Name: tracklist_pkey; Type: CONSTRAINT; Schema: tracklist; Owner: web
12485 --
12486
12487 ALTER TABLE ONLY tracklist
12488@@ -9915,7 +11736,7 @@
12489 SET search_path = uryplayer, pg_catalog;
12490
12491 --
12492--- Name: podcast_credit_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: myradio; Tablespace:
12493+-- Name: podcast_credit_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: django
12494 --
12495
12496 ALTER TABLE ONLY podcast_credit
12497@@ -9923,7 +11744,7 @@
12498
12499
12500 --
12501--- Name: podcast_image_metadata_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: myradio; Tablespace:
12502+-- Name: podcast_image_metadata_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: django
12503 --
12504
12505 ALTER TABLE ONLY podcast_image_metadata
12506@@ -9931,7 +11752,7 @@
12507
12508
12509 --
12510--- Name: podcast_metadata_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: myradio; Tablespace:
12511+-- Name: podcast_metadata_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: django
12512 --
12513
12514 ALTER TABLE ONLY podcast_metadata
12515@@ -9939,7 +11760,7 @@
12516
12517
12518 --
12519--- Name: podcast_package_entry_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: myradio; Tablespace:
12520+-- Name: podcast_package_entry_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: django
12521 --
12522
12523 ALTER TABLE ONLY podcast_package_entry
12524@@ -9947,7 +11768,7 @@
12525
12526
12527 --
12528--- Name: podcast_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: myradio; Tablespace:
12529+-- Name: podcast_pkey; Type: CONSTRAINT; Schema: uryplayer; Owner: django
12530 --
12531
12532 ALTER TABLE ONLY podcast
12533@@ -9957,7 +11778,7 @@
12534 SET search_path = webcam, pg_catalog;
12535
12536 --
12537--- Name: memberviews_pkey; Type: CONSTRAINT; Schema: webcam; Owner: myradio; Tablespace:
12538+-- Name: memberviews_pkey; Type: CONSTRAINT; Schema: webcam; Owner: web
12539 --
12540
12541 ALTER TABLE ONLY memberviews
12542@@ -9965,7 +11786,7 @@
12543
12544
12545 --
12546--- Name: streams_pkey; Type: CONSTRAINT; Schema: webcam; Owner: myradio; Tablespace:
12547+-- Name: streams_pkey; Type: CONSTRAINT; Schema: webcam; Owner: web
12548 --
12549
12550 ALTER TABLE ONLY streams
12551@@ -9975,7 +11796,7 @@
12552 SET search_path = website, pg_catalog;
12553
12554 --
12555--- Name: banner_campaign_pkey; Type: CONSTRAINT; Schema: website; Owner: myradio; Tablespace:
12556+-- Name: banner_campaign_pkey; Type: CONSTRAINT; Schema: website; Owner: django
12557 --
12558
12559 ALTER TABLE ONLY banner_campaign
12560@@ -9983,7 +11804,7 @@
12561
12562
12563 --
12564--- Name: banner_location_pkey; Type: CONSTRAINT; Schema: website; Owner: myradio; Tablespace:
12565+-- Name: banner_location_pkey; Type: CONSTRAINT; Schema: website; Owner: django
12566 --
12567
12568 ALTER TABLE ONLY banner_location
12569@@ -9991,7 +11812,7 @@
12570
12571
12572 --
12573--- Name: banner_pkey; Type: CONSTRAINT; Schema: website; Owner: myradio; Tablespace:
12574+-- Name: banner_pkey; Type: CONSTRAINT; Schema: website; Owner: web
12575 --
12576
12577 ALTER TABLE ONLY banner
12578@@ -9999,7 +11820,7 @@
12579
12580
12581 --
12582--- Name: banner_timeslot_pkey; Type: CONSTRAINT; Schema: website; Owner: myradio; Tablespace:
12583+-- Name: banner_timeslot_pkey; Type: CONSTRAINT; Schema: website; Owner: web
12584 --
12585
12586 ALTER TABLE ONLY banner_timeslot
12587@@ -10007,80 +11828,124 @@
12588
12589
12590 --
12591--- Name: banner_type_pkey; Type: CONSTRAINT; Schema: website; Owner: myradio; Tablespace:
12592+-- Name: banner_type_pkey; Type: CONSTRAINT; Schema: website; Owner: django
12593 --
12594
12595 ALTER TABLE ONLY banner_type
12596 ADD CONSTRAINT banner_type_pkey PRIMARY KEY (banner_type_id);
12597
12598
12599+SET search_path = jukebox, pg_catalog;
12600+
12601+--
12602+-- Name: playlist_availability_approvedid_idx; Type: INDEX; Schema: jukebox; Owner: web
12603+--
12604+
12605+CREATE INDEX playlist_availability_approvedid_idx ON playlist_availability USING btree (approvedid);
12606+
12607+
12608+--
12609+-- Name: playlist_availability_banner_id_idx; Type: INDEX; Schema: jukebox; Owner: web
12610+--
12611+
12612+CREATE INDEX playlist_availability_banner_id_idx ON playlist_availability USING btree (playlistid);
12613+
12614+
12615+--
12616+-- Name: playlist_availability_banner_location_id_idx; Type: INDEX; Schema: jukebox; Owner: web
12617+--
12618+
12619+CREATE INDEX playlist_availability_banner_location_id_idx ON playlist_availability USING btree (weight);
12620+
12621+
12622+--
12623+-- Name: playlist_availability_effective_from_idx; Type: INDEX; Schema: jukebox; Owner: web
12624+--
12625+
12626+CREATE INDEX playlist_availability_effective_from_idx ON playlist_availability USING btree (effective_from);
12627+
12628+
12629+--
12630+-- Name: playlist_availability_effective_to_idx; Type: INDEX; Schema: jukebox; Owner: web
12631+--
12632+
12633+CREATE INDEX playlist_availability_effective_to_idx ON playlist_availability USING btree (effective_to);
12634+
12635+
12636+--
12637+-- Name: playlist_availability_memberid_idx; Type: INDEX; Schema: jukebox; Owner: web
12638+--
12639+
12640+CREATE INDEX playlist_availability_memberid_idx ON playlist_availability USING btree (memberid);
12641+
12642+
12643 SET search_path = metadata, pg_catalog;
12644
12645 --
12646--- Name: package_image_metadata_approvedid; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12647+-- Name: package_image_metadata_approvedid; Type: INDEX; Schema: metadata; Owner: django
12648 --
12649
12650 CREATE INDEX package_image_metadata_approvedid ON package_image_metadata USING btree (approvedid);
12651
12652
12653 --
12654--- Name: package_image_metadata_element_id; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12655+-- Name: package_image_metadata_element_id; Type: INDEX; Schema: metadata; Owner: django
12656 --
12657
12658 CREATE INDEX package_image_metadata_element_id ON package_image_metadata USING btree (element_id);
12659
12660
12661 --
12662--- Name: package_image_metadata_memberid; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12663+-- Name: package_image_metadata_memberid; Type: INDEX; Schema: metadata; Owner: django
12664 --
12665
12666 CREATE INDEX package_image_metadata_memberid ON package_image_metadata USING btree (memberid);
12667
12668
12669 --
12670--- Name: package_image_metadata_metadata_key_id; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12671+-- Name: package_image_metadata_metadata_key_id; Type: INDEX; Schema: metadata; Owner: django
12672 --
12673
12674 CREATE INDEX package_image_metadata_metadata_key_id ON package_image_metadata USING btree (metadata_key_id);
12675
12676
12677 --
12678--- Name: package_name; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12679+-- Name: package_name; Type: INDEX; Schema: metadata; Owner: django
12680 --
12681
12682 CREATE INDEX package_name ON package USING btree (name);
12683
12684
12685 --
12686--- Name: package_name_like; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12687+-- Name: package_name_like; Type: INDEX; Schema: metadata; Owner: django
12688 --
12689
12690 CREATE INDEX package_name_like ON package USING btree (name varchar_pattern_ops);
12691
12692
12693 --
12694--- Name: package_text_metadata_approvedid; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12695+-- Name: package_text_metadata_approvedid; Type: INDEX; Schema: metadata; Owner: django
12696 --
12697
12698 CREATE INDEX package_text_metadata_approvedid ON package_text_metadata USING btree (approvedid);
12699
12700
12701 --
12702--- Name: package_text_metadata_element_id; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12703+-- Name: package_text_metadata_element_id; Type: INDEX; Schema: metadata; Owner: django
12704 --
12705
12706 CREATE INDEX package_text_metadata_element_id ON package_text_metadata USING btree (element_id);
12707
12708
12709 --
12710--- Name: package_text_metadata_memberid; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12711+-- Name: package_text_metadata_memberid; Type: INDEX; Schema: metadata; Owner: django
12712 --
12713
12714 CREATE INDEX package_text_metadata_memberid ON package_text_metadata USING btree (memberid);
12715
12716
12717 --
12718--- Name: package_text_metadata_metadata_key_id; Type: INDEX; Schema: metadata; Owner: myradio; Tablespace:
12719+-- Name: package_text_metadata_metadata_key_id; Type: INDEX; Schema: metadata; Owner: django
12720 --
12721
12722 CREATE INDEX package_text_metadata_metadata_key_id ON package_text_metadata USING btree (metadata_key_id);
12723@@ -10089,28 +11954,28 @@
12724 SET search_path = music, pg_catalog;
12725
12726 --
12727--- Name: chart_release_chart_type_id; Type: INDEX; Schema: music; Owner: myradio; Tablespace:
12728+-- Name: chart_release_chart_type_id; Type: INDEX; Schema: music; Owner: django
12729 --
12730
12731 CREATE INDEX chart_release_chart_type_id ON chart_release USING btree (chart_type_id);
12732
12733
12734 --
12735--- Name: chart_row_chart_release_id; Type: INDEX; Schema: music; Owner: myradio; Tablespace:
12736+-- Name: chart_row_chart_release_id; Type: INDEX; Schema: music; Owner: django
12737 --
12738
12739 CREATE INDEX chart_row_chart_release_id ON chart_row USING btree (chart_release_id);
12740
12741
12742 --
12743--- Name: chart_type_name; Type: INDEX; Schema: music; Owner: myradio; Tablespace:
12744+-- Name: chart_type_name; Type: INDEX; Schema: music; Owner: django
12745 --
12746
12747 CREATE INDEX chart_type_name ON chart_type USING btree (name);
12748
12749
12750 --
12751--- Name: chart_type_name_like; Type: INDEX; Schema: music; Owner: myradio; Tablespace:
12752+-- Name: chart_type_name_like; Type: INDEX; Schema: music; Owner: django
12753 --
12754
12755 CREATE INDEX chart_type_name_like ON chart_type USING btree (name varchar_pattern_ops);
12756@@ -10119,14 +11984,14 @@
12757 SET search_path = myury, pg_catalog;
12758
12759 --
12760--- Name: api_key_log_timestamp_index; Type: INDEX; Schema: myury; Owner: myradio; Tablespace:
12761+-- Name: api_key_log_timestamp_index; Type: INDEX; Schema: myury; Owner: web
12762 --
12763
12764 CREATE INDEX api_key_log_timestamp_index ON api_key_log USING btree ("timestamp");
12765
12766
12767 --
12768--- Name: error_rate_i_timestamp; Type: INDEX; Schema: myury; Owner: myradio; Tablespace:
12769+-- Name: error_rate_i_timestamp; Type: INDEX; Schema: myury; Owner: web
12770 --
12771
12772 CREATE INDEX error_rate_i_timestamp ON error_rate USING btree ("timestamp");
12773@@ -10135,21 +12000,21 @@
12774 SET search_path = people, pg_catalog;
12775
12776 --
12777--- Name: group_root_role_group_type_id; Type: INDEX; Schema: people; Owner: myradio; Tablespace:
12778+-- Name: group_root_role_group_type_id; Type: INDEX; Schema: people; Owner: pgsql
12779 --
12780
12781 CREATE INDEX group_root_role_group_type_id ON group_root_role USING btree (group_type_id);
12782
12783
12784 --
12785--- Name: role_metadata_effective_from_index; Type: INDEX; Schema: people; Owner: myradio; Tablespace:
12786+-- Name: role_metadata_effective_from_index; Type: INDEX; Schema: people; Owner: web
12787 --
12788
12789 CREATE INDEX role_metadata_effective_from_index ON role_text_metadata USING btree (effective_from);
12790
12791
12792 --
12793--- Name: role_metadata_effective_to_index; Type: INDEX; Schema: people; Owner: myradio; Tablespace:
12794+-- Name: role_metadata_effective_to_index; Type: INDEX; Schema: people; Owner: web
12795 --
12796
12797 CREATE INDEX role_metadata_effective_to_index ON role_text_metadata USING btree (effective_to);
12798@@ -10158,238 +12023,245 @@
12799 SET search_path = public, pg_catalog;
12800
12801 --
12802--- Name: audiolog_timeplayed_index; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12803+-- Name: audiolog_timeplayed_index; Type: INDEX; Schema: public; Owner: web
12804 --
12805
12806 CREATE INDEX audiolog_timeplayed_index ON baps_audiolog USING btree (timeplayed);
12807
12808
12809 --
12810--- Name: audiolog_timestopped_index; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12811+-- Name: audiolog_timestopped_index; Type: INDEX; Schema: public; Owner: web
12812 --
12813
12814 CREATE INDEX audiolog_timestopped_index ON baps_audiolog USING btree (timestopped);
12815
12816
12817 --
12818--- Name: baps_item_fileitemid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12819+-- Name: baps_item_fileitemid_key; Type: INDEX; Schema: public; Owner: web
12820 --
12821
12822 CREATE INDEX baps_item_fileitemid_key ON baps_item USING btree (fileitemid);
12823
12824
12825 --
12826--- Name: baps_item_libraryitemid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12827+-- Name: baps_item_libraryitemid_key; Type: INDEX; Schema: public; Owner: web
12828 --
12829
12830 CREATE INDEX baps_item_libraryitemid_key ON baps_item USING btree (libraryitemid);
12831
12832
12833 --
12834--- Name: baps_item_listingid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12835+-- Name: baps_item_listingid_key; Type: INDEX; Schema: public; Owner: web
12836 --
12837
12838 CREATE INDEX baps_item_listingid_key ON baps_item USING btree (listingid);
12839
12840
12841 --
12842--- Name: baps_item_position_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12843+-- Name: baps_item_position_key; Type: INDEX; Schema: public; Owner: web
12844 --
12845
12846 CREATE INDEX baps_item_position_key ON baps_item USING btree ("position");
12847
12848
12849 --
12850--- Name: baps_item_textitemid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12851+-- Name: baps_item_textitemid_key; Type: INDEX; Schema: public; Owner: web
12852 --
12853
12854 CREATE INDEX baps_item_textitemid_key ON baps_item USING btree (textitemid);
12855
12856
12857 --
12858--- Name: baps_item_viewable_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12859+-- Name: baps_item_viewable_key; Type: INDEX; Schema: public; Owner: web
12860 --
12861
12862 CREATE INDEX baps_item_viewable_key ON baps_show USING btree (viewable);
12863
12864
12865 --
12866--- Name: baps_libraryitem_trackid_index; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12867+-- Name: baps_libraryitem_trackid_index; Type: INDEX; Schema: public; Owner: web
12868 --
12869
12870 CREATE INDEX baps_libraryitem_trackid_index ON baps_libraryitem USING btree (trackid);
12871
12872
12873 --
12874--- Name: baps_listing_channel_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12875+-- Name: baps_listing_channel_key; Type: INDEX; Schema: public; Owner: web
12876 --
12877
12878 CREATE INDEX baps_listing_channel_key ON baps_listing USING btree (channel);
12879
12880
12881 --
12882--- Name: baps_listing_showid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12883+-- Name: baps_listing_showid_key; Type: INDEX; Schema: public; Owner: web
12884 --
12885
12886 CREATE INDEX baps_listing_showid_key ON baps_listing USING btree (showid);
12887
12888
12889 --
12890--- Name: baps_show_broadcastdate_index; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12891+-- Name: baps_show_broadcastdate_index; Type: INDEX; Schema: public; Owner: web
12892 --
12893
12894 CREATE INDEX baps_show_broadcastdate_index ON baps_show USING btree (broadcastdate);
12895
12896
12897 --
12898--- Name: baps_show_userid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12899+-- Name: baps_show_userid_key; Type: INDEX; Schema: public; Owner: web
12900 --
12901
12902 CREATE INDEX baps_show_userid_key ON baps_show USING btree (userid);
12903
12904
12905 --
12906--- Name: baps_user_usernamechart_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12907+-- Name: baps_user_usernamechart_key; Type: INDEX; Schema: public; Owner: web
12908 --
12909
12910 CREATE INDEX baps_user_usernamechart_key ON baps_user USING btree (username) WHERE ((username)::text = 'chart'::text);
12911
12912
12913 --
12914--- Name: chartweektimestamp; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12915+-- Name: chartweektimestamp; Type: INDEX; Schema: public; Owner: web
12916 --
12917
12918 CREATE INDEX chartweektimestamp ON chart USING btree (chartweek);
12919
12920
12921 --
12922--- Name: i_endtime; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12923+-- Name: i_endtime; Type: INDEX; Schema: public; Owner: web
12924 --
12925
12926 CREATE INDEX i_endtime ON strm_log USING btree (endtime);
12927
12928
12929 --
12930--- Name: idx_member_eduroam; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12931+-- Name: idx_member_eduroam; Type: INDEX; Schema: public; Owner: pgsql
12932 --
12933
12934 CREATE INDEX idx_member_eduroam ON member USING btree (eduroam);
12935
12936
12937 --
12938--- Name: idx_member_email; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12939+-- Name: idx_member_email; Type: INDEX; Schema: public; Owner: pgsql
12940 --
12941
12942 CREATE INDEX idx_member_email ON member USING btree (email);
12943
12944
12945 --
12946--- Name: idx_member_localalias; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12947+-- Name: idx_member_localalias; Type: INDEX; Schema: public; Owner: pgsql
12948 --
12949
12950 CREATE INDEX idx_member_localalias ON member USING btree (local_alias);
12951
12952
12953 --
12954--- Name: idx_member_localname; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12955+-- Name: idx_member_localname; Type: INDEX; Schema: public; Owner: pgsql
12956 --
12957
12958 CREATE INDEX idx_member_localname ON member USING btree (local_name);
12959
12960
12961 --
12962--- Name: l_college_collegeid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12963+-- Name: l_college_collegeid_key; Type: INDEX; Schema: public; Owner: pgsql
12964 --
12965
12966 CREATE UNIQUE INDEX l_college_collegeid_key ON l_college USING btree (collegeid);
12967
12968
12969 --
12970--- Name: l_musicinterest_typeid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12971+-- Name: l_musicinterest_typeid_key; Type: INDEX; Schema: public; Owner: pgsql
12972 --
12973
12974 CREATE UNIQUE INDEX l_musicinterest_typeid_key ON l_musicinterest USING btree (typeid);
12975
12976
12977 --
12978--- Name: member_memberid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12979+-- Name: member_memberid_key; Type: INDEX; Schema: public; Owner: pgsql
12980 --
12981
12982 CREATE UNIQUE INDEX member_memberid_key ON member USING btree (memberid);
12983
12984
12985 --
12986--- Name: member_office_member_office_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12987+-- Name: member_office_member_office_key; Type: INDEX; Schema: public; Owner: pgsql
12988 --
12989
12990 CREATE UNIQUE INDEX member_office_member_office_key ON member_officer USING btree (member_officerid);
12991
12992
12993 --
12994--- Name: officer_officerid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
12995+-- Name: officer_officerid_key; Type: INDEX; Schema: public; Owner: pgsql
12996 --
12997
12998 CREATE UNIQUE INDEX officer_officerid_key ON officer USING btree (officerid);
12999
13000
13001 --
13002--- Name: rec_record_dateadded_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13003+-- Name: rec_record_dateadded_key; Type: INDEX; Schema: public; Owner: web
13004 --
13005
13006 CREATE INDEX rec_record_dateadded_key ON rec_record USING btree (dateadded);
13007
13008
13009 --
13010--- Name: rec_record_format_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13011+-- Name: rec_record_format_key; Type: INDEX; Schema: public; Owner: web
13012 --
13013
13014 CREATE INDEX rec_record_format_key ON rec_record USING btree (format) WHERE (format = 's'::bpchar);
13015
13016
13017 --
13018--- Name: rec_record_recordid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13019+-- Name: rec_record_recordid_key; Type: INDEX; Schema: public; Owner: web
13020 --
13021
13022 CREATE UNIQUE INDEX rec_record_recordid_key ON rec_record USING btree (recordid);
13023
13024
13025 --
13026--- Name: rec_track_artist_index; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13027+-- Name: rec_track_artist_index; Type: INDEX; Schema: public; Owner: web
13028 --
13029
13030 CREATE INDEX rec_track_artist_index ON rec_track USING btree (artist);
13031
13032
13033 --
13034--- Name: rec_track_recordid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13035+-- Name: rec_track_recordid_key; Type: INDEX; Schema: public; Owner: web
13036 --
13037
13038 CREATE INDEX rec_track_recordid_key ON rec_track USING btree (recordid);
13039
13040
13041 --
13042--- Name: rec_track_trackid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13043+-- Name: rec_track_trackid_key; Type: INDEX; Schema: public; Owner: web
13044 --
13045
13046 CREATE UNIQUE INDEX rec_track_trackid_key ON rec_track USING btree (trackid);
13047
13048
13049 --
13050--- Name: rec_unique_recordid; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13051+-- Name: rec_unique_recordid; Type: INDEX; Schema: public; Owner: web
13052 --
13053
13054 CREATE INDEX rec_unique_recordid ON rec_labelqueue USING btree (recordid);
13055
13056
13057 --
13058--- Name: recommended_listening_chartweek_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13059+-- Name: recommended_listening_chartweek_key; Type: INDEX; Schema: public; Owner: web
13060 --
13061
13062 CREATE INDEX recommended_listening_chartweek_key ON recommended_listening USING btree (week);
13063
13064
13065 --
13066--- Name: strm_log_starttime_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13067+-- Name: sched_entrytype_entrytypenamenews_key; Type: INDEX; Schema: public; Owner: web
13068+--
13069+
13070+CREATE INDEX sched_entrytype_entrytypenamenews_key ON sched_entrytype USING btree (entrytypename) WHERE ((entrytypename)::text = 'News'::text);
13071+
13072+
13073+--
13074+-- Name: strm_log_starttime_key; Type: INDEX; Schema: public; Owner: web
13075 --
13076
13077 CREATE INDEX strm_log_starttime_key ON strm_log USING btree (starttime);
13078@@ -10398,14 +12270,14 @@
13079
13080
13081 --
13082--- Name: strm_log_steamid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13083+-- Name: strm_log_steamid_key; Type: INDEX; Schema: public; Owner: web
13084 --
13085
13086 CREATE INDEX strm_log_steamid_key ON strm_log USING btree (streamid);
13087
13088
13089 --
13090--- Name: team_teamid_key; Type: INDEX; Schema: public; Owner: myradio; Tablespace:
13091+-- Name: team_teamid_key; Type: INDEX; Schema: public; Owner: pgsql
13092 --
13093
13094 CREATE UNIQUE INDEX team_teamid_key ON team USING btree (teamid);
13095@@ -10414,163 +12286,207 @@
13096 SET search_path = schedule, pg_catalog;
13097
13098 --
13099--- Name: block_range_rule_end_time_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13100+-- Name: block_range_rule_end_time_index; Type: INDEX; Schema: schedule; Owner: web
13101 --
13102
13103 CREATE INDEX block_range_rule_end_time_index ON block_range_rule USING btree (end_time);
13104
13105
13106 --
13107--- Name: block_range_rule_start_time_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13108+-- Name: block_range_rule_start_time_index; Type: INDEX; Schema: schedule; Owner: web
13109 --
13110
13111 CREATE INDEX block_range_rule_start_time_index ON block_range_rule USING btree (start_time);
13112
13113
13114 --
13115--- Name: duration; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13116+-- Name: duration; Type: INDEX; Schema: schedule; Owner: web
13117 --
13118
13119 CREATE INDEX duration ON show_season_timeslot USING btree (duration);
13120
13121
13122 --
13123--- Name: season_metadata_effective_from_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13124+-- Name: season_metadata_effective_from_index; Type: INDEX; Schema: schedule; Owner: web
13125 --
13126
13127 CREATE INDEX season_metadata_effective_from_index ON season_metadata USING btree (effective_from);
13128
13129
13130 --
13131--- Name: season_metadata_effective_to_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13132+-- Name: season_metadata_effective_to_index; Type: INDEX; Schema: schedule; Owner: web
13133 --
13134
13135 CREATE INDEX season_metadata_effective_to_index ON season_metadata USING btree (effective_to);
13136
13137
13138 --
13139--- Name: show_credit_effective_from_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13140+-- Name: show_credit_effective_from_index; Type: INDEX; Schema: schedule; Owner: web
13141 --
13142
13143 CREATE INDEX show_credit_effective_from_index ON show_credit USING btree (effective_from);
13144
13145
13146 --
13147--- Name: show_credit_effective_to_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13148+-- Name: show_credit_effective_to_index; Type: INDEX; Schema: schedule; Owner: web
13149 --
13150
13151 CREATE INDEX show_credit_effective_to_index ON show_credit USING btree (effective_to);
13152
13153
13154 --
13155--- Name: show_id_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13156+-- Name: show_id_index; Type: INDEX; Schema: schedule; Owner: web
13157 --
13158
13159 CREATE INDEX show_id_index ON show_credit USING btree (show_id);
13160
13161
13162 --
13163--- Name: show_image_metadata_approvedid; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13164+-- Name: show_image_metadata_approvedid; Type: INDEX; Schema: schedule; Owner: django
13165 --
13166
13167 CREATE INDEX show_image_metadata_approvedid ON show_image_metadata USING btree (approvedid);
13168
13169
13170 --
13171--- Name: show_image_metadata_memberid; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13172+-- Name: show_image_metadata_memberid; Type: INDEX; Schema: schedule; Owner: django
13173 --
13174
13175 CREATE INDEX show_image_metadata_memberid ON show_image_metadata USING btree (memberid);
13176
13177
13178 --
13179--- Name: show_image_metadata_metadata_key_id; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13180+-- Name: show_image_metadata_metadata_key_id; Type: INDEX; Schema: schedule; Owner: django
13181 --
13182
13183 CREATE INDEX show_image_metadata_metadata_key_id ON show_image_metadata USING btree (metadata_key_id);
13184
13185
13186 --
13187--- Name: show_image_metadata_show_id; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13188+-- Name: show_image_metadata_show_id; Type: INDEX; Schema: schedule; Owner: django
13189 --
13190
13191 CREATE INDEX show_image_metadata_show_id ON show_image_metadata USING btree (show_id);
13192
13193
13194 --
13195--- Name: show_metadata_effective_from_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13196+-- Name: show_metadata_effective_from_index; Type: INDEX; Schema: schedule; Owner: web
13197 --
13198
13199 CREATE INDEX show_metadata_effective_from_index ON show_metadata USING btree (effective_from);
13200
13201
13202 --
13203--- Name: show_metadata_effective_to_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13204+-- Name: show_metadata_effective_to_index; Type: INDEX; Schema: schedule; Owner: web
13205 --
13206
13207 CREATE INDEX show_metadata_effective_to_index ON show_metadata USING btree (effective_to);
13208
13209
13210 --
13211--- Name: show_podcast_link_podcast_id; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13212+-- Name: show_podcast_link_podcast_id; Type: INDEX; Schema: schedule; Owner: django
13213 --
13214
13215 CREATE INDEX show_podcast_link_podcast_id ON show_podcast_link USING btree (podcast_id);
13216
13217
13218 --
13219--- Name: show_season_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13220+-- Name: show_season_index; Type: INDEX; Schema: schedule; Owner: web
13221 --
13222
13223 CREATE INDEX show_season_index ON show_season_timeslot USING btree (show_season_id);
13224
13225
13226 --
13227--- Name: start_time_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13228+-- Name: start_time_index; Type: INDEX; Schema: schedule; Owner: web
13229 --
13230
13231 CREATE INDEX start_time_index ON show_season_timeslot USING btree (start_time);
13232
13233
13234 --
13235--- Name: timeslot_metadata_effective_from_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13236+-- Name: timeslot_metadata_effective_from_index; Type: INDEX; Schema: schedule; Owner: web
13237 --
13238
13239 CREATE INDEX timeslot_metadata_effective_from_index ON timeslot_metadata USING btree (effective_from);
13240
13241
13242 --
13243--- Name: timeslot_metadata_effective_to_index; Type: INDEX; Schema: schedule; Owner: myradio; Tablespace:
13244+-- Name: timeslot_metadata_effective_to_index; Type: INDEX; Schema: schedule; Owner: web
13245 --
13246
13247 CREATE INDEX timeslot_metadata_effective_to_index ON timeslot_metadata USING btree (effective_to);
13248
13249
13250+SET search_path = smsd, pg_catalog;
13251+
13252+--
13253+-- Name: outbox_date; Type: INDEX; Schema: smsd; Owner: xsms
13254+--
13255+
13256+CREATE INDEX outbox_date ON outbox USING btree ("SendingDateTime", "SendingTimeOut");
13257+
13258+
13259+--
13260+-- Name: outbox_sender; Type: INDEX; Schema: smsd; Owner: xsms
13261+--
13262+
13263+CREATE INDEX outbox_sender ON outbox USING btree ("SenderID");
13264+
13265+
13266+--
13267+-- Name: sentitems_date; Type: INDEX; Schema: smsd; Owner: xsms
13268+--
13269+
13270+CREATE INDEX sentitems_date ON sentitems USING btree ("DeliveryDateTime");
13271+
13272+
13273+--
13274+-- Name: sentitems_dest; Type: INDEX; Schema: smsd; Owner: xsms
13275+--
13276+
13277+CREATE INDEX sentitems_dest ON sentitems USING btree ("DestinationNumber");
13278+
13279+
13280+--
13281+-- Name: sentitems_sender; Type: INDEX; Schema: smsd; Owner: xsms
13282+--
13283+
13284+CREATE INDEX sentitems_sender ON sentitems USING btree ("SenderID");
13285+
13286+
13287+--
13288+-- Name: sentitems_tpmr; Type: INDEX; Schema: smsd; Owner: xsms
13289+--
13290+
13291+CREATE INDEX sentitems_tpmr ON sentitems USING btree ("TPMR");
13292+
13293+
13294 SET search_path = tracklist, pg_catalog;
13295
13296 --
13297--- Name: index_tracklist_tracklist_timeslotid; Type: INDEX; Schema: tracklist; Owner: myradio; Tablespace:
13298+-- Name: index_tracklist_tracklist_timeslotid; Type: INDEX; Schema: tracklist; Owner: web
13299 --
13300
13301 CREATE INDEX index_tracklist_tracklist_timeslotid ON tracklist USING btree (timeslotid);
13302
13303
13304 --
13305--- Name: index_tracklist_tracklist_timestart; Type: INDEX; Schema: tracklist; Owner: myradio; Tablespace:
13306+-- Name: index_tracklist_tracklist_timestart; Type: INDEX; Schema: tracklist; Owner: web
13307 --
13308
13309 CREATE INDEX index_tracklist_tracklist_timestart ON tracklist USING btree (timestart);
13310
13311
13312 --
13313--- Name: index_tracklist_tracklist_timestop; Type: INDEX; Schema: tracklist; Owner: myradio; Tablespace:
13314+-- Name: index_tracklist_tracklist_timestop; Type: INDEX; Schema: tracklist; Owner: web
13315 --
13316
13317 CREATE INDEX index_tracklist_tracklist_timestop ON tracklist USING btree (timestop);
13318
13319
13320 --
13321--- Name: tracklist_tracklist_timeslotid; Type: INDEX; Schema: tracklist; Owner: myradio; Tablespace:
13322+-- Name: tracklist_tracklist_timeslotid; Type: INDEX; Schema: tracklist; Owner: web
13323 --
13324
13325 CREATE INDEX tracklist_tracklist_timeslotid ON tracklist USING btree (timeslotid);
13326@@ -10579,133 +12495,133 @@
13327 SET search_path = uryplayer, pg_catalog;
13328
13329 --
13330--- Name: podcast_approvedid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13331+-- Name: podcast_approvedid; Type: INDEX; Schema: uryplayer; Owner: django
13332 --
13333
13334 CREATE INDEX podcast_approvedid ON podcast USING btree (approvedid);
13335
13336
13337 --
13338--- Name: podcast_credit_approvedid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13339+-- Name: podcast_credit_approvedid; Type: INDEX; Schema: uryplayer; Owner: django
13340 --
13341
13342 CREATE INDEX podcast_credit_approvedid ON podcast_credit USING btree (approvedid);
13343
13344
13345 --
13346--- Name: podcast_credit_credit_type_id; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13347+-- Name: podcast_credit_credit_type_id; Type: INDEX; Schema: uryplayer; Owner: django
13348 --
13349
13350 CREATE INDEX podcast_credit_credit_type_id ON podcast_credit USING btree (credit_type_id);
13351
13352
13353 --
13354--- Name: podcast_credit_creditid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13355+-- Name: podcast_credit_creditid; Type: INDEX; Schema: uryplayer; Owner: django
13356 --
13357
13358 CREATE INDEX podcast_credit_creditid ON podcast_credit USING btree (creditid);
13359
13360
13361 --
13362--- Name: podcast_credit_memberid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13363+-- Name: podcast_credit_memberid; Type: INDEX; Schema: uryplayer; Owner: django
13364 --
13365
13366 CREATE INDEX podcast_credit_memberid ON podcast_credit USING btree (memberid);
13367
13368
13369 --
13370--- Name: podcast_credit_podcast_id; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13371+-- Name: podcast_credit_podcast_id; Type: INDEX; Schema: uryplayer; Owner: django
13372 --
13373
13374 CREATE INDEX podcast_credit_podcast_id ON podcast_credit USING btree (podcast_id);
13375
13376
13377 --
13378--- Name: podcast_image_metadata_approvedid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13379+-- Name: podcast_image_metadata_approvedid; Type: INDEX; Schema: uryplayer; Owner: django
13380 --
13381
13382 CREATE INDEX podcast_image_metadata_approvedid ON podcast_image_metadata USING btree (approvedid);
13383
13384
13385 --
13386--- Name: podcast_image_metadata_memberid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13387+-- Name: podcast_image_metadata_memberid; Type: INDEX; Schema: uryplayer; Owner: django
13388 --
13389
13390 CREATE INDEX podcast_image_metadata_memberid ON podcast_image_metadata USING btree (memberid);
13391
13392
13393 --
13394--- Name: podcast_image_metadata_metadata_key_id; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13395+-- Name: podcast_image_metadata_metadata_key_id; Type: INDEX; Schema: uryplayer; Owner: django
13396 --
13397
13398 CREATE INDEX podcast_image_metadata_metadata_key_id ON podcast_image_metadata USING btree (metadata_key_id);
13399
13400
13401 --
13402--- Name: podcast_image_metadata_podcast_id; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13403+-- Name: podcast_image_metadata_podcast_id; Type: INDEX; Schema: uryplayer; Owner: django
13404 --
13405
13406 CREATE INDEX podcast_image_metadata_podcast_id ON podcast_image_metadata USING btree (podcast_id);
13407
13408
13409 --
13410--- Name: podcast_memberid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13411+-- Name: podcast_memberid; Type: INDEX; Schema: uryplayer; Owner: django
13412 --
13413
13414 CREATE INDEX podcast_memberid ON podcast USING btree (memberid);
13415
13416
13417 --
13418--- Name: podcast_metadata_approvedid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13419+-- Name: podcast_metadata_approvedid; Type: INDEX; Schema: uryplayer; Owner: django
13420 --
13421
13422 CREATE INDEX podcast_metadata_approvedid ON podcast_metadata USING btree (approvedid);
13423
13424
13425 --
13426--- Name: podcast_metadata_memberid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13427+-- Name: podcast_metadata_memberid; Type: INDEX; Schema: uryplayer; Owner: django
13428 --
13429
13430 CREATE INDEX podcast_metadata_memberid ON podcast_metadata USING btree (memberid);
13431
13432
13433 --
13434--- Name: podcast_metadata_metadata_key_id; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13435+-- Name: podcast_metadata_metadata_key_id; Type: INDEX; Schema: uryplayer; Owner: django
13436 --
13437
13438 CREATE INDEX podcast_metadata_metadata_key_id ON podcast_metadata USING btree (metadata_key_id);
13439
13440
13441 --
13442--- Name: podcast_metadata_podcast_id; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13443+-- Name: podcast_metadata_podcast_id; Type: INDEX; Schema: uryplayer; Owner: django
13444 --
13445
13446 CREATE INDEX podcast_metadata_podcast_id ON podcast_metadata USING btree (podcast_id);
13447
13448
13449 --
13450--- Name: podcast_package_entry_approvedid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13451+-- Name: podcast_package_entry_approvedid; Type: INDEX; Schema: uryplayer; Owner: django
13452 --
13453
13454 CREATE INDEX podcast_package_entry_approvedid ON podcast_package_entry USING btree (approvedid);
13455
13456
13457 --
13458--- Name: podcast_package_entry_memberid; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13459+-- Name: podcast_package_entry_memberid; Type: INDEX; Schema: uryplayer; Owner: django
13460 --
13461
13462 CREATE INDEX podcast_package_entry_memberid ON podcast_package_entry USING btree (memberid);
13463
13464
13465 --
13466--- Name: podcast_package_entry_package_id; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13467+-- Name: podcast_package_entry_package_id; Type: INDEX; Schema: uryplayer; Owner: django
13468 --
13469
13470 CREATE INDEX podcast_package_entry_package_id ON podcast_package_entry USING btree (package_id);
13471
13472
13473 --
13474--- Name: podcast_package_entry_podcast_id; Type: INDEX; Schema: uryplayer; Owner: myradio; Tablespace:
13475+-- Name: podcast_package_entry_podcast_id; Type: INDEX; Schema: uryplayer; Owner: django
13476 --
13477
13478 CREATE INDEX podcast_package_entry_podcast_id ON podcast_package_entry USING btree (podcast_id);
13479@@ -10714,105 +12630,105 @@
13480 SET search_path = website, pg_catalog;
13481
13482 --
13483--- Name: banner_campaign_approvedid; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13484+-- Name: banner_campaign_approvedid; Type: INDEX; Schema: website; Owner: django
13485 --
13486
13487 CREATE INDEX banner_campaign_approvedid ON banner_campaign USING btree (approvedid);
13488
13489
13490 --
13491--- Name: banner_campaign_banner_id; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13492+-- Name: banner_campaign_banner_id; Type: INDEX; Schema: website; Owner: django
13493 --
13494
13495 CREATE INDEX banner_campaign_banner_id ON banner_campaign USING btree (banner_id);
13496
13497
13498 --
13499--- Name: banner_campaign_banner_location_id; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13500+-- Name: banner_campaign_banner_location_id; Type: INDEX; Schema: website; Owner: django
13501 --
13502
13503 CREATE INDEX banner_campaign_banner_location_id ON banner_campaign USING btree (banner_location_id);
13504
13505
13506 --
13507--- Name: banner_campaign_effective_from_index; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13508+-- Name: banner_campaign_effective_from_index; Type: INDEX; Schema: website; Owner: django
13509 --
13510
13511 CREATE INDEX banner_campaign_effective_from_index ON banner_campaign USING btree (effective_from);
13512
13513
13514 --
13515--- Name: banner_campaign_effective_to_index; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13516+-- Name: banner_campaign_effective_to_index; Type: INDEX; Schema: website; Owner: django
13517 --
13518
13519 CREATE INDEX banner_campaign_effective_to_index ON banner_campaign USING btree (effective_to);
13520
13521
13522 --
13523--- Name: banner_campaign_memberid; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13524+-- Name: banner_campaign_memberid; Type: INDEX; Schema: website; Owner: django
13525 --
13526
13527 CREATE INDEX banner_campaign_memberid ON banner_campaign USING btree (memberid);
13528
13529
13530 --
13531--- Name: banner_location_name; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13532+-- Name: banner_location_name; Type: INDEX; Schema: website; Owner: django
13533 --
13534
13535 CREATE INDEX banner_location_name ON banner_location USING btree (name);
13536
13537
13538 --
13539--- Name: banner_location_name_like; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13540+-- Name: banner_location_name_like; Type: INDEX; Schema: website; Owner: django
13541 --
13542
13543 CREATE INDEX banner_location_name_like ON banner_location USING btree (name varchar_pattern_ops);
13544
13545
13546 --
13547--- Name: banner_timeslot_approvedid; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13548+-- Name: banner_timeslot_approvedid; Type: INDEX; Schema: website; Owner: web
13549 --
13550
13551 CREATE INDEX banner_timeslot_approvedid ON banner_timeslot USING btree (approvedid);
13552
13553
13554 --
13555--- Name: banner_timeslot_banner_campaign_id; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13556+-- Name: banner_timeslot_banner_campaign_id; Type: INDEX; Schema: website; Owner: web
13557 --
13558
13559 CREATE INDEX banner_timeslot_banner_campaign_id ON banner_timeslot USING btree (banner_campaign_id);
13560
13561
13562 --
13563--- Name: banner_timeslot_from_time_index; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13564+-- Name: banner_timeslot_from_time_index; Type: INDEX; Schema: website; Owner: web
13565 --
13566
13567 CREATE INDEX banner_timeslot_from_time_index ON banner_timeslot USING btree (start_time);
13568
13569
13570 --
13571--- Name: banner_timeslot_memberid; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13572+-- Name: banner_timeslot_memberid; Type: INDEX; Schema: website; Owner: web
13573 --
13574
13575 CREATE INDEX banner_timeslot_memberid ON banner_timeslot USING btree (memberid);
13576
13577
13578 --
13579--- Name: banner_timeslot_to_time_index; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13580+-- Name: banner_timeslot_to_time_index; Type: INDEX; Schema: website; Owner: web
13581 --
13582
13583 CREATE INDEX banner_timeslot_to_time_index ON banner_timeslot USING btree (end_time);
13584
13585
13586 --
13587--- Name: banner_type_name; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13588+-- Name: banner_type_name; Type: INDEX; Schema: website; Owner: django
13589 --
13590
13591 CREATE INDEX banner_type_name ON banner_type USING btree (name);
13592
13593
13594 --
13595--- Name: banner_type_name_like; Type: INDEX; Schema: website; Owner: myradio; Tablespace:
13596+-- Name: banner_type_name_like; Type: INDEX; Schema: website; Owner: django
13597 --
13598
13599 CREATE INDEX banner_type_name_like ON banner_type USING btree (name varchar_pattern_ops);
13600@@ -10821,14 +12737,14 @@
13601 SET search_path = public, pg_catalog;
13602
13603 --
13604--- Name: bapstotracklist; Type: TRIGGER; Schema: public; Owner: myradio
13605+-- Name: bapstotracklist; Type: TRIGGER; Schema: public; Owner: web
13606 --
13607
13608 CREATE TRIGGER bapstotracklist AFTER UPDATE ON baps_audiolog FOR EACH ROW EXECUTE PROCEDURE bapstotracklist();
13609
13610
13611 --
13612--- Name: clearitem; Type: TRIGGER; Schema: public; Owner: myradio
13613+-- Name: clearitem; Type: TRIGGER; Schema: public; Owner: web
13614 --
13615
13616 CREATE TRIGGER clearitem BEFORE DELETE ON baps_item FOR EACH ROW EXECUTE PROCEDURE clear_item_func();
13617@@ -10837,16 +12753,53 @@
13618
13619
13620 --
13621--- Name: set_shelfcode_trigger; Type: TRIGGER; Schema: public; Owner: myradio
13622+-- Name: set_shelfcode_trigger; Type: TRIGGER; Schema: public; Owner: web
13623 --
13624
13625 CREATE TRIGGER set_shelfcode_trigger BEFORE INSERT ON rec_record FOR EACH ROW EXECUTE PROCEDURE set_shelfcode_func();
13626
13627
13628+SET search_path = smsd, pg_catalog;
13629+
13630+--
13631+-- Name: gammutafter; Type: TRIGGER; Schema: smsd; Owner: xsms
13632+--
13633+
13634+CREATE TRIGGER gammutafter AFTER INSERT ON inbox FOR EACH ROW EXECUTE PROCEDURE public.process_gammu_text();
13635+
13636+
13637+--
13638+-- Name: update_timestamp; Type: TRIGGER; Schema: smsd; Owner: xsms
13639+--
13640+
13641+CREATE TRIGGER update_timestamp BEFORE UPDATE ON inbox FOR EACH ROW EXECUTE PROCEDURE public.update_timestamp();
13642+
13643+
13644+--
13645+-- Name: update_timestamp; Type: TRIGGER; Schema: smsd; Owner: xsms
13646+--
13647+
13648+CREATE TRIGGER update_timestamp BEFORE UPDATE ON outbox FOR EACH ROW EXECUTE PROCEDURE public.update_timestamp();
13649+
13650+
13651+--
13652+-- Name: update_timestamp; Type: TRIGGER; Schema: smsd; Owner: xsms
13653+--
13654+
13655+CREATE TRIGGER update_timestamp BEFORE UPDATE ON phones FOR EACH ROW EXECUTE PROCEDURE public.update_timestamp();
13656+
13657+
13658+--
13659+-- Name: update_timestamp; Type: TRIGGER; Schema: smsd; Owner: xsms
13660+--
13661+
13662+CREATE TRIGGER update_timestamp BEFORE UPDATE ON sentitems FOR EACH ROW EXECUTE PROCEDURE public.update_timestamp();
13663+
13664+
13665 SET search_path = bapsplanner, pg_catalog;
13666
13667 --
13668--- Name: managed_items_managedplaylistid_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: myradio
13669+-- Name: managed_items_managedplaylistid_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: web
13670 --
13671
13672 ALTER TABLE ONLY managed_items
13673@@ -10854,7 +12807,7 @@
13674
13675
13676 --
13677--- Name: managed_items_memberid_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: myradio
13678+-- Name: managed_items_memberid_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: web
13679 --
13680
13681 ALTER TABLE ONLY managed_items
13682@@ -10862,7 +12815,7 @@
13683
13684
13685 --
13686--- Name: secure_play_token_trackid_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: myradio
13687+-- Name: secure_play_token_trackid_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: web
13688 --
13689
13690 ALTER TABLE ONLY secure_play_token
13691@@ -10870,7 +12823,7 @@
13692
13693
13694 --
13695--- Name: spt_fk_memberid; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: myradio
13696+-- Name: spt_fk_memberid; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: web
13697 --
13698
13699 ALTER TABLE ONLY secure_play_token
13700@@ -10878,7 +12831,7 @@
13701
13702
13703 --
13704--- Name: timeslot_change_ops_client_id_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: myradio
13705+-- Name: timeslot_change_ops_client_id_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: web
13706 --
13707
13708 ALTER TABLE ONLY timeslot_change_ops
13709@@ -10886,7 +12839,7 @@
13710
13711
13712 --
13713--- Name: timeslot_items_rec_track_id_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: myradio
13714+-- Name: timeslot_items_rec_track_id_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: web
13715 --
13716
13717 ALTER TABLE ONLY timeslot_items
13718@@ -10894,17 +12847,27 @@
13719
13720
13721 --
13722--- Name: timeslot_items_timeslot_id_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: myradio
13723+-- Name: timeslot_items_timeslot_id_fkey; Type: FK CONSTRAINT; Schema: bapsplanner; Owner: web
13724 --
13725
13726 ALTER TABLE ONLY timeslot_items
13727 ADD CONSTRAINT timeslot_items_timeslot_id_fkey FOREIGN KEY (timeslot_id) REFERENCES schedule.show_season_timeslot(show_season_timeslot_id) ON UPDATE CASCADE ON DELETE CASCADE;
13728
13729
13730+SET search_path = deploy, pg_catalog;
13731+
13732+--
13733+-- Name: myury_memberid_fkey; Type: FK CONSTRAINT; Schema: deploy; Owner: web
13734+--
13735+
13736+ALTER TABLE ONLY myury
13737+ ADD CONSTRAINT myury_memberid_fkey FOREIGN KEY (memberid) REFERENCES public.member(memberid) ON DELETE CASCADE;
13738+
13739+
13740 SET search_path = jukebox, pg_catalog;
13741
13742 --
13743--- Name: jukebox_playlist_lock; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13744+-- Name: jukebox_playlist_lock; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13745 --
13746
13747 ALTER TABLE ONLY playlists
13748@@ -10912,7 +12875,15 @@
13749
13750
13751 --
13752--- Name: playlist_entries_playlistid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13753+-- Name: playlist_availability_playlistid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13754+--
13755+
13756+ALTER TABLE ONLY playlist_availability
13757+ ADD CONSTRAINT playlist_availability_playlistid_fkey FOREIGN KEY (playlistid) REFERENCES playlists(playlistid) ON UPDATE CASCADE;
13758+
13759+
13760+--
13761+-- Name: playlist_entries_playlistid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13762 --
13763
13764 ALTER TABLE ONLY playlist_entries
13765@@ -10920,7 +12891,7 @@
13766
13767
13768 --
13769--- Name: playlist_entries_playlistid_fkey1; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13770+-- Name: playlist_entries_playlistid_fkey1; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13771 --
13772
13773 ALTER TABLE ONLY playlist_entries
13774@@ -10928,7 +12899,7 @@
13775
13776
13777 --
13778--- Name: playlist_entries_playlistid_fkey2; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13779+-- Name: playlist_entries_playlistid_fkey2; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13780 --
13781
13782 ALTER TABLE ONLY playlist_entries
13783@@ -10936,7 +12907,7 @@
13784
13785
13786 --
13787--- Name: playlist_entries_trackid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13788+-- Name: playlist_entries_trackid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13789 --
13790
13791 ALTER TABLE ONLY playlist_entries
13792@@ -10944,7 +12915,7 @@
13793
13794
13795 --
13796--- Name: playlist_revisions_author_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13797+-- Name: playlist_revisions_author_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13798 --
13799
13800 ALTER TABLE ONLY playlist_revisions
13801@@ -10952,7 +12923,7 @@
13802
13803
13804 --
13805--- Name: playlist_revisions_playlistid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13806+-- Name: playlist_revisions_playlistid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13807 --
13808
13809 ALTER TABLE ONLY playlist_revisions
13810@@ -10960,7 +12931,7 @@
13811
13812
13813 --
13814--- Name: playlist_timeslot_approvedid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13815+-- Name: playlist_timeslot_approvedid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13816 --
13817
13818 ALTER TABLE ONLY playlist_timeslot
13819@@ -10968,7 +12939,7 @@
13820
13821
13822 --
13823--- Name: playlist_timeslot_memberid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13824+-- Name: playlist_timeslot_memberid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13825 --
13826
13827 ALTER TABLE ONLY playlist_timeslot
13828@@ -10976,15 +12947,15 @@
13829
13830
13831 --
13832--- Name: playlist_timeslot_playlistid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13833+-- Name: playlist_timeslot_playlist_availability_id_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13834 --
13835
13836 ALTER TABLE ONLY playlist_timeslot
13837- ADD CONSTRAINT playlist_timeslot_playlistid_fkey FOREIGN KEY (playlistid) REFERENCES playlists(playlistid);
13838+ ADD CONSTRAINT playlist_timeslot_playlist_availability_id_fkey FOREIGN KEY (playlist_availability_id) REFERENCES playlist_availability(playlist_availability_id);
13839
13840
13841 --
13842--- Name: request_memberid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13843+-- Name: request_memberid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13844 --
13845
13846 ALTER TABLE ONLY request
13847@@ -10992,7 +12963,7 @@
13848
13849
13850 --
13851--- Name: request_trackid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13852+-- Name: request_trackid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13853 --
13854
13855 ALTER TABLE ONLY request
13856@@ -11000,7 +12971,7 @@
13857
13858
13859 --
13860--- Name: silence_log_handledby_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13861+-- Name: silence_log_handledby_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13862 --
13863
13864 ALTER TABLE ONLY silence_log
13865@@ -11008,17 +12979,53 @@
13866
13867
13868 --
13869--- Name: track_blacklist_trackid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: myradio
13870+-- Name: track_blacklist_trackid_fkey; Type: FK CONSTRAINT; Schema: jukebox; Owner: web
13871 --
13872
13873 ALTER TABLE ONLY track_blacklist
13874 ADD CONSTRAINT track_blacklist_trackid_fkey FOREIGN KEY (trackid) REFERENCES public.rec_track(trackid);
13875
13876
13877+SET search_path = loggerng, pg_catalog;
13878+
13879+--
13880+-- Name: requests_start_fkey; Type: FK CONSTRAINT; Schema: loggerng; Owner: web
13881+--
13882+
13883+ALTER TABLE ONLY requests
13884+ ADD CONSTRAINT requests_start_fkey FOREIGN KEY (start, "end", format) REFERENCES logs(start, "end", format) ON UPDATE CASCADE ON DELETE CASCADE;
13885+
13886+
13887+--
13888+-- Name: requests_user_fkey; Type: FK CONSTRAINT; Schema: loggerng; Owner: web
13889+--
13890+
13891+ALTER TABLE ONLY requests
13892+ ADD CONSTRAINT requests_user_fkey FOREIGN KEY ("user") REFERENCES public.member(memberid);
13893+
13894+
13895+SET search_path = loggerng_test, pg_catalog;
13896+
13897+--
13898+-- Name: requests_start_fkey; Type: FK CONSTRAINT; Schema: loggerng_test; Owner: web
13899+--
13900+
13901+ALTER TABLE ONLY requests
13902+ ADD CONSTRAINT requests_start_fkey FOREIGN KEY (start, "end", format) REFERENCES logs(start, "end", format) ON UPDATE CASCADE ON DELETE CASCADE;
13903+
13904+
13905+--
13906+-- Name: requests_user_fkey; Type: FK CONSTRAINT; Schema: loggerng_test; Owner: web
13907+--
13908+
13909+ALTER TABLE ONLY requests
13910+ ADD CONSTRAINT requests_user_fkey FOREIGN KEY ("user") REFERENCES public.member(memberid);
13911+
13912+
13913 SET search_path = mail, pg_catalog;
13914
13915 --
13916--- Name: alias_list_alias_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13917+-- Name: alias_list_alias_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13918 --
13919
13920 ALTER TABLE ONLY alias_list
13921@@ -11026,7 +13033,7 @@
13922
13923
13924 --
13925--- Name: alias_list_destination_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13926+-- Name: alias_list_destination_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13927 --
13928
13929 ALTER TABLE ONLY alias_list
13930@@ -11034,7 +13041,7 @@
13931
13932
13933 --
13934--- Name: alias_member_alias_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13935+-- Name: alias_member_alias_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13936 --
13937
13938 ALTER TABLE ONLY alias_member
13939@@ -11042,7 +13049,7 @@
13940
13941
13942 --
13943--- Name: alias_member_destination_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13944+-- Name: alias_member_destination_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13945 --
13946
13947 ALTER TABLE ONLY alias_member
13948@@ -11050,7 +13057,7 @@
13949
13950
13951 --
13952--- Name: alias_officer_alias_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13953+-- Name: alias_officer_alias_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13954 --
13955
13956 ALTER TABLE ONLY alias_officer
13957@@ -11058,7 +13065,7 @@
13958
13959
13960 --
13961--- Name: alias_officer_destination_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13962+-- Name: alias_officer_destination_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13963 --
13964
13965 ALTER TABLE ONLY alias_officer
13966@@ -11066,7 +13073,7 @@
13967
13968
13969 --
13970--- Name: alias_text_alias_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13971+-- Name: alias_text_alias_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13972 --
13973
13974 ALTER TABLE ONLY alias_text
13975@@ -11074,7 +13081,7 @@
13976
13977
13978 --
13979--- Name: email_recipient_list_email_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13980+-- Name: email_recipient_list_email_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13981 --
13982
13983 ALTER TABLE ONLY email_recipient_list
13984@@ -11082,7 +13089,7 @@
13985
13986
13987 --
13988--- Name: email_recipient_list_listid_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13989+-- Name: email_recipient_list_listid_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13990 --
13991
13992 ALTER TABLE ONLY email_recipient_list
13993@@ -11090,7 +13097,7 @@
13994
13995
13996 --
13997--- Name: email_recipient_user_email_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
13998+-- Name: email_recipient_user_email_id_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
13999 --
14000
14001 ALTER TABLE ONLY email_recipient_member
14002@@ -11098,7 +13105,7 @@
14003
14004
14005 --
14006--- Name: email_recipient_user_memberid_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
14007+-- Name: email_recipient_user_memberid_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
14008 --
14009
14010 ALTER TABLE ONLY email_recipient_member
14011@@ -11106,7 +13113,7 @@
14012
14013
14014 --
14015--- Name: email_sender_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: myradio
14016+-- Name: email_sender_fkey; Type: FK CONSTRAINT; Schema: mail; Owner: web
14017 --
14018
14019 ALTER TABLE ONLY email
14020@@ -11116,7 +13123,7 @@
14021 SET search_path = metadata, pg_catalog;
14022
14023 --
14024--- Name: package_image_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: myradio
14025+-- Name: package_image_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: django
14026 --
14027
14028 ALTER TABLE ONLY package_image_metadata
14029@@ -11124,7 +13131,7 @@
14030
14031
14032 --
14033--- Name: package_image_metadata_element_id_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: myradio
14034+-- Name: package_image_metadata_element_id_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: django
14035 --
14036
14037 ALTER TABLE ONLY package_image_metadata
14038@@ -11132,7 +13139,7 @@
14039
14040
14041 --
14042--- Name: package_image_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: myradio
14043+-- Name: package_image_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: django
14044 --
14045
14046 ALTER TABLE ONLY package_image_metadata
14047@@ -11140,7 +13147,7 @@
14048
14049
14050 --
14051--- Name: package_image_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: myradio
14052+-- Name: package_image_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: django
14053 --
14054
14055 ALTER TABLE ONLY package_image_metadata
14056@@ -11148,7 +13155,7 @@
14057
14058
14059 --
14060--- Name: package_text_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: myradio
14061+-- Name: package_text_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: django
14062 --
14063
14064 ALTER TABLE ONLY package_text_metadata
14065@@ -11156,7 +13163,7 @@
14066
14067
14068 --
14069--- Name: package_text_metadata_element_id_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: myradio
14070+-- Name: package_text_metadata_element_id_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: django
14071 --
14072
14073 ALTER TABLE ONLY package_text_metadata
14074@@ -11164,7 +13171,7 @@
14075
14076
14077 --
14078--- Name: package_text_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: myradio
14079+-- Name: package_text_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: django
14080 --
14081
14082 ALTER TABLE ONLY package_text_metadata
14083@@ -11172,7 +13179,7 @@
14084
14085
14086 --
14087--- Name: package_text_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: myradio
14088+-- Name: package_text_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: metadata; Owner: django
14089 --
14090
14091 ALTER TABLE ONLY package_text_metadata
14092@@ -11182,7 +13189,7 @@
14093 SET search_path = music, pg_catalog;
14094
14095 --
14096--- Name: chart_release_chart_type_id_fkey; Type: FK CONSTRAINT; Schema: music; Owner: myradio
14097+-- Name: chart_release_chart_type_id_fkey; Type: FK CONSTRAINT; Schema: music; Owner: django
14098 --
14099
14100 ALTER TABLE ONLY chart_release
14101@@ -11190,7 +13197,7 @@
14102
14103
14104 --
14105--- Name: chart_row_chart_release_id_fkey; Type: FK CONSTRAINT; Schema: music; Owner: myradio
14106+-- Name: chart_row_chart_release_id_fkey; Type: FK CONSTRAINT; Schema: music; Owner: django
14107 --
14108
14109 ALTER TABLE ONLY chart_row
14110@@ -11198,7 +13205,7 @@
14111
14112
14113 --
14114--- Name: chart_row_trackid_fkey; Type: FK CONSTRAINT; Schema: music; Owner: myradio
14115+-- Name: chart_row_trackid_fkey; Type: FK CONSTRAINT; Schema: music; Owner: django
14116 --
14117
14118 ALTER TABLE ONLY chart_row
14119@@ -11206,7 +13213,7 @@
14120
14121
14122 --
14123--- Name: explicit_checked_fkey; Type: FK CONSTRAINT; Schema: music; Owner: myradio
14124+-- Name: explicit_checked_fkey; Type: FK CONSTRAINT; Schema: music; Owner: web
14125 --
14126
14127 ALTER TABLE ONLY explicit_checked
14128@@ -11216,7 +13223,7 @@
14129 SET search_path = myury, pg_catalog;
14130
14131 --
14132--- Name: act_permission_actionid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14133+-- Name: act_permission_actionid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14134 --
14135
14136 ALTER TABLE ONLY act_permission
14137@@ -11224,7 +13231,7 @@
14138
14139
14140 --
14141--- Name: act_permission_moduleid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14142+-- Name: act_permission_moduleid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14143 --
14144
14145 ALTER TABLE ONLY act_permission
14146@@ -11232,7 +13239,7 @@
14147
14148
14149 --
14150--- Name: act_permission_serviceid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14151+-- Name: act_permission_serviceid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14152 --
14153
14154 ALTER TABLE ONLY act_permission
14155@@ -11240,7 +13247,7 @@
14156
14157
14158 --
14159--- Name: act_permission_typeid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14160+-- Name: act_permission_typeid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14161 --
14162
14163 ALTER TABLE ONLY act_permission
14164@@ -11248,7 +13255,7 @@
14165
14166
14167 --
14168--- Name: actions_moduleid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14169+-- Name: actions_moduleid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14170 --
14171
14172 ALTER TABLE ONLY actions
14173@@ -11256,7 +13263,7 @@
14174
14175
14176 --
14177--- Name: api_key_auth_api_key_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14178+-- Name: api_key_auth_api_key_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14179 --
14180
14181 ALTER TABLE ONLY api_key_auth
14182@@ -11264,7 +13271,7 @@
14183
14184
14185 --
14186--- Name: api_key_auth_auth_id_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14187+-- Name: api_key_auth_auth_id_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14188 --
14189
14190 ALTER TABLE ONLY api_key_auth
14191@@ -11272,7 +13279,7 @@
14192
14193
14194 --
14195--- Name: api_key_log_key_string_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14196+-- Name: api_key_log_key_string_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14197 --
14198
14199 ALTER TABLE ONLY api_key_log
14200@@ -11280,7 +13287,7 @@
14201
14202
14203 --
14204--- Name: api_method_auth_typeid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14205+-- Name: api_method_auth_typeid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14206 --
14207
14208 ALTER TABLE ONLY api_method_auth
14209@@ -11288,7 +13295,7 @@
14210
14211
14212 --
14213--- Name: api_mixin_auth_typeid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14214+-- Name: api_mixin_auth_typeid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14215 --
14216
14217 ALTER TABLE ONLY api_mixin_auth
14218@@ -11296,7 +13303,7 @@
14219
14220
14221 --
14222--- Name: award_member_awardedby_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14223+-- Name: award_member_awardedby_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14224 --
14225
14226 ALTER TABLE ONLY award_member
14227@@ -11304,7 +13311,7 @@
14228
14229
14230 --
14231--- Name: award_member_awardid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14232+-- Name: award_member_awardid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14233 --
14234
14235 ALTER TABLE ONLY award_member
14236@@ -11312,7 +13319,7 @@
14237
14238
14239 --
14240--- Name: award_member_memberid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14241+-- Name: award_member_memberid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14242 --
14243
14244 ALTER TABLE ONLY award_member
14245@@ -11320,7 +13327,39 @@
14246
14247
14248 --
14249--- Name: modules_serviceid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14250+-- Name: menu_links_sectionid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14251+--
14252+
14253+ALTER TABLE ONLY menu_links
14254+ ADD CONSTRAINT menu_links_sectionid_fkey FOREIGN KEY (sectionid) REFERENCES menu_sections(sectionid) ON DELETE CASCADE;
14255+
14256+
14257+--
14258+-- Name: menu_module_moduleid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14259+--
14260+
14261+ALTER TABLE ONLY menu_module
14262+ ADD CONSTRAINT menu_module_moduleid_fkey FOREIGN KEY (moduleid) REFERENCES modules(moduleid) ON UPDATE CASCADE ON DELETE CASCADE;
14263+
14264+
14265+--
14266+-- Name: menu_sections_columnid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14267+--
14268+
14269+ALTER TABLE ONLY menu_sections
14270+ ADD CONSTRAINT menu_sections_columnid_fkey FOREIGN KEY (columnid) REFERENCES menu_columns(columnid) ON DELETE CASCADE;
14271+
14272+
14273+--
14274+-- Name: menu_twigitems_sectionid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14275+--
14276+
14277+ALTER TABLE ONLY menu_twigitems
14278+ ADD CONSTRAINT menu_twigitems_sectionid_fkey FOREIGN KEY (sectionid) REFERENCES menu_sections(sectionid) ON DELETE CASCADE;
14279+
14280+
14281+--
14282+-- Name: modules_serviceid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14283 --
14284
14285 ALTER TABLE ONLY modules
14286@@ -11328,7 +13367,7 @@
14287
14288
14289 --
14290--- Name: password_reset_token_memberid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14291+-- Name: password_reset_token_memberid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14292 --
14293
14294 ALTER TABLE ONLY password_reset_token
14295@@ -11336,7 +13375,7 @@
14296
14297
14298 --
14299--- Name: services_versions_member_memberid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14300+-- Name: services_versions_member_memberid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14301 --
14302
14303 ALTER TABLE ONLY services_versions_member
14304@@ -11344,7 +13383,7 @@
14305
14306
14307 --
14308--- Name: services_versions_member_serviceversionid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14309+-- Name: services_versions_member_serviceversionid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14310 --
14311
14312 ALTER TABLE ONLY services_versions_member
14313@@ -11352,7 +13391,7 @@
14314
14315
14316 --
14317--- Name: services_versions_serviceid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: myradio
14318+-- Name: services_versions_serviceid_fkey; Type: FK CONSTRAINT; Schema: myury; Owner: web
14319 --
14320
14321 ALTER TABLE ONLY services_versions
14322@@ -11362,7 +13401,7 @@
14323 SET search_path = people, pg_catalog;
14324
14325 --
14326--- Name: group_root_role_group_leader_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14327+-- Name: group_root_role_group_leader_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: pgsql
14328 --
14329
14330 ALTER TABLE ONLY group_root_role
14331@@ -11370,7 +13409,7 @@
14332
14333
14334 --
14335--- Name: group_root_role_group_type_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14336+-- Name: group_root_role_group_type_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: pgsql
14337 --
14338
14339 ALTER TABLE ONLY group_root_role
14340@@ -11378,7 +13417,7 @@
14341
14342
14343 --
14344--- Name: group_root_role_role_id_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14345+-- Name: group_root_role_role_id_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: pgsql
14346 --
14347
14348 ALTER TABLE ONLY group_root_role
14349@@ -11386,7 +13425,7 @@
14350
14351
14352 --
14353--- Name: metadata_roleid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14354+-- Name: metadata_roleid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: web
14355 --
14356
14357 ALTER TABLE ONLY metadata
14358@@ -11394,7 +13433,7 @@
14359
14360
14361 --
14362--- Name: parents_childid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14363+-- Name: parents_childid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: web
14364 --
14365
14366 ALTER TABLE ONLY role_inheritance
14367@@ -11402,7 +13441,7 @@
14368
14369
14370 --
14371--- Name: parents_parentid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14372+-- Name: parents_parentid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: web
14373 --
14374
14375 ALTER TABLE ONLY role_inheritance
14376@@ -11410,7 +13449,7 @@
14377
14378
14379 --
14380--- Name: quote_source_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14381+-- Name: quote_source_fkey; Type: FK CONSTRAINT; Schema: people; Owner: web
14382 --
14383
14384 ALTER TABLE ONLY quote
14385@@ -11418,7 +13457,7 @@
14386
14387
14388 --
14389--- Name: role_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14390+-- Name: role_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: web
14391 --
14392
14393 ALTER TABLE ONLY role_text_metadata
14394@@ -11426,7 +13465,7 @@
14395
14396
14397 --
14398--- Name: role_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14399+-- Name: role_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: people; Owner: web
14400 --
14401
14402 ALTER TABLE ONLY role_text_metadata
14403@@ -11434,7 +13473,7 @@
14404
14405
14406 --
14407--- Name: role_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14408+-- Name: role_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: web
14409 --
14410
14411 ALTER TABLE ONLY role_text_metadata
14412@@ -11442,7 +13481,7 @@
14413
14414
14415 --
14416--- Name: role_metadata_role_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14417+-- Name: role_metadata_role_id_fkey; Type: FK CONSTRAINT; Schema: people; Owner: web
14418 --
14419
14420 ALTER TABLE ONLY role_text_metadata
14421@@ -11450,7 +13489,7 @@
14422
14423
14424 --
14425--- Name: roles_visibilitylevel_fkey; Type: FK CONSTRAINT; Schema: people; Owner: myradio
14426+-- Name: roles_visibilitylevel_fkey; Type: FK CONSTRAINT; Schema: people; Owner: web
14427 --
14428
14429 ALTER TABLE ONLY role
14430@@ -11460,7 +13499,7 @@
14431 SET search_path = public, pg_catalog;
14432
14433 --
14434--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14435+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14436 --
14437
14438 ALTER TABLE ONLY member_officer
14439@@ -11468,7 +13507,7 @@
14440
14441
14442 --
14443--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14444+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14445 --
14446
14447 ALTER TABLE ONLY team
14448@@ -11476,7 +13515,7 @@
14449
14450
14451 --
14452--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14453+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14454 --
14455
14456 ALTER TABLE ONLY officer
14457@@ -11484,7 +13523,7 @@
14458
14459
14460 --
14461--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14462+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14463 --
14464
14465 ALTER TABLE ONLY member_presenterstatus
14466@@ -11492,7 +13531,7 @@
14467
14468
14469 --
14470--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14471+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14472 --
14473
14474 ALTER TABLE ONLY rec_track
14475@@ -11500,7 +13539,7 @@
14476
14477
14478 --
14479--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14480+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14481 --
14482
14483 ALTER TABLE ONLY rec_record
14484@@ -11508,7 +13547,7 @@
14485
14486
14487 --
14488--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14489+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14490 --
14491
14492 ALTER TABLE ONLY rec_labelqueue
14493@@ -11516,7 +13555,7 @@
14494
14495
14496 --
14497--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14498+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14499 --
14500
14501 ALTER TABLE ONLY baps_user_external
14502@@ -11524,7 +13563,7 @@
14503
14504
14505 --
14506--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14507+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14508 --
14509
14510 ALTER TABLE ONLY baps_user_filefolder
14511@@ -11532,7 +13571,7 @@
14512
14513
14514 --
14515--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14516+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14517 --
14518
14519 ALTER TABLE ONLY baps_filefolder
14520@@ -11540,7 +13579,7 @@
14521
14522
14523 --
14524--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14525+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14526 --
14527
14528 ALTER TABLE ONLY baps_audiolog
14529@@ -11548,7 +13587,7 @@
14530
14531
14532 --
14533--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14534+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14535 --
14536
14537 ALTER TABLE ONLY baps_item
14538@@ -11556,7 +13595,7 @@
14539
14540
14541 --
14542--- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14543+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: web
14544 --
14545
14546 ALTER TABLE ONLY baps_libraryitem
14547@@ -11564,7 +13603,7 @@
14548
14549
14550 --
14551--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14552+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14553 --
14554
14555 ALTER TABLE ONLY member
14556@@ -11572,7 +13611,7 @@
14557
14558
14559 --
14560--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14561+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14562 --
14563
14564 ALTER TABLE ONLY officer
14565@@ -11580,7 +13619,7 @@
14566
14567
14568 --
14569--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14570+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14571 --
14572
14573 ALTER TABLE ONLY member_officer
14574@@ -11588,7 +13627,7 @@
14575
14576
14577 --
14578--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14579+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: web
14580 --
14581
14582 ALTER TABLE ONLY member_presenterstatus
14583@@ -11596,7 +13635,7 @@
14584
14585
14586 --
14587--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14588+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: web
14589 --
14590
14591 ALTER TABLE ONLY strm_log
14592@@ -11604,7 +13643,7 @@
14593
14594
14595 --
14596--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14597+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: web
14598 --
14599
14600 ALTER TABLE ONLY rec_track
14601@@ -11612,7 +13651,7 @@
14602
14603
14604 --
14605--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14606+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: web
14607 --
14608
14609 ALTER TABLE ONLY rec_record
14610@@ -11620,7 +13659,7 @@
14611
14612
14613 --
14614--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14615+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: web
14616 --
14617
14618 ALTER TABLE ONLY baps_user_filefolder
14619@@ -11628,7 +13667,7 @@
14620
14621
14622 --
14623--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14624+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: web
14625 --
14626
14627 ALTER TABLE ONLY baps_audiolog
14628@@ -11636,7 +13675,7 @@
14629
14630
14631 --
14632--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14633+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: web
14634 --
14635
14636 ALTER TABLE ONLY baps_libraryitem
14637@@ -11644,7 +13683,7 @@
14638
14639
14640 --
14641--- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14642+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: web
14643 --
14644
14645 ALTER TABLE ONLY baps_user_external
14646@@ -11652,7 +13691,7 @@
14647
14648
14649 --
14650--- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14651+-- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: web
14652 --
14653
14654 ALTER TABLE ONLY strm_log
14655@@ -11660,7 +13699,7 @@
14656
14657
14658 --
14659--- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14660+-- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: web
14661 --
14662
14663 ALTER TABLE ONLY rec_track
14664@@ -11668,7 +13707,7 @@
14665
14666
14667 --
14668--- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14669+-- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: web
14670 --
14671
14672 ALTER TABLE ONLY rec_record
14673@@ -11676,7 +13715,7 @@
14674
14675
14676 --
14677--- Name: $6; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14678+-- Name: $6; Type: FK CONSTRAINT; Schema: public; Owner: web
14679 --
14680
14681 ALTER TABLE ONLY rec_record
14682@@ -11684,7 +13723,7 @@
14683
14684
14685 --
14686--- Name: $7; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14687+-- Name: $7; Type: FK CONSTRAINT; Schema: public; Owner: web
14688 --
14689
14690 ALTER TABLE ONLY rec_record
14691@@ -11692,7 +13731,7 @@
14692
14693
14694 --
14695--- Name: auth_lookupid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14696+-- Name: auth_lookupid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14697 --
14698
14699 ALTER TABLE ONLY auth
14700@@ -11700,7 +13739,7 @@
14701
14702
14703 --
14704--- Name: auth_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14705+-- Name: auth_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14706 --
14707
14708 ALTER TABLE ONLY auth
14709@@ -11708,7 +13747,7 @@
14710
14711
14712 --
14713--- Name: auth_officer_lookupid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14714+-- Name: auth_officer_lookupid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14715 --
14716
14717 ALTER TABLE ONLY auth_officer
14718@@ -11716,7 +13755,7 @@
14719
14720
14721 --
14722--- Name: auth_officer_officerid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14723+-- Name: auth_officer_officerid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14724 --
14725
14726 ALTER TABLE ONLY auth_officer
14727@@ -11724,7 +13763,7 @@
14728
14729
14730 --
14731--- Name: auth_subnet_typeid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14732+-- Name: auth_subnet_typeid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14733 --
14734
14735 ALTER TABLE ONLY auth_subnet
14736@@ -11732,7 +13771,7 @@
14737
14738
14739 --
14740--- Name: auth_trainingstatus_typeid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14741+-- Name: auth_trainingstatus_typeid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14742 --
14743
14744 ALTER TABLE ONLY auth_trainingstatus
14745@@ -11740,7 +13779,7 @@
14746
14747
14748 --
14749--- Name: auth_user_groups_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14750+-- Name: auth_user_groups_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: django
14751 --
14752
14753 ALTER TABLE ONLY auth_user_groups
14754@@ -11748,23 +13787,23 @@
14755
14756
14757 --
14758--- Name: baps_item_fileitemid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14759+-- Name: baps_item_fileitemid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14760 --
14761
14762 ALTER TABLE ONLY baps_item
14763- ADD CONSTRAINT baps_item_fileitemid_fkey FOREIGN KEY (fileitemid) REFERENCES baps_fileitem(fileitemid);
14764+ ADD CONSTRAINT baps_item_fileitemid_fkey FOREIGN KEY (fileitemid) REFERENCES baps_fileitem(fileitemid) ON UPDATE CASCADE ON DELETE CASCADE;
14765
14766
14767 --
14768--- Name: baps_item_libraryitemid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14769+-- Name: baps_item_libraryitemid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14770 --
14771
14772 ALTER TABLE ONLY baps_item
14773- ADD CONSTRAINT baps_item_libraryitemid_fkey FOREIGN KEY (libraryitemid) REFERENCES baps_libraryitem(libraryitemid);
14774+ ADD CONSTRAINT baps_item_libraryitemid_fkey FOREIGN KEY (libraryitemid) REFERENCES baps_libraryitem(libraryitemid) ON UPDATE CASCADE ON DELETE CASCADE;
14775
14776
14777 --
14778--- Name: baps_item_listingid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14779+-- Name: baps_item_listingid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14780 --
14781
14782 ALTER TABLE ONLY baps_item
14783@@ -11772,7 +13811,7 @@
14784
14785
14786 --
14787--- Name: baps_item_textitemid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14788+-- Name: baps_item_textitemid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14789 --
14790
14791 ALTER TABLE ONLY baps_item
14792@@ -11780,7 +13819,7 @@
14793
14794
14795 --
14796--- Name: baps_show_userid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14797+-- Name: baps_show_userid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14798 --
14799
14800 ALTER TABLE ONLY baps_show
14801@@ -11788,7 +13827,7 @@
14802
14803
14804 --
14805--- Name: l_presenterstatus; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14806+-- Name: l_presenterstatus; Type: FK CONSTRAINT; Schema: public; Owner: web
14807 --
14808
14809 ALTER TABLE ONLY auth_trainingstatus
14810@@ -11796,7 +13835,7 @@
14811
14812
14813 --
14814--- Name: l_presenterstatus_can_award_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14815+-- Name: l_presenterstatus_can_award_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14816 --
14817
14818 ALTER TABLE ONLY l_presenterstatus
14819@@ -11804,7 +13843,7 @@
14820
14821
14822 --
14823--- Name: l_presenterstatus_depends_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14824+-- Name: l_presenterstatus_depends_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14825 --
14826
14827 ALTER TABLE ONLY l_presenterstatus
14828@@ -11812,7 +13851,7 @@
14829
14830
14831 --
14832--- Name: mail_alias_list_listid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14833+-- Name: mail_alias_list_listid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14834 --
14835
14836 ALTER TABLE ONLY mail_alias_list
14837@@ -11820,7 +13859,7 @@
14838
14839
14840 --
14841--- Name: mail_alias_member_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14842+-- Name: mail_alias_member_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14843 --
14844
14845 ALTER TABLE ONLY mail_alias_member
14846@@ -11828,7 +13867,7 @@
14847
14848
14849 --
14850--- Name: mail_alias_officer_officerid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14851+-- Name: mail_alias_officer_officerid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14852 --
14853
14854 ALTER TABLE ONLY mail_alias_officer
14855@@ -11836,7 +13875,7 @@
14856
14857
14858 --
14859--- Name: member_mail_listid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14860+-- Name: member_mail_listid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14861 --
14862
14863 ALTER TABLE ONLY mail_subscription
14864@@ -11844,7 +13883,7 @@
14865
14866
14867 --
14868--- Name: member_mail_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14869+-- Name: member_mail_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14870 --
14871
14872 ALTER TABLE ONLY mail_subscription
14873@@ -11852,7 +13891,7 @@
14874
14875
14876 --
14877--- Name: member_news_feed_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14878+-- Name: member_news_feed_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14879 --
14880
14881 ALTER TABLE ONLY member_news_feed
14882@@ -11860,7 +13899,7 @@
14883
14884
14885 --
14886--- Name: member_news_feed_newsentryid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14887+-- Name: member_news_feed_newsentryid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14888 --
14889
14890 ALTER TABLE ONLY member_news_feed
14891@@ -11868,7 +13907,7 @@
14892
14893
14894 --
14895--- Name: member_pass_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14896+-- Name: member_pass_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14897 --
14898
14899 ALTER TABLE ONLY member_pass
14900@@ -11876,7 +13915,7 @@
14901
14902
14903 --
14904--- Name: member_presenterstatus_presenterstatusid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14905+-- Name: member_presenterstatus_presenterstatusid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14906 --
14907
14908 ALTER TABLE ONLY member_presenterstatus
14909@@ -11884,7 +13923,7 @@
14910
14911
14912 --
14913--- Name: member_presenterstatus_revokedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14914+-- Name: member_presenterstatus_revokedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14915 --
14916
14917 ALTER TABLE ONLY member_presenterstatus
14918@@ -11892,7 +13931,7 @@
14919
14920
14921 --
14922--- Name: member_profile_photo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14923+-- Name: member_profile_photo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14924 --
14925
14926 ALTER TABLE ONLY member
14927@@ -11900,7 +13939,7 @@
14928
14929
14930 --
14931--- Name: member_year_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14932+-- Name: member_year_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pgsql
14933 --
14934
14935 ALTER TABLE ONLY member_year
14936@@ -11908,7 +13947,7 @@
14937
14938
14939 --
14940--- Name: net_switchport_tags_portid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14941+-- Name: net_switchport_tags_portid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14942 --
14943
14944 ALTER TABLE ONLY net_switchport_tags
14945@@ -11916,7 +13955,7 @@
14946
14947
14948 --
14949--- Name: net_switchport_tags_vlanid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14950+-- Name: net_switchport_tags_vlanid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14951 --
14952
14953 ALTER TABLE ONLY net_switchport_tags
14954@@ -11924,7 +13963,7 @@
14955
14956
14957 --
14958--- Name: net_switchport_vlan_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14959+-- Name: net_switchport_vlan_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14960 --
14961
14962 ALTER TABLE ONLY net_switchport
14963@@ -11932,7 +13971,7 @@
14964
14965
14966 --
14967--- Name: news_feed_feedid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14968+-- Name: news_feed_feedid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14969 --
14970
14971 ALTER TABLE ONLY news_feed
14972@@ -11940,7 +13979,7 @@
14973
14974
14975 --
14976--- Name: news_feed_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14977+-- Name: news_feed_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14978 --
14979
14980 ALTER TABLE ONLY news_feed
14981@@ -11948,7 +13987,7 @@
14982
14983
14984 --
14985--- Name: nipsweb_migrate_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14986+-- Name: nipsweb_migrate_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14987 --
14988
14989 ALTER TABLE ONLY nipsweb_migrate
14990@@ -11956,7 +13995,7 @@
14991
14992
14993 --
14994--- Name: rec_itunes_trackid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
14995+-- Name: rec_itunes_trackid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
14996 --
14997
14998 ALTER TABLE ONLY rec_itunes
14999@@ -11964,7 +14003,7 @@
15000
15001
15002 --
15003--- Name: rec_track_digitisedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
15004+-- Name: rec_track_digitisedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
15005 --
15006
15007 ALTER TABLE ONLY rec_track
15008@@ -11972,7 +14011,7 @@
15009
15010
15011 --
15012--- Name: rec_trackcorrection_reviewedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
15013+-- Name: rec_trackcorrection_reviewedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
15014 --
15015
15016 ALTER TABLE ONLY rec_trackcorrection
15017@@ -11980,7 +14019,7 @@
15018
15019
15020 --
15021--- Name: rec_trackcorrection_trackid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
15022+-- Name: rec_trackcorrection_trackid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
15023 --
15024
15025 ALTER TABLE ONLY rec_trackcorrection
15026@@ -11988,7 +14027,23 @@
15027
15028
15029 --
15030--- Name: selector_action_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
15031+-- Name: rec_trackproposal_proposedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
15032+--
15033+
15034+ALTER TABLE ONLY rec_trackproposal
15035+ ADD CONSTRAINT rec_trackproposal_proposedby_fkey FOREIGN KEY (proposedby) REFERENCES member(memberid);
15036+
15037+
15038+--
15039+-- Name: rec_trackproposal_reviewedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
15040+--
15041+
15042+ALTER TABLE ONLY rec_trackproposal
15043+ ADD CONSTRAINT rec_trackproposal_reviewedby_fkey FOREIGN KEY (reviewedby) REFERENCES member(memberid);
15044+
15045+
15046+--
15047+-- Name: selector_action_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
15048 --
15049
15050 ALTER TABLE ONLY selector
15051@@ -11996,7 +14051,7 @@
15052
15053
15054 --
15055--- Name: sis_piss_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: myradio
15056+-- Name: sis_piss_memberid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: web
15057 --
15058
15059 ALTER TABLE ONLY sis_piss
15060@@ -12004,17 +14059,51 @@
15061
15062
15063 --
15064--- Name: user_id_refs_id_831107f1; Type: FK CONSTRAINT; Schema: public; Owner: myradio
15065+-- Name: user_id_refs_id_831107f1; Type: FK CONSTRAINT; Schema: public; Owner: django
15066 --
15067
15068 ALTER TABLE ONLY auth_user_groups
15069 ADD CONSTRAINT user_id_refs_id_831107f1 FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
15070
15071
15072+SET search_path = rapier, pg_catalog;
15073+
15074+--
15075+-- Name: acl_member_memberid_fkey; Type: FK CONSTRAINT; Schema: rapier; Owner: web
15076+--
15077+
15078+ALTER TABLE ONLY acl_member
15079+ ADD CONSTRAINT acl_member_memberid_fkey FOREIGN KEY (memberid) REFERENCES public.member(memberid) ON UPDATE CASCADE ON DELETE CASCADE;
15080+
15081+
15082+--
15083+-- Name: acl_member_scope_fkey; Type: FK CONSTRAINT; Schema: rapier; Owner: web
15084+--
15085+
15086+ALTER TABLE ONLY acl_member
15087+ ADD CONSTRAINT acl_member_scope_fkey FOREIGN KEY (scope) REFERENCES constants_acl_scope(scopeid) ON UPDATE SET DEFAULT ON DELETE SET DEFAULT;
15088+
15089+
15090+--
15091+-- Name: acl_officer_officerid_fkey; Type: FK CONSTRAINT; Schema: rapier; Owner: web
15092+--
15093+
15094+ALTER TABLE ONLY acl_officer
15095+ ADD CONSTRAINT acl_officer_officerid_fkey FOREIGN KEY (officerid) REFERENCES public.officer(officerid) ON UPDATE CASCADE ON DELETE CASCADE;
15096+
15097+
15098+--
15099+-- Name: acl_officer_scope_fkey; Type: FK CONSTRAINT; Schema: rapier; Owner: web
15100+--
15101+
15102+ALTER TABLE ONLY acl_officer
15103+ ADD CONSTRAINT acl_officer_scope_fkey FOREIGN KEY (scope) REFERENCES constants_acl_scope(scopeid) ON UPDATE SET DEFAULT ON DELETE SET DEFAULT;
15104+
15105+
15106 SET search_path = schedule, pg_catalog;
15107
15108 --
15109--- Name: block_range_rule_block_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15110+-- Name: block_range_rule_block_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15111 --
15112
15113 ALTER TABLE ONLY block_range_rule
15114@@ -12022,7 +14111,7 @@
15115
15116
15117 --
15118--- Name: block_show_rule_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15119+-- Name: block_show_rule_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15120 --
15121
15122 ALTER TABLE ONLY block_show_rule
15123@@ -12030,7 +14119,7 @@
15124
15125
15126 --
15127--- Name: block_show_rules_block_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15128+-- Name: block_show_rules_block_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15129 --
15130
15131 ALTER TABLE ONLY block_show_rule
15132@@ -12038,7 +14127,7 @@
15133
15134
15135 --
15136--- Name: season_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15137+-- Name: season_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15138 --
15139
15140 ALTER TABLE ONLY season_metadata
15141@@ -12046,7 +14135,7 @@
15142
15143
15144 --
15145--- Name: season_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15146+-- Name: season_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15147 --
15148
15149 ALTER TABLE ONLY season_metadata
15150@@ -12054,7 +14143,7 @@
15151
15152
15153 --
15154--- Name: season_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15155+-- Name: season_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15156 --
15157
15158 ALTER TABLE ONLY season_metadata
15159@@ -12062,7 +14151,7 @@
15160
15161
15162 --
15163--- Name: season_metadata_show_season_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15164+-- Name: season_metadata_show_season_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15165 --
15166
15167 ALTER TABLE ONLY season_metadata
15168@@ -12070,7 +14159,7 @@
15169
15170
15171 --
15172--- Name: show_credit_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15173+-- Name: show_credit_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15174 --
15175
15176 ALTER TABLE ONLY show_credit
15177@@ -12078,15 +14167,15 @@
15178
15179
15180 --
15181--- Name: show_credit_credit_type_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15182+-- Name: show_credit_credit_type_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15183 --
15184
15185 ALTER TABLE ONLY show_credit
15186- ADD CONSTRAINT show_credit_credit_type_id_fkey FOREIGN KEY (credit_type_id) REFERENCES people.credit_type(credit_type_id) ON UPDATE CASCADE ON DELETE CASCADE;
15187+ ADD CONSTRAINT show_credit_credit_type_id_fkey FOREIGN KEY (credit_type_id) REFERENCES people.credit_type(credit_type_id);
15188
15189
15190 --
15191--- Name: show_credit_creditid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15192+-- Name: show_credit_creditid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15193 --
15194
15195 ALTER TABLE ONLY show_credit
15196@@ -12094,7 +14183,7 @@
15197
15198
15199 --
15200--- Name: show_credit_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15201+-- Name: show_credit_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15202 --
15203
15204 ALTER TABLE ONLY show_credit
15205@@ -12102,7 +14191,7 @@
15206
15207
15208 --
15209--- Name: show_credit_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15210+-- Name: show_credit_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15211 --
15212
15213 ALTER TABLE ONLY show_credit
15214@@ -12110,7 +14199,7 @@
15215
15216
15217 --
15218--- Name: show_genre_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15219+-- Name: show_genre_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15220 --
15221
15222 ALTER TABLE ONLY show_genre
15223@@ -12118,7 +14207,7 @@
15224
15225
15226 --
15227--- Name: show_genre_genre_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15228+-- Name: show_genre_genre_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15229 --
15230
15231 ALTER TABLE ONLY show_genre
15232@@ -12126,7 +14215,7 @@
15233
15234
15235 --
15236--- Name: show_genre_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15237+-- Name: show_genre_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15238 --
15239
15240 ALTER TABLE ONLY show_genre
15241@@ -12134,7 +14223,7 @@
15242
15243
15244 --
15245--- Name: show_genre_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15246+-- Name: show_genre_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15247 --
15248
15249 ALTER TABLE ONLY show_genre
15250@@ -12142,7 +14231,7 @@
15251
15252
15253 --
15254--- Name: show_image_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15255+-- Name: show_image_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: django
15256 --
15257
15258 ALTER TABLE ONLY show_image_metadata
15259@@ -12150,7 +14239,7 @@
15260
15261
15262 --
15263--- Name: show_image_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15264+-- Name: show_image_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: django
15265 --
15266
15267 ALTER TABLE ONLY show_image_metadata
15268@@ -12158,7 +14247,7 @@
15269
15270
15271 --
15272--- Name: show_image_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15273+-- Name: show_image_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: django
15274 --
15275
15276 ALTER TABLE ONLY show_image_metadata
15277@@ -12166,15 +14255,15 @@
15278
15279
15280 --
15281--- Name: show_image_metadata_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15282+-- Name: show_image_metadata_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: django
15283 --
15284
15285 ALTER TABLE ONLY show_image_metadata
15286- ADD CONSTRAINT show_image_metadata_show_id_fkey FOREIGN KEY (show_id) REFERENCES show(show_id) DEFERRABLE INITIALLY DEFERRED;
15287+ ADD CONSTRAINT show_image_metadata_show_id_fkey FOREIGN KEY (show_id) REFERENCES show(show_id);
15288
15289
15290 --
15291--- Name: show_location_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15292+-- Name: show_location_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15293 --
15294
15295 ALTER TABLE ONLY show_location
15296@@ -12182,7 +14271,7 @@
15297
15298
15299 --
15300--- Name: show_location_location_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15301+-- Name: show_location_location_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15302 --
15303
15304 ALTER TABLE ONLY show_location
15305@@ -12190,7 +14279,7 @@
15306
15307
15308 --
15309--- Name: show_location_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15310+-- Name: show_location_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15311 --
15312
15313 ALTER TABLE ONLY show_location
15314@@ -12198,7 +14287,7 @@
15315
15316
15317 --
15318--- Name: show_location_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15319+-- Name: show_location_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15320 --
15321
15322 ALTER TABLE ONLY show_location
15323@@ -12206,7 +14295,7 @@
15324
15325
15326 --
15327--- Name: show_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15328+-- Name: show_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15329 --
15330
15331 ALTER TABLE ONLY show
15332@@ -12214,7 +14303,7 @@
15333
15334
15335 --
15336--- Name: show_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15337+-- Name: show_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15338 --
15339
15340 ALTER TABLE ONLY show_metadata
15341@@ -12222,7 +14311,7 @@
15342
15343
15344 --
15345--- Name: show_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15346+-- Name: show_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15347 --
15348
15349 ALTER TABLE ONLY show_metadata
15350@@ -12230,7 +14319,7 @@
15351
15352
15353 --
15354--- Name: show_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15355+-- Name: show_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15356 --
15357
15358 ALTER TABLE ONLY show_metadata
15359@@ -12238,7 +14327,7 @@
15360
15361
15362 --
15363--- Name: show_metadata_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15364+-- Name: show_metadata_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15365 --
15366
15367 ALTER TABLE ONLY show_metadata
15368@@ -12246,7 +14335,7 @@
15369
15370
15371 --
15372--- Name: show_podcast_link_podcast_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15373+-- Name: show_podcast_link_podcast_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: django
15374 --
15375
15376 ALTER TABLE ONLY show_podcast_link
15377@@ -12254,7 +14343,7 @@
15378
15379
15380 --
15381--- Name: show_podcast_link_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15382+-- Name: show_podcast_link_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: django
15383 --
15384
15385 ALTER TABLE ONLY show_podcast_link
15386@@ -12262,7 +14351,7 @@
15387
15388
15389 --
15390--- Name: show_season_requested_time_show_season_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15391+-- Name: show_season_requested_time_show_season_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15392 --
15393
15394 ALTER TABLE ONLY show_season_requested_time
15395@@ -12270,7 +14359,7 @@
15396
15397
15398 --
15399--- Name: show_season_requested_week_show_season_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15400+-- Name: show_season_requested_week_show_season_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15401 --
15402
15403 ALTER TABLE ONLY show_season_requested_week
15404@@ -12278,7 +14367,7 @@
15405
15406
15407 --
15408--- Name: show_season_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15409+-- Name: show_season_show_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15410 --
15411
15412 ALTER TABLE ONLY show_season
15413@@ -12286,7 +14375,7 @@
15414
15415
15416 --
15417--- Name: show_season_termid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15418+-- Name: show_season_termid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15419 --
15420
15421 ALTER TABLE ONLY show_season
15422@@ -12294,7 +14383,7 @@
15423
15424
15425 --
15426--- Name: show_season_timeslot_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15427+-- Name: show_season_timeslot_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15428 --
15429
15430 ALTER TABLE ONLY show_season_timeslot
15431@@ -12302,7 +14391,7 @@
15432
15433
15434 --
15435--- Name: show_season_timeslot_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15436+-- Name: show_season_timeslot_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15437 --
15438
15439 ALTER TABLE ONLY show_season_timeslot
15440@@ -12310,7 +14399,7 @@
15441
15442
15443 --
15444--- Name: show_season_timeslot_show_season_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15445+-- Name: show_season_timeslot_show_season_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15446 --
15447
15448 ALTER TABLE ONLY show_season_timeslot
15449@@ -12318,7 +14407,7 @@
15450
15451
15452 --
15453--- Name: show_show_type_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15454+-- Name: show_show_type_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15455 --
15456
15457 ALTER TABLE ONLY show
15458@@ -12326,7 +14415,7 @@
15459
15460
15461 --
15462--- Name: timeslot_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15463+-- Name: timeslot_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15464 --
15465
15466 ALTER TABLE ONLY timeslot_metadata
15467@@ -12334,7 +14423,7 @@
15468
15469
15470 --
15471--- Name: timeslot_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15472+-- Name: timeslot_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15473 --
15474
15475 ALTER TABLE ONLY timeslot_metadata
15476@@ -12342,7 +14431,7 @@
15477
15478
15479 --
15480--- Name: timeslot_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15481+-- Name: timeslot_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15482 --
15483
15484 ALTER TABLE ONLY timeslot_metadata
15485@@ -12350,7 +14439,7 @@
15486
15487
15488 --
15489--- Name: timeslot_metadata_show_timeslot_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: myradio
15490+-- Name: timeslot_metadata_show_timeslot_id_fkey; Type: FK CONSTRAINT; Schema: schedule; Owner: web
15491 --
15492
15493 ALTER TABLE ONLY timeslot_metadata
15494@@ -12360,7 +14449,7 @@
15495 SET search_path = sis2, pg_catalog;
15496
15497 --
15498--- Name: member_options_memberid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: myradio
15499+-- Name: member_options_memberid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: web
15500 --
15501
15502 ALTER TABLE ONLY member_options
15503@@ -12368,7 +14457,7 @@
15504
15505
15506 --
15507--- Name: member_signin_memberid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: myradio
15508+-- Name: member_signin_memberid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: web
15509 --
15510
15511 ALTER TABLE ONLY member_signin
15512@@ -12376,7 +14465,7 @@
15513
15514
15515 --
15516--- Name: member_signin_signerid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: myradio
15517+-- Name: member_signin_signerid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: web
15518 --
15519
15520 ALTER TABLE ONLY member_signin
15521@@ -12384,7 +14473,7 @@
15522
15523
15524 --
15525--- Name: messages_commtypeid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: myradio
15526+-- Name: messages_commtypeid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: web
15527 --
15528
15529 ALTER TABLE ONLY messages
15530@@ -12392,7 +14481,7 @@
15531
15532
15533 --
15534--- Name: messages_statusid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: myradio
15535+-- Name: messages_statusid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: web
15536 --
15537
15538 ALTER TABLE ONLY messages
15539@@ -12400,7 +14489,7 @@
15540
15541
15542 --
15543--- Name: messages_timeslotid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: myradio
15544+-- Name: messages_timeslotid_fkey; Type: FK CONSTRAINT; Schema: sis2; Owner: web
15545 --
15546
15547 ALTER TABLE ONLY messages
15548@@ -12410,7 +14499,7 @@
15549 SET search_path = tracklist, pg_catalog;
15550
15551 --
15552--- Name: bapsaudiologid; Type: FK CONSTRAINT; Schema: tracklist; Owner: myradio
15553+-- Name: bapsaudiologid; Type: FK CONSTRAINT; Schema: tracklist; Owner: web
15554 --
15555
15556 ALTER TABLE ONLY tracklist
15557@@ -12418,7 +14507,7 @@
15558
15559
15560 --
15561--- Name: selbaps_bapsloc_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: myradio
15562+-- Name: selbaps_bapsloc_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: web
15563 --
15564
15565 ALTER TABLE ONLY selbaps
15566@@ -12426,7 +14515,7 @@
15567
15568
15569 --
15570--- Name: selbaps_selaction_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: myradio
15571+-- Name: selbaps_selaction_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: web
15572 --
15573
15574 ALTER TABLE ONLY selbaps
15575@@ -12434,7 +14523,7 @@
15576
15577
15578 --
15579--- Name: sourceid; Type: FK CONSTRAINT; Schema: tracklist; Owner: myradio
15580+-- Name: sourceid; Type: FK CONSTRAINT; Schema: tracklist; Owner: web
15581 --
15582
15583 ALTER TABLE ONLY tracklist
15584@@ -12442,7 +14531,7 @@
15585
15586
15587 --
15588--- Name: stateid; Type: FK CONSTRAINT; Schema: tracklist; Owner: myradio
15589+-- Name: stateid; Type: FK CONSTRAINT; Schema: tracklist; Owner: web
15590 --
15591
15592 ALTER TABLE ONLY tracklist
15593@@ -12450,7 +14539,7 @@
15594
15595
15596 --
15597--- Name: timeslotid; Type: FK CONSTRAINT; Schema: tracklist; Owner: myradio
15598+-- Name: timeslotid; Type: FK CONSTRAINT; Schema: tracklist; Owner: web
15599 --
15600
15601 ALTER TABLE ONLY tracklist
15602@@ -12458,7 +14547,7 @@
15603
15604
15605 --
15606--- Name: track_notrec_audiologid_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: myradio
15607+-- Name: track_notrec_audiologid_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: web
15608 --
15609
15610 ALTER TABLE ONLY track_notrec
15611@@ -12466,7 +14555,7 @@
15612
15613
15614 --
15615--- Name: track_rec_audiologid_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: myradio
15616+-- Name: track_rec_audiologid_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: web
15617 --
15618
15619 ALTER TABLE ONLY track_rec
15620@@ -12474,7 +14563,7 @@
15621
15622
15623 --
15624--- Name: track_rec_trackid_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: myradio
15625+-- Name: track_rec_trackid_fkey; Type: FK CONSTRAINT; Schema: tracklist; Owner: web
15626 --
15627
15628 ALTER TABLE ONLY track_rec
15629@@ -12484,7 +14573,7 @@
15630 SET search_path = uryplayer, pg_catalog;
15631
15632 --
15633--- Name: package_id_refs_package_id_f71dbbff; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15634+-- Name: package_id_refs_package_id_f71dbbff; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15635 --
15636
15637 ALTER TABLE ONLY podcast_package_entry
15638@@ -12492,7 +14581,7 @@
15639
15640
15641 --
15642--- Name: podcast_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15643+-- Name: podcast_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15644 --
15645
15646 ALTER TABLE ONLY podcast
15647@@ -12500,7 +14589,7 @@
15648
15649
15650 --
15651--- Name: podcast_credit_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15652+-- Name: podcast_credit_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15653 --
15654
15655 ALTER TABLE ONLY podcast_credit
15656@@ -12508,15 +14597,7 @@
15657
15658
15659 --
15660--- Name: podcast_credit_credit_type_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15661---
15662-
15663-ALTER TABLE ONLY podcast_credit
15664- ADD CONSTRAINT podcast_credit_credit_type_id_fkey FOREIGN KEY (credit_type_id) REFERENCES people.credit_type(credit_type_id) DEFERRABLE INITIALLY DEFERRED;
15665-
15666-
15667---
15668--- Name: podcast_credit_creditid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15669+-- Name: podcast_credit_creditid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15670 --
15671
15672 ALTER TABLE ONLY podcast_credit
15673@@ -12524,7 +14605,7 @@
15674
15675
15676 --
15677--- Name: podcast_credit_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15678+-- Name: podcast_credit_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15679 --
15680
15681 ALTER TABLE ONLY podcast_credit
15682@@ -12532,7 +14613,7 @@
15683
15684
15685 --
15686--- Name: podcast_credit_podcast_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15687+-- Name: podcast_credit_podcast_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15688 --
15689
15690 ALTER TABLE ONLY podcast_credit
15691@@ -12540,7 +14621,7 @@
15692
15693
15694 --
15695--- Name: podcast_image_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15696+-- Name: podcast_image_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15697 --
15698
15699 ALTER TABLE ONLY podcast_image_metadata
15700@@ -12548,7 +14629,7 @@
15701
15702
15703 --
15704--- Name: podcast_image_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15705+-- Name: podcast_image_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15706 --
15707
15708 ALTER TABLE ONLY podcast_image_metadata
15709@@ -12556,7 +14637,7 @@
15710
15711
15712 --
15713--- Name: podcast_image_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15714+-- Name: podcast_image_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15715 --
15716
15717 ALTER TABLE ONLY podcast_image_metadata
15718@@ -12564,7 +14645,7 @@
15719
15720
15721 --
15722--- Name: podcast_image_metadata_podcast_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15723+-- Name: podcast_image_metadata_podcast_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15724 --
15725
15726 ALTER TABLE ONLY podcast_image_metadata
15727@@ -12572,7 +14653,7 @@
15728
15729
15730 --
15731--- Name: podcast_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15732+-- Name: podcast_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15733 --
15734
15735 ALTER TABLE ONLY podcast
15736@@ -12580,7 +14661,7 @@
15737
15738
15739 --
15740--- Name: podcast_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15741+-- Name: podcast_metadata_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15742 --
15743
15744 ALTER TABLE ONLY podcast_metadata
15745@@ -12588,7 +14669,7 @@
15746
15747
15748 --
15749--- Name: podcast_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15750+-- Name: podcast_metadata_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15751 --
15752
15753 ALTER TABLE ONLY podcast_metadata
15754@@ -12596,7 +14677,7 @@
15755
15756
15757 --
15758--- Name: podcast_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15759+-- Name: podcast_metadata_metadata_key_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15760 --
15761
15762 ALTER TABLE ONLY podcast_metadata
15763@@ -12604,7 +14685,7 @@
15764
15765
15766 --
15767--- Name: podcast_metadata_podcast_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15768+-- Name: podcast_metadata_podcast_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15769 --
15770
15771 ALTER TABLE ONLY podcast_metadata
15772@@ -12612,7 +14693,7 @@
15773
15774
15775 --
15776--- Name: podcast_package_entry_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15777+-- Name: podcast_package_entry_approvedid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15778 --
15779
15780 ALTER TABLE ONLY podcast_package_entry
15781@@ -12620,7 +14701,7 @@
15782
15783
15784 --
15785--- Name: podcast_package_entry_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15786+-- Name: podcast_package_entry_memberid_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15787 --
15788
15789 ALTER TABLE ONLY podcast_package_entry
15790@@ -12628,7 +14709,7 @@
15791
15792
15793 --
15794--- Name: podcast_package_entry_podcast_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: myradio
15795+-- Name: podcast_package_entry_podcast_id_fkey; Type: FK CONSTRAINT; Schema: uryplayer; Owner: django
15796 --
15797
15798 ALTER TABLE ONLY podcast_package_entry
15799@@ -12638,7 +14719,7 @@
15800 SET search_path = webcam, pg_catalog;
15801
15802 --
15803--- Name: memberviews_memberid_fkey; Type: FK CONSTRAINT; Schema: webcam; Owner: myradio
15804+-- Name: memberviews_memberid_fkey; Type: FK CONSTRAINT; Schema: webcam; Owner: web
15805 --
15806
15807 ALTER TABLE ONLY memberviews
15808@@ -12648,7 +14729,7 @@
15809 SET search_path = website, pg_catalog;
15810
15811 --
15812--- Name: banner_banner_type_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: myradio
15813+-- Name: banner_banner_type_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: web
15814 --
15815
15816 ALTER TABLE ONLY banner
15817@@ -12656,7 +14737,7 @@
15818
15819
15820 --
15821--- Name: banner_campaign_approvedid_fkey; Type: FK CONSTRAINT; Schema: website; Owner: myradio
15822+-- Name: banner_campaign_approvedid_fkey; Type: FK CONSTRAINT; Schema: website; Owner: django
15823 --
15824
15825 ALTER TABLE ONLY banner_campaign
15826@@ -12664,7 +14745,7 @@
15827
15828
15829 --
15830--- Name: banner_campaign_banner_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: myradio
15831+-- Name: banner_campaign_banner_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: django
15832 --
15833
15834 ALTER TABLE ONLY banner_campaign
15835@@ -12672,7 +14753,7 @@
15836
15837
15838 --
15839--- Name: banner_campaign_banner_location_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: myradio
15840+-- Name: banner_campaign_banner_location_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: django
15841 --
15842
15843 ALTER TABLE ONLY banner_campaign
15844@@ -12680,7 +14761,7 @@
15845
15846
15847 --
15848--- Name: banner_campaign_memberid_fkey; Type: FK CONSTRAINT; Schema: website; Owner: myradio
15849+-- Name: banner_campaign_memberid_fkey; Type: FK CONSTRAINT; Schema: website; Owner: django
15850 --
15851
15852 ALTER TABLE ONLY banner_campaign
15853@@ -12688,7 +14769,7 @@
15854
15855
15856 --
15857--- Name: banner_photo_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: myradio
15858+-- Name: banner_photo_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: web
15859 --
15860
15861 ALTER TABLE ONLY banner
15862@@ -12696,7 +14777,7 @@
15863
15864
15865 --
15866--- Name: banner_timeslot_approvedid_fkey; Type: FK CONSTRAINT; Schema: website; Owner: myradio
15867+-- Name: banner_timeslot_approvedid_fkey; Type: FK CONSTRAINT; Schema: website; Owner: web
15868 --
15869
15870 ALTER TABLE ONLY banner_timeslot
15871@@ -12704,7 +14785,7 @@
15872
15873
15874 --
15875--- Name: banner_timeslot_banner_campaign_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: myradio
15876+-- Name: banner_timeslot_banner_campaign_id_fkey; Type: FK CONSTRAINT; Schema: website; Owner: web
15877 --
15878
15879 ALTER TABLE ONLY banner_timeslot
15880@@ -12712,7 +14793,7 @@
15881
15882
15883 --
15884--- Name: banner_timeslot_memberid_fkey; Type: FK CONSTRAINT; Schema: website; Owner: myradio
15885+-- Name: banner_timeslot_memberid_fkey; Type: FK CONSTRAINT; Schema: website; Owner: web
15886 --
15887
15888 ALTER TABLE ONLY banner_timeslot
15889@@ -12720,13 +14801,2243 @@
15890
15891
15892 --
15893+-- Name: bapsplanner; Type: ACL; Schema: -; Owner: bapsweb
15894+--
15895+
15896+REVOKE ALL ON SCHEMA bapsplanner FROM PUBLIC;
15897+REVOKE ALL ON SCHEMA bapsplanner FROM bapsweb;
15898+GRANT ALL ON SCHEMA bapsplanner TO bapsweb;
15899+GRANT ALL ON SCHEMA bapsplanner TO web;
15900+
15901+
15902+--
15903+-- Name: deploy; Type: ACL; Schema: -; Owner: web
15904+--
15905+
15906+REVOKE ALL ON SCHEMA deploy FROM PUBLIC;
15907+REVOKE ALL ON SCHEMA deploy FROM web;
15908+GRANT ALL ON SCHEMA deploy TO web;
15909+GRANT USAGE ON SCHEMA deploy TO xauth;
15910+GRANT USAGE ON SCHEMA deploy TO xwrite;
15911+GRANT USAGE ON SCHEMA deploy TO bapsweb;
15912+
15913+
15914+--
15915+-- Name: jukebox; Type: ACL; Schema: -; Owner: uryjukebox
15916+--
15917+
15918+REVOKE ALL ON SCHEMA jukebox FROM PUBLIC;
15919+REVOKE ALL ON SCHEMA jukebox FROM uryjukebox;
15920+GRANT ALL ON SCHEMA jukebox TO uryjukebox;
15921+GRANT USAGE ON SCHEMA jukebox TO silence;
15922+GRANT USAGE ON SCHEMA jukebox TO clock;
15923+GRANT USAGE ON SCHEMA jukebox TO bapsweb;
15924+
15925+
15926+--
15927+-- Name: metadata; Type: ACL; Schema: -; Owner: web
15928+--
15929+
15930+REVOKE ALL ON SCHEMA metadata FROM PUBLIC;
15931+REVOKE ALL ON SCHEMA metadata FROM web;
15932+GRANT ALL ON SCHEMA metadata TO web;
15933+GRANT ALL ON SCHEMA metadata TO django;
15934+
15935+
15936+--
15937+-- Name: music; Type: ACL; Schema: -; Owner: web
15938+--
15939+
15940+REVOKE ALL ON SCHEMA music FROM PUBLIC;
15941+REVOKE ALL ON SCHEMA music FROM web;
15942+GRANT ALL ON SCHEMA music TO web;
15943+GRANT ALL ON SCHEMA music TO django;
15944+
15945+
15946+--
15947+-- Name: myury; Type: ACL; Schema: -; Owner: web
15948+--
15949+
15950+REVOKE ALL ON SCHEMA myury FROM PUBLIC;
15951+REVOKE ALL ON SCHEMA myury FROM web;
15952+GRANT ALL ON SCHEMA myury TO web;
15953+GRANT USAGE ON SCHEMA myury TO shibbobleh;
15954+
15955+
15956+--
15957+-- Name: people; Type: ACL; Schema: -; Owner: web
15958+--
15959+
15960+REVOKE ALL ON SCHEMA people FROM PUBLIC;
15961+REVOKE ALL ON SCHEMA people FROM web;
15962+GRANT ALL ON SCHEMA people TO web;
15963+GRANT USAGE ON SCHEMA people TO django;
15964+
15965+
15966+--
15967 -- Name: public; Type: ACL; Schema: -; Owner: postgres
15968 --
15969
15970 REVOKE ALL ON SCHEMA public FROM PUBLIC;
15971 REVOKE ALL ON SCHEMA public FROM postgres;
15972 GRANT ALL ON SCHEMA public TO postgres;
15973+GRANT ALL ON SCHEMA public TO web;
15974+GRANT USAGE ON SCHEMA public TO sis;
15975+GRANT ALL ON SCHEMA public TO django;
15976 GRANT ALL ON SCHEMA public TO PUBLIC;
15977+GRANT USAGE ON SCHEMA public TO hobbit;
15978+
15979+
15980+--
15981+-- Name: rapier; Type: ACL; Schema: -; Owner: web
15982+--
15983+
15984+REVOKE ALL ON SCHEMA rapier FROM PUBLIC;
15985+REVOKE ALL ON SCHEMA rapier FROM web;
15986+GRANT ALL ON SCHEMA rapier TO web;
15987+GRANT ALL ON SCHEMA rapier TO admin;
15988+GRANT ALL ON SCHEMA rapier TO api;
15989+GRANT ALL ON SCHEMA rapier TO audiouploadscript;
15990+GRANT ALL ON SCHEMA rapier TO autoreview;
15991+GRANT ALL ON SCHEMA rapier TO bapsserver;
15992+GRANT ALL ON SCHEMA rapier TO bapsvalidator;
15993+GRANT ALL ON SCHEMA rapier TO bapsweb;
15994+GRANT ALL ON SCHEMA rapier TO bugtracker;
15995+GRANT ALL ON SCHEMA rapier TO cataloguer;
15996+GRANT ALL ON SCHEMA rapier TO cataloguer_external;
15997+GRANT ALL ON SCHEMA rapier TO cataloguer_script;
15998+GRANT ALL ON SCHEMA rapier TO clock;
15999+GRANT ALL ON SCHEMA rapier TO django;
16000+GRANT ALL ON SCHEMA rapier TO dovecot;
16001+GRANT ALL ON SCHEMA rapier TO frontend;
16002+GRANT ALL ON SCHEMA rapier TO hobbit;
16003+GRANT ALL ON SCHEMA rapier TO icetracks;
16004+GRANT ALL ON SCHEMA rapier TO mantis;
16005+GRANT ALL ON SCHEMA rapier TO nagios;
16006+GRANT ALL ON SCHEMA rapier TO pgsql;
16007+GRANT ALL ON SCHEMA rapier TO postgres;
16008+GRANT ALL ON SCHEMA rapier TO pplaudit;
16009+GRANT ALL ON SCHEMA rapier TO propget;
16010+GRANT ALL ON SCHEMA rapier TO rolero;
16011+GRANT ALL ON SCHEMA rapier TO roundcube;
16012+GRANT ALL ON SCHEMA rapier TO shibbobleh;
16013+GRANT ALL ON SCHEMA rapier TO silence;
16014+GRANT ALL ON SCHEMA rapier TO sis;
16015+GRANT ALL ON SCHEMA rapier TO slony;
16016+GRANT ALL ON SCHEMA rapier TO streamscript;
16017+GRANT ALL ON SCHEMA rapier TO studioselector;
16018+GRANT ALL ON SCHEMA rapier TO survey;
16019+GRANT ALL ON SCHEMA rapier TO testuser;
16020+GRANT ALL ON SCHEMA rapier TO urybot;
16021+GRANT ALL ON SCHEMA rapier TO uryjukebox;
16022+GRANT ALL ON SCHEMA rapier TO wiki;
16023+GRANT ALL ON SCHEMA rapier TO xadmin;
16024+GRANT ALL ON SCHEMA rapier TO xauth;
16025+GRANT ALL ON SCHEMA rapier TO xcataloguer;
16026+GRANT ALL ON SCHEMA rapier TO xlistenagain;
16027+GRANT ALL ON SCHEMA rapier TO xmail;
16028+GRANT ALL ON SCHEMA rapier TO xmp3;
16029+GRANT ALL ON SCHEMA rapier TO xsms;
16030+GRANT ALL ON SCHEMA rapier TO xwrite;
16031+GRANT ALL ON SCHEMA rapier TO xyusu;
16032+
16033+
16034+--
16035+-- Name: schedule; Type: ACL; Schema: -; Owner: web
16036+--
16037+
16038+REVOKE ALL ON SCHEMA schedule FROM PUBLIC;
16039+REVOKE ALL ON SCHEMA schedule FROM web;
16040+GRANT ALL ON SCHEMA schedule TO web;
16041+GRANT USAGE ON SCHEMA schedule TO django;
16042+GRANT USAGE ON SCHEMA schedule TO shibbobleh;
16043+GRANT USAGE ON SCHEMA schedule TO sis;
16044+GRANT USAGE ON SCHEMA schedule TO xsms;
16045+GRANT USAGE ON SCHEMA schedule TO bapsserver;
16046+GRANT USAGE ON SCHEMA schedule TO clock;
16047+GRANT USAGE ON SCHEMA schedule TO xauth;
16048+GRANT USAGE ON SCHEMA schedule TO xwrite;
16049+GRANT ALL ON SCHEMA schedule TO bapsweb;
16050+
16051+
16052+--
16053+-- Name: sis2; Type: ACL; Schema: -; Owner: sis
16054+--
16055+
16056+REVOKE ALL ON SCHEMA sis2 FROM PUBLIC;
16057+REVOKE ALL ON SCHEMA sis2 FROM sis;
16058+GRANT ALL ON SCHEMA sis2 TO sis;
16059+GRANT ALL ON SCHEMA sis2 TO django;
16060+GRANT USAGE ON SCHEMA sis2 TO shibbobleh;
16061+GRANT USAGE ON SCHEMA sis2 TO xsms;
16062+GRANT USAGE ON SCHEMA sis2 TO xwrite;
16063+GRANT USAGE ON SCHEMA sis2 TO xauth;
16064+
16065+
16066+--
16067+-- Name: tracklist; Type: ACL; Schema: -; Owner: web
16068+--
16069+
16070+REVOKE ALL ON SCHEMA tracklist FROM PUBLIC;
16071+REVOKE ALL ON SCHEMA tracklist FROM web;
16072+GRANT ALL ON SCHEMA tracklist TO web;
16073+GRANT ALL ON SCHEMA tracklist TO sis;
16074+GRANT ALL ON SCHEMA tracklist TO bapsserver;
16075+GRANT ALL ON SCHEMA tracklist TO uryjukebox;
16076+GRANT USAGE ON SCHEMA tracklist TO icetracks;
16077+GRANT USAGE ON SCHEMA tracklist TO django;
16078+
16079+
16080+--
16081+-- Name: uryplayer; Type: ACL; Schema: -; Owner: web
16082+--
16083+
16084+REVOKE ALL ON SCHEMA uryplayer FROM PUBLIC;
16085+REVOKE ALL ON SCHEMA uryplayer FROM web;
16086+GRANT ALL ON SCHEMA uryplayer TO web;
16087+GRANT ALL ON SCHEMA uryplayer TO django;
16088+
16089+
16090+--
16091+-- Name: website; Type: ACL; Schema: -; Owner: web
16092+--
16093+
16094+REVOKE ALL ON SCHEMA website FROM PUBLIC;
16095+REVOKE ALL ON SCHEMA website FROM web;
16096+GRANT ALL ON SCHEMA website TO web;
16097+GRANT USAGE ON SCHEMA website TO frontend;
16098+GRANT USAGE ON SCHEMA website TO xauth;
16099+GRANT USAGE ON SCHEMA website TO xwrite;
16100+GRANT ALL ON SCHEMA website TO xadmin;
16101+GRANT USAGE ON SCHEMA website TO propget;
16102+GRANT ALL ON SCHEMA website TO django;
16103+
16104+
16105+SET search_path = public, pg_catalog;
16106+
16107+--
16108+-- Name: clear_item_func(); Type: ACL; Schema: public; Owner: pgsql
16109+--
16110+
16111+REVOKE ALL ON FUNCTION clear_item_func() FROM PUBLIC;
16112+REVOKE ALL ON FUNCTION clear_item_func() FROM pgsql;
16113+GRANT ALL ON FUNCTION clear_item_func() TO pgsql;
16114+GRANT ALL ON FUNCTION clear_item_func() TO PUBLIC;
16115+
16116+
16117+--
16118+-- Name: plpgsql_call_handler(); Type: ACL; Schema: public; Owner: postgres
16119+--
16120+
16121+REVOKE ALL ON FUNCTION plpgsql_call_handler() FROM PUBLIC;
16122+REVOKE ALL ON FUNCTION plpgsql_call_handler() FROM postgres;
16123+GRANT ALL ON FUNCTION plpgsql_call_handler() TO postgres;
16124+GRANT ALL ON FUNCTION plpgsql_call_handler() TO PUBLIC;
16125+
16126+
16127+SET search_path = bapsplanner, pg_catalog;
16128+
16129+--
16130+-- Name: auto_playlists; Type: ACL; Schema: bapsplanner; Owner: postgres
16131+--
16132+
16133+REVOKE ALL ON TABLE auto_playlists FROM PUBLIC;
16134+REVOKE ALL ON TABLE auto_playlists FROM postgres;
16135+GRANT ALL ON TABLE auto_playlists TO postgres;
16136+GRANT SELECT ON TABLE auto_playlists TO bapsweb;
16137+
16138+
16139+--
16140+-- Name: managed_items; Type: ACL; Schema: bapsplanner; Owner: web
16141+--
16142+
16143+REVOKE ALL ON TABLE managed_items FROM PUBLIC;
16144+REVOKE ALL ON TABLE managed_items FROM web;
16145+GRANT ALL ON TABLE managed_items TO web;
16146+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE managed_items TO bapsweb;
16147+
16148+
16149+--
16150+-- Name: managed_items_manageditemid_seq; Type: ACL; Schema: bapsplanner; Owner: web
16151+--
16152+
16153+REVOKE ALL ON SEQUENCE managed_items_manageditemid_seq FROM PUBLIC;
16154+REVOKE ALL ON SEQUENCE managed_items_manageditemid_seq FROM web;
16155+GRANT ALL ON SEQUENCE managed_items_manageditemid_seq TO web;
16156+GRANT SELECT,UPDATE ON SEQUENCE managed_items_manageditemid_seq TO bapsweb;
16157+
16158+
16159+--
16160+-- Name: managed_items_managedplaylistid_seq; Type: ACL; Schema: bapsplanner; Owner: web
16161+--
16162+
16163+REVOKE ALL ON SEQUENCE managed_items_managedplaylistid_seq FROM PUBLIC;
16164+REVOKE ALL ON SEQUENCE managed_items_managedplaylistid_seq FROM web;
16165+GRANT ALL ON SEQUENCE managed_items_managedplaylistid_seq TO web;
16166+GRANT SELECT,UPDATE ON SEQUENCE managed_items_managedplaylistid_seq TO bapsweb;
16167+
16168+
16169+--
16170+-- Name: managed_playlists; Type: ACL; Schema: bapsplanner; Owner: web
16171+--
16172+
16173+REVOKE ALL ON TABLE managed_playlists FROM PUBLIC;
16174+REVOKE ALL ON TABLE managed_playlists FROM web;
16175+GRANT ALL ON TABLE managed_playlists TO web;
16176+GRANT SELECT,INSERT,REFERENCES,DELETE,TRIGGER,UPDATE ON TABLE managed_playlists TO bapsweb;
16177+
16178+
16179+--
16180+-- Name: managed_playlists_managedplaylistid_seq; Type: ACL; Schema: bapsplanner; Owner: web
16181+--
16182+
16183+REVOKE ALL ON SEQUENCE managed_playlists_managedplaylistid_seq FROM PUBLIC;
16184+REVOKE ALL ON SEQUENCE managed_playlists_managedplaylistid_seq FROM web;
16185+GRANT ALL ON SEQUENCE managed_playlists_managedplaylistid_seq TO web;
16186+GRANT SELECT,UPDATE ON SEQUENCE managed_playlists_managedplaylistid_seq TO bapsweb;
16187+
16188+
16189+--
16190+-- Name: managed_user_items; Type: ACL; Schema: bapsplanner; Owner: web
16191+--
16192+
16193+REVOKE ALL ON TABLE managed_user_items FROM PUBLIC;
16194+REVOKE ALL ON TABLE managed_user_items FROM web;
16195+GRANT ALL ON TABLE managed_user_items TO web;
16196+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE managed_user_items TO bapsweb;
16197+
16198+
16199+--
16200+-- Name: secure_play_token; Type: ACL; Schema: bapsplanner; Owner: web
16201+--
16202+
16203+REVOKE ALL ON TABLE secure_play_token FROM PUBLIC;
16204+REVOKE ALL ON TABLE secure_play_token FROM web;
16205+GRANT ALL ON TABLE secure_play_token TO web;
16206+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE secure_play_token TO bapsweb;
16207+
16208+
16209+--
16210+-- Name: timeslot_items; Type: ACL; Schema: bapsplanner; Owner: web
16211+--
16212+
16213+REVOKE ALL ON TABLE timeslot_items FROM PUBLIC;
16214+REVOKE ALL ON TABLE timeslot_items FROM web;
16215+GRANT ALL ON TABLE timeslot_items TO web;
16216+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE timeslot_items TO bapsweb;
16217+
16218+
16219+--
16220+-- Name: timeslot_items_timeslot_item_id_seq; Type: ACL; Schema: bapsplanner; Owner: web
16221+--
16222+
16223+REVOKE ALL ON SEQUENCE timeslot_items_timeslot_item_id_seq FROM PUBLIC;
16224+REVOKE ALL ON SEQUENCE timeslot_items_timeslot_item_id_seq FROM web;
16225+GRANT ALL ON SEQUENCE timeslot_items_timeslot_item_id_seq TO web;
16226+GRANT SELECT,UPDATE ON SEQUENCE timeslot_items_timeslot_item_id_seq TO bapsweb;
16227+
16228+
16229+SET search_path = deploy, pg_catalog;
16230+
16231+--
16232+-- Name: myury; Type: ACL; Schema: deploy; Owner: web
16233+--
16234+
16235+REVOKE ALL ON TABLE myury FROM PUBLIC;
16236+REVOKE ALL ON TABLE myury FROM web;
16237+GRANT ALL ON TABLE myury TO web;
16238+GRANT SELECT,INSERT,UPDATE ON TABLE myury TO xauth;
16239+GRANT SELECT,INSERT,UPDATE ON TABLE myury TO xwrite;
16240+
16241+
16242+--
16243+-- Name: showplanner; Type: ACL; Schema: deploy; Owner: web
16244+--
16245+
16246+REVOKE ALL ON TABLE showplanner FROM PUBLIC;
16247+REVOKE ALL ON TABLE showplanner FROM web;
16248+GRANT ALL ON TABLE showplanner TO web;
16249+GRANT ALL ON TABLE showplanner TO xauth;
16250+GRANT SELECT ON TABLE showplanner TO bapsweb;
16251+GRANT ALL ON TABLE showplanner TO xwrite;
16252+
16253+
16254+SET search_path = jukebox, pg_catalog;
16255+
16256+--
16257+-- Name: playlist_entries; Type: ACL; Schema: jukebox; Owner: web
16258+--
16259+
16260+REVOKE ALL ON TABLE playlist_entries FROM PUBLIC;
16261+REVOKE ALL ON TABLE playlist_entries FROM web;
16262+GRANT ALL ON TABLE playlist_entries TO web;
16263+GRANT SELECT,INSERT,REFERENCES,UPDATE ON TABLE playlist_entries TO uryjukebox;
16264+GRANT SELECT ON TABLE playlist_entries TO bapsweb;
16265+
16266+
16267+--
16268+-- Name: playlist_entries_entryid_seq; Type: ACL; Schema: jukebox; Owner: web
16269+--
16270+
16271+REVOKE ALL ON SEQUENCE playlist_entries_entryid_seq FROM PUBLIC;
16272+REVOKE ALL ON SEQUENCE playlist_entries_entryid_seq FROM web;
16273+GRANT ALL ON SEQUENCE playlist_entries_entryid_seq TO web;
16274+GRANT ALL ON SEQUENCE playlist_entries_entryid_seq TO uryjukebox;
16275+
16276+
16277+--
16278+-- Name: playlist_revisions; Type: ACL; Schema: jukebox; Owner: web
16279+--
16280+
16281+REVOKE ALL ON TABLE playlist_revisions FROM PUBLIC;
16282+REVOKE ALL ON TABLE playlist_revisions FROM web;
16283+GRANT ALL ON TABLE playlist_revisions TO web;
16284+GRANT SELECT,INSERT,REFERENCES,UPDATE ON TABLE playlist_revisions TO uryjukebox;
16285+
16286+
16287+--
16288+-- Name: playlists; Type: ACL; Schema: jukebox; Owner: web
16289+--
16290+
16291+REVOKE ALL ON TABLE playlists FROM PUBLIC;
16292+REVOKE ALL ON TABLE playlists FROM web;
16293+GRANT ALL ON TABLE playlists TO web;
16294+GRANT ALL ON TABLE playlists TO uryjukebox;
16295+GRANT SELECT ON TABLE playlists TO bapsweb;
16296+
16297+
16298+--
16299+-- Name: silence_log; Type: ACL; Schema: jukebox; Owner: web
16300+--
16301+
16302+REVOKE ALL ON TABLE silence_log FROM PUBLIC;
16303+REVOKE ALL ON TABLE silence_log FROM web;
16304+GRANT ALL ON TABLE silence_log TO web;
16305+GRANT SELECT,INSERT,UPDATE ON TABLE silence_log TO silence;
16306+GRANT SELECT ON TABLE silence_log TO clock;
16307+
16308+
16309+--
16310+-- Name: silence_log_silenceid_seq; Type: ACL; Schema: jukebox; Owner: web
16311+--
16312+
16313+REVOKE ALL ON SEQUENCE silence_log_silenceid_seq FROM PUBLIC;
16314+REVOKE ALL ON SEQUENCE silence_log_silenceid_seq FROM web;
16315+GRANT ALL ON SEQUENCE silence_log_silenceid_seq TO web;
16316+GRANT SELECT,UPDATE ON SEQUENCE silence_log_silenceid_seq TO silence;
16317+
16318+
16319+SET search_path = loggerng, pg_catalog;
16320+
16321+--
16322+-- Name: logs; Type: ACL; Schema: loggerng; Owner: web
16323+--
16324+
16325+REVOKE ALL ON TABLE logs FROM PUBLIC;
16326+REVOKE ALL ON TABLE logs FROM web;
16327+GRANT ALL ON TABLE logs TO web;
16328+GRANT ALL ON TABLE logs TO loggerng;
16329+
16330+
16331+--
16332+-- Name: requests; Type: ACL; Schema: loggerng; Owner: web
16333+--
16334+
16335+REVOKE ALL ON TABLE requests FROM PUBLIC;
16336+REVOKE ALL ON TABLE requests FROM web;
16337+GRANT ALL ON TABLE requests TO web;
16338+GRANT ALL ON TABLE requests TO loggerng;
16339+
16340+
16341+SET search_path = loggerng_test, pg_catalog;
16342+
16343+--
16344+-- Name: logs; Type: ACL; Schema: loggerng_test; Owner: web
16345+--
16346+
16347+REVOKE ALL ON TABLE logs FROM PUBLIC;
16348+REVOKE ALL ON TABLE logs FROM web;
16349+GRANT ALL ON TABLE logs TO web;
16350+GRANT ALL ON TABLE logs TO loggerng_test;
16351+
16352+
16353+--
16354+-- Name: requests; Type: ACL; Schema: loggerng_test; Owner: web
16355+--
16356+
16357+REVOKE ALL ON TABLE requests FROM PUBLIC;
16358+REVOKE ALL ON TABLE requests FROM web;
16359+GRANT ALL ON TABLE requests TO web;
16360+GRANT ALL ON TABLE requests TO loggerng_test;
16361+
16362+
16363+SET search_path = metadata, pg_catalog;
16364+
16365+--
16366+-- Name: metadata_key; Type: ACL; Schema: metadata; Owner: web
16367+--
16368+
16369+REVOKE ALL ON TABLE metadata_key FROM PUBLIC;
16370+REVOKE ALL ON TABLE metadata_key FROM web;
16371+GRANT ALL ON TABLE metadata_key TO web;
16372+GRANT SELECT,INSERT,REFERENCES,DELETE,UPDATE ON TABLE metadata_key TO django;
16373+GRANT SELECT ON TABLE metadata_key TO shibbobleh;
16374+
16375+
16376+--
16377+-- Name: metadata_key_metadata_key_id_seq; Type: ACL; Schema: metadata; Owner: web
16378+--
16379+
16380+REVOKE ALL ON SEQUENCE metadata_key_metadata_key_id_seq FROM PUBLIC;
16381+REVOKE ALL ON SEQUENCE metadata_key_metadata_key_id_seq FROM web;
16382+GRANT ALL ON SEQUENCE metadata_key_metadata_key_id_seq TO web;
16383+GRANT USAGE ON SEQUENCE metadata_key_metadata_key_id_seq TO django;
16384+
16385+
16386+SET search_path = myury, pg_catalog;
16387+
16388+--
16389+-- Name: contract_versions; Type: ACL; Schema: myury; Owner: web
16390+--
16391+
16392+REVOKE ALL ON TABLE contract_versions FROM PUBLIC;
16393+REVOKE ALL ON TABLE contract_versions FROM web;
16394+GRANT ALL ON TABLE contract_versions TO web;
16395+GRANT SELECT ON TABLE contract_versions TO shibbobleh;
16396+
16397+
16398+SET search_path = people, pg_catalog;
16399+
16400+--
16401+-- Name: credit_type; Type: ACL; Schema: people; Owner: web
16402+--
16403+
16404+REVOKE ALL ON TABLE credit_type FROM PUBLIC;
16405+REVOKE ALL ON TABLE credit_type FROM web;
16406+GRANT ALL ON TABLE credit_type TO web;
16407+GRANT SELECT,INSERT ON TABLE credit_type TO django;
16408+
16409+
16410+--
16411+-- Name: role; Type: ACL; Schema: people; Owner: web
16412+--
16413+
16414+REVOKE ALL ON TABLE role FROM PUBLIC;
16415+REVOKE ALL ON TABLE role FROM web;
16416+GRANT ALL ON TABLE role TO web;
16417+
16418+
16419+--
16420+-- Name: role_inheritance; Type: ACL; Schema: people; Owner: web
16421+--
16422+
16423+REVOKE ALL ON TABLE role_inheritance FROM PUBLIC;
16424+REVOKE ALL ON TABLE role_inheritance FROM web;
16425+GRANT ALL ON TABLE role_inheritance TO web;
16426+
16427+
16428+--
16429+-- Name: role_text_metadata; Type: ACL; Schema: people; Owner: web
16430+--
16431+
16432+REVOKE ALL ON TABLE role_text_metadata FROM PUBLIC;
16433+REVOKE ALL ON TABLE role_text_metadata FROM web;
16434+GRANT ALL ON TABLE role_text_metadata TO web;
16435+
16436+
16437+--
16438+-- Name: role_metadata_role_metadata_id_seq; Type: ACL; Schema: people; Owner: web
16439+--
16440+
16441+REVOKE ALL ON SEQUENCE role_metadata_role_metadata_id_seq FROM PUBLIC;
16442+REVOKE ALL ON SEQUENCE role_metadata_role_metadata_id_seq FROM web;
16443+GRANT ALL ON SEQUENCE role_metadata_role_metadata_id_seq TO web;
16444+
16445+
16446+--
16447+-- Name: role_visibility; Type: ACL; Schema: people; Owner: web
16448+--
16449+
16450+REVOKE ALL ON TABLE role_visibility FROM PUBLIC;
16451+REVOKE ALL ON TABLE role_visibility FROM web;
16452+GRANT ALL ON TABLE role_visibility TO web;
16453+
16454+
16455+--
16456+-- Name: roles_id_seq; Type: ACL; Schema: people; Owner: web
16457+--
16458+
16459+REVOKE ALL ON SEQUENCE roles_id_seq FROM PUBLIC;
16460+REVOKE ALL ON SEQUENCE roles_id_seq FROM web;
16461+GRANT ALL ON SEQUENCE roles_id_seq TO web;
16462+
16463+
16464+SET search_path = public, pg_catalog;
16465+
16466+--
16467+-- Name: auth; Type: ACL; Schema: public; Owner: pgsql
16468+--
16469+
16470+REVOKE ALL ON TABLE auth FROM PUBLIC;
16471+REVOKE ALL ON TABLE auth FROM pgsql;
16472+GRANT ALL ON TABLE auth TO pgsql;
16473+GRANT SELECT ON TABLE auth TO cataloguer_script;
16474+GRANT SELECT ON TABLE auth TO xauth;
16475+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE auth TO xwrite;
16476+GRANT SELECT ON TABLE auth TO xyusu;
16477+GRANT SELECT ON TABLE auth TO bapsweb;
16478+GRANT SELECT ON TABLE auth TO uryjukebox;
16479+GRANT SELECT ON TABLE auth TO sis;
16480+GRANT SELECT ON TABLE auth TO shibbobleh;
16481+
16482+
16483+--
16484+-- Name: auth_officer; Type: ACL; Schema: public; Owner: pgsql
16485+--
16486+
16487+REVOKE ALL ON TABLE auth_officer FROM PUBLIC;
16488+REVOKE ALL ON TABLE auth_officer FROM pgsql;
16489+GRANT ALL ON TABLE auth_officer TO pgsql;
16490+GRANT SELECT ON TABLE auth_officer TO cataloguer_script;
16491+GRANT SELECT ON TABLE auth_officer TO xauth;
16492+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE auth_officer TO xwrite;
16493+GRANT SELECT ON TABLE auth_officer TO xyusu;
16494+GRANT SELECT ON TABLE auth_officer TO bapsweb;
16495+GRANT SELECT ON TABLE auth_officer TO uryjukebox;
16496+GRANT SELECT ON TABLE auth_officer TO sis;
16497+GRANT SELECT ON TABLE auth_officer TO shibbobleh;
16498+
16499+
16500+--
16501+-- Name: baps_audio; Type: ACL; Schema: public; Owner: web
16502+--
16503+
16504+REVOKE ALL ON TABLE baps_audio FROM PUBLIC;
16505+REVOKE ALL ON TABLE baps_audio FROM web;
16506+GRANT ALL ON TABLE baps_audio TO web;
16507+GRANT SELECT,INSERT,UPDATE ON TABLE baps_audio TO bapsserver;
16508+GRANT SELECT,INSERT ON TABLE baps_audio TO pplaudit;
16509+GRANT SELECT ON TABLE baps_audio TO frontend;
16510+GRANT SELECT ON TABLE baps_audio TO xauth;
16511+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_audio TO bapsweb;
16512+GRANT SELECT ON TABLE baps_audio TO sis;
16513+GRANT SELECT ON TABLE baps_audio TO icetracks;
16514+
16515+
16516+--
16517+-- Name: baps_audio_audioid_seq; Type: ACL; Schema: public; Owner: web
16518+--
16519+
16520+REVOKE ALL ON SEQUENCE baps_audio_audioid_seq FROM PUBLIC;
16521+REVOKE ALL ON SEQUENCE baps_audio_audioid_seq FROM web;
16522+GRANT ALL ON SEQUENCE baps_audio_audioid_seq TO web;
16523+GRANT SELECT,UPDATE ON SEQUENCE baps_audio_audioid_seq TO bapsserver;
16524+GRANT SELECT,UPDATE ON SEQUENCE baps_audio_audioid_seq TO pplaudit;
16525+GRANT SELECT,UPDATE ON SEQUENCE baps_audio_audioid_seq TO bapsweb;
16526+
16527+
16528+--
16529+-- Name: baps_audiolog; Type: ACL; Schema: public; Owner: web
16530+--
16531+
16532+REVOKE ALL ON TABLE baps_audiolog FROM PUBLIC;
16533+REVOKE ALL ON TABLE baps_audiolog FROM web;
16534+GRANT ALL ON TABLE baps_audiolog TO web;
16535+GRANT SELECT,INSERT,UPDATE ON TABLE baps_audiolog TO bapsserver;
16536+GRANT SELECT,INSERT ON TABLE baps_audiolog TO pplaudit;
16537+GRANT SELECT ON TABLE baps_audiolog TO frontend;
16538+GRANT SELECT ON TABLE baps_audiolog TO xauth;
16539+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_audiolog TO bapsweb;
16540+GRANT SELECT ON TABLE baps_audiolog TO sis;
16541+GRANT SELECT ON TABLE baps_audiolog TO icetracks;
16542+
16543+
16544+--
16545+-- Name: baps_audiolog_audiologid_seq; Type: ACL; Schema: public; Owner: web
16546+--
16547+
16548+REVOKE ALL ON SEQUENCE baps_audiolog_audiologid_seq FROM PUBLIC;
16549+REVOKE ALL ON SEQUENCE baps_audiolog_audiologid_seq FROM web;
16550+GRANT ALL ON SEQUENCE baps_audiolog_audiologid_seq TO web;
16551+GRANT SELECT,UPDATE ON SEQUENCE baps_audiolog_audiologid_seq TO bapsserver;
16552+GRANT SELECT,UPDATE ON SEQUENCE baps_audiolog_audiologid_seq TO pplaudit;
16553+GRANT SELECT,UPDATE ON SEQUENCE baps_audiolog_audiologid_seq TO bapsweb;
16554+
16555+
16556+--
16557+-- Name: baps_filefolder; Type: ACL; Schema: public; Owner: web
16558+--
16559+
16560+REVOKE ALL ON TABLE baps_filefolder FROM PUBLIC;
16561+REVOKE ALL ON TABLE baps_filefolder FROM web;
16562+GRANT ALL ON TABLE baps_filefolder TO web;
16563+GRANT SELECT ON TABLE baps_filefolder TO bapsserver;
16564+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_filefolder TO bapsweb;
16565+
16566+
16567+--
16568+-- Name: baps_filefolder_filefolderid_seq; Type: ACL; Schema: public; Owner: web
16569+--
16570+
16571+REVOKE ALL ON SEQUENCE baps_filefolder_filefolderid_seq FROM PUBLIC;
16572+REVOKE ALL ON SEQUENCE baps_filefolder_filefolderid_seq FROM web;
16573+GRANT ALL ON SEQUENCE baps_filefolder_filefolderid_seq TO web;
16574+GRANT SELECT,UPDATE ON SEQUENCE baps_filefolder_filefolderid_seq TO bapsweb;
16575+
16576+
16577+--
16578+-- Name: baps_fileitem; Type: ACL; Schema: public; Owner: web
16579+--
16580+
16581+REVOKE ALL ON TABLE baps_fileitem FROM PUBLIC;
16582+REVOKE ALL ON TABLE baps_fileitem FROM web;
16583+GRANT ALL ON TABLE baps_fileitem TO web;
16584+GRANT SELECT ON TABLE baps_fileitem TO bapsserver;
16585+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_fileitem TO bapsweb;
16586+
16587+
16588+--
16589+-- Name: baps_fileitem_fileitemid_seq; Type: ACL; Schema: public; Owner: web
16590+--
16591+
16592+REVOKE ALL ON SEQUENCE baps_fileitem_fileitemid_seq FROM PUBLIC;
16593+REVOKE ALL ON SEQUENCE baps_fileitem_fileitemid_seq FROM web;
16594+GRANT ALL ON SEQUENCE baps_fileitem_fileitemid_seq TO web;
16595+GRANT SELECT,UPDATE ON SEQUENCE baps_fileitem_fileitemid_seq TO bapsweb;
16596+
16597+
16598+--
16599+-- Name: baps_item; Type: ACL; Schema: public; Owner: web
16600+--
16601+
16602+REVOKE ALL ON TABLE baps_item FROM PUBLIC;
16603+REVOKE ALL ON TABLE baps_item FROM web;
16604+GRANT ALL ON TABLE baps_item TO web;
16605+GRANT SELECT ON TABLE baps_item TO bapsserver;
16606+GRANT SELECT ON TABLE baps_item TO frontend;
16607+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_item TO bapsweb;
16608+
16609+
16610+--
16611+-- Name: baps_item_itemid_seq; Type: ACL; Schema: public; Owner: web
16612+--
16613+
16614+REVOKE ALL ON SEQUENCE baps_item_itemid_seq FROM PUBLIC;
16615+REVOKE ALL ON SEQUENCE baps_item_itemid_seq FROM web;
16616+GRANT ALL ON SEQUENCE baps_item_itemid_seq TO web;
16617+GRANT SELECT,UPDATE ON SEQUENCE baps_item_itemid_seq TO bapsweb;
16618+
16619+
16620+--
16621+-- Name: baps_libraryitem; Type: ACL; Schema: public; Owner: web
16622+--
16623+
16624+REVOKE ALL ON TABLE baps_libraryitem FROM PUBLIC;
16625+REVOKE ALL ON TABLE baps_libraryitem FROM web;
16626+GRANT ALL ON TABLE baps_libraryitem TO web;
16627+GRANT SELECT ON TABLE baps_libraryitem TO bapsserver;
16628+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_libraryitem TO bapsweb;
16629+
16630+
16631+--
16632+-- Name: baps_libraryitem_libraryitemid_seq; Type: ACL; Schema: public; Owner: web
16633+--
16634+
16635+REVOKE ALL ON SEQUENCE baps_libraryitem_libraryitemid_seq FROM PUBLIC;
16636+REVOKE ALL ON SEQUENCE baps_libraryitem_libraryitemid_seq FROM web;
16637+GRANT ALL ON SEQUENCE baps_libraryitem_libraryitemid_seq TO web;
16638+GRANT SELECT,UPDATE ON SEQUENCE baps_libraryitem_libraryitemid_seq TO bapsweb;
16639+
16640+
16641+--
16642+-- Name: baps_listing; Type: ACL; Schema: public; Owner: web
16643+--
16644+
16645+REVOKE ALL ON TABLE baps_listing FROM PUBLIC;
16646+REVOKE ALL ON TABLE baps_listing FROM web;
16647+GRANT ALL ON TABLE baps_listing TO web;
16648+GRANT SELECT ON TABLE baps_listing TO bapsserver;
16649+GRANT SELECT ON TABLE baps_listing TO frontend;
16650+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_listing TO bapsweb;
16651+
16652+
16653+--
16654+-- Name: baps_listing_listingid_seq; Type: ACL; Schema: public; Owner: web
16655+--
16656+
16657+REVOKE ALL ON SEQUENCE baps_listing_listingid_seq FROM PUBLIC;
16658+REVOKE ALL ON SEQUENCE baps_listing_listingid_seq FROM web;
16659+GRANT ALL ON SEQUENCE baps_listing_listingid_seq TO web;
16660+GRANT SELECT,UPDATE ON SEQUENCE baps_listing_listingid_seq TO bapsweb;
16661+
16662+
16663+--
16664+-- Name: baps_personal_collection_unique_id; Type: ACL; Schema: public; Owner: web
16665+--
16666+
16667+REVOKE ALL ON SEQUENCE baps_personal_collection_unique_id FROM PUBLIC;
16668+REVOKE ALL ON SEQUENCE baps_personal_collection_unique_id FROM web;
16669+GRANT ALL ON SEQUENCE baps_personal_collection_unique_id TO web;
16670+GRANT SELECT,UPDATE ON SEQUENCE baps_personal_collection_unique_id TO bapsweb;
16671+
16672+
16673+--
16674+-- Name: rec_track; Type: ACL; Schema: public; Owner: web
16675+--
16676+
16677+REVOKE ALL ON TABLE rec_track FROM PUBLIC;
16678+REVOKE ALL ON TABLE rec_track FROM web;
16679+GRANT ALL ON TABLE rec_track TO web;
16680+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE rec_track TO cataloguer;
16681+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE rec_track TO cataloguer_external;
16682+GRANT SELECT,UPDATE ON TABLE rec_track TO bapsvalidator;
16683+GRANT SELECT,UPDATE ON TABLE rec_track TO bapsserver;
16684+GRANT SELECT,UPDATE ON TABLE rec_track TO audiouploadscript;
16685+GRANT SELECT ON TABLE rec_track TO pplaudit;
16686+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE rec_track TO cataloguer_script;
16687+GRANT SELECT ON TABLE rec_track TO sis;
16688+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE rec_track TO xmp3;
16689+GRANT SELECT ON TABLE rec_track TO frontend;
16690+GRANT SELECT ON TABLE rec_track TO xauth;
16691+GRANT SELECT,INSERT,UPDATE ON TABLE rec_track TO xcataloguer;
16692+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE rec_track TO xwrite;
16693+GRANT SELECT,INSERT,UPDATE ON TABLE rec_track TO bapsweb;
16694+GRANT SELECT ON TABLE rec_track TO uryjukebox;
16695+GRANT SELECT ON TABLE rec_track TO icetracks;
16696+GRANT SELECT ON TABLE rec_track TO django;
16697+
16698+
16699+--
16700+-- Name: baps_server; Type: ACL; Schema: public; Owner: web
16701+--
16702+
16703+REVOKE ALL ON TABLE baps_server FROM PUBLIC;
16704+REVOKE ALL ON TABLE baps_server FROM web;
16705+GRANT ALL ON TABLE baps_server TO web;
16706+GRANT SELECT,INSERT,UPDATE ON TABLE baps_server TO bapsserver;
16707+GRANT SELECT ON TABLE baps_server TO pplaudit;
16708+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_server TO bapsweb;
16709+
16710+
16711+--
16712+-- Name: baps_server_serverid_seq; Type: ACL; Schema: public; Owner: web
16713+--
16714+
16715+REVOKE ALL ON SEQUENCE baps_server_serverid_seq FROM PUBLIC;
16716+REVOKE ALL ON SEQUENCE baps_server_serverid_seq FROM web;
16717+GRANT ALL ON SEQUENCE baps_server_serverid_seq TO web;
16718+GRANT SELECT,UPDATE ON SEQUENCE baps_server_serverid_seq TO bapsserver;
16719+GRANT SELECT,UPDATE ON SEQUENCE baps_server_serverid_seq TO bapsweb;
16720+
16721+
16722+--
16723+-- Name: baps_show; Type: ACL; Schema: public; Owner: web
16724+--
16725+
16726+REVOKE ALL ON TABLE baps_show FROM PUBLIC;
16727+REVOKE ALL ON TABLE baps_show FROM web;
16728+GRANT ALL ON TABLE baps_show TO web;
16729+GRANT SELECT ON TABLE baps_show TO bapsserver;
16730+GRANT SELECT ON TABLE baps_show TO frontend;
16731+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_show TO bapsweb;
16732+
16733+
16734+--
16735+-- Name: baps_show_showid_seq; Type: ACL; Schema: public; Owner: web
16736+--
16737+
16738+REVOKE ALL ON SEQUENCE baps_show_showid_seq FROM PUBLIC;
16739+REVOKE ALL ON SEQUENCE baps_show_showid_seq FROM web;
16740+GRANT ALL ON SEQUENCE baps_show_showid_seq TO web;
16741+GRANT SELECT,UPDATE ON SEQUENCE baps_show_showid_seq TO bapsweb;
16742+
16743+
16744+--
16745+-- Name: baps_textitem; Type: ACL; Schema: public; Owner: web
16746+--
16747+
16748+REVOKE ALL ON TABLE baps_textitem FROM PUBLIC;
16749+REVOKE ALL ON TABLE baps_textitem FROM web;
16750+GRANT ALL ON TABLE baps_textitem TO web;
16751+GRANT SELECT ON TABLE baps_textitem TO bapsserver;
16752+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_textitem TO bapsweb;
16753+
16754+
16755+--
16756+-- Name: baps_textitem_textitemid_seq; Type: ACL; Schema: public; Owner: web
16757+--
16758+
16759+REVOKE ALL ON SEQUENCE baps_textitem_textitemid_seq FROM PUBLIC;
16760+REVOKE ALL ON SEQUENCE baps_textitem_textitemid_seq FROM web;
16761+GRANT ALL ON SEQUENCE baps_textitem_textitemid_seq TO web;
16762+GRANT SELECT,UPDATE ON SEQUENCE baps_textitem_textitemid_seq TO bapsweb;
16763+
16764+
16765+--
16766+-- Name: baps_user; Type: ACL; Schema: public; Owner: web
16767+--
16768+
16769+REVOKE ALL ON TABLE baps_user FROM PUBLIC;
16770+REVOKE ALL ON TABLE baps_user FROM web;
16771+GRANT ALL ON TABLE baps_user TO web;
16772+GRANT SELECT ON TABLE baps_user TO bapsserver;
16773+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_user TO bapsweb;
16774+
16775+
16776+--
16777+-- Name: baps_user_external; Type: ACL; Schema: public; Owner: web
16778+--
16779+
16780+REVOKE ALL ON TABLE baps_user_external FROM PUBLIC;
16781+REVOKE ALL ON TABLE baps_user_external FROM web;
16782+GRANT ALL ON TABLE baps_user_external TO web;
16783+GRANT SELECT ON TABLE baps_user_external TO bapsserver;
16784+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_user_external TO bapsweb;
16785+
16786+
16787+--
16788+-- Name: baps_user_external_userexternalid_seq; Type: ACL; Schema: public; Owner: web
16789+--
16790+
16791+REVOKE ALL ON SEQUENCE baps_user_external_userexternalid_seq FROM PUBLIC;
16792+REVOKE ALL ON SEQUENCE baps_user_external_userexternalid_seq FROM web;
16793+GRANT ALL ON SEQUENCE baps_user_external_userexternalid_seq TO web;
16794+GRANT SELECT,UPDATE ON SEQUENCE baps_user_external_userexternalid_seq TO bapsweb;
16795+
16796+
16797+--
16798+-- Name: baps_user_filefolder; Type: ACL; Schema: public; Owner: web
16799+--
16800+
16801+REVOKE ALL ON TABLE baps_user_filefolder FROM PUBLIC;
16802+REVOKE ALL ON TABLE baps_user_filefolder FROM web;
16803+GRANT ALL ON TABLE baps_user_filefolder TO web;
16804+GRANT SELECT ON TABLE baps_user_filefolder TO bapsserver;
16805+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE baps_user_filefolder TO bapsweb;
16806+
16807+
16808+--
16809+-- Name: baps_user_filefolder_userfilefolderid_seq; Type: ACL; Schema: public; Owner: web
16810+--
16811+
16812+REVOKE ALL ON SEQUENCE baps_user_filefolder_userfilefolderid_seq FROM PUBLIC;
16813+REVOKE ALL ON SEQUENCE baps_user_filefolder_userfilefolderid_seq FROM web;
16814+GRANT ALL ON SEQUENCE baps_user_filefolder_userfilefolderid_seq TO web;
16815+GRANT SELECT,UPDATE ON SEQUENCE baps_user_filefolder_userfilefolderid_seq TO bapsweb;
16816+
16817+
16818+--
16819+-- Name: baps_user_userid_seq; Type: ACL; Schema: public; Owner: web
16820+--
16821+
16822+REVOKE ALL ON SEQUENCE baps_user_userid_seq FROM PUBLIC;
16823+REVOKE ALL ON SEQUENCE baps_user_userid_seq FROM web;
16824+GRANT ALL ON SEQUENCE baps_user_userid_seq TO web;
16825+GRANT SELECT,UPDATE ON SEQUENCE baps_user_userid_seq TO bapsweb;
16826+
16827+
16828+--
16829+-- Name: cat_view_promoter; Type: ACL; Schema: public; Owner: web
16830+--
16831+
16832+REVOKE ALL ON TABLE cat_view_promoter FROM PUBLIC;
16833+REVOKE ALL ON TABLE cat_view_promoter FROM web;
16834+GRANT ALL ON TABLE cat_view_promoter TO web;
16835+GRANT SELECT ON TABLE cat_view_promoter TO cataloguer_script;
16836+
16837+
16838+--
16839+-- Name: chart; Type: ACL; Schema: public; Owner: web
16840+--
16841+
16842+REVOKE ALL ON TABLE chart FROM PUBLIC;
16843+REVOKE ALL ON TABLE chart FROM web;
16844+GRANT ALL ON TABLE chart TO web;
16845+GRANT SELECT,INSERT,DELETE ON TABLE chart TO frontend;
16846+GRANT SELECT ON TABLE chart TO xauth;
16847+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE chart TO xwrite;
16848+GRANT SELECT ON TABLE chart TO urybot;
16849+
16850+
16851+--
16852+-- Name: selector; Type: ACL; Schema: public; Owner: web
16853+--
16854+
16855+REVOKE ALL ON TABLE selector FROM PUBLIC;
16856+REVOKE ALL ON TABLE selector FROM web;
16857+GRANT ALL ON TABLE selector TO web;
16858+GRANT SELECT,INSERT,UPDATE ON TABLE selector TO studioselector;
16859+GRANT SELECT ON TABLE selector TO urybot;
16860+GRANT SELECT ON TABLE selector TO clock;
16861+GRANT SELECT ON TABLE selector TO PUBLIC;
16862+
16863+
16864+--
16865+-- Name: gammu; Type: ACL; Schema: public; Owner: web
16866+--
16867+
16868+REVOKE ALL ON TABLE gammu FROM PUBLIC;
16869+REVOKE ALL ON TABLE gammu FROM web;
16870+GRANT ALL ON TABLE gammu TO web;
16871+GRANT SELECT ON TABLE gammu TO xsms;
16872+
16873+
16874+--
16875+-- Name: l_action; Type: ACL; Schema: public; Owner: pgsql
16876+--
16877+
16878+REVOKE ALL ON TABLE l_action FROM PUBLIC;
16879+REVOKE ALL ON TABLE l_action FROM pgsql;
16880+GRANT ALL ON TABLE l_action TO pgsql;
16881+GRANT SELECT ON TABLE l_action TO xauth;
16882+GRANT SELECT,INSERT,UPDATE ON TABLE l_action TO xwrite;
16883+
16884+
16885+--
16886+-- Name: l_action_typeid_seq; Type: ACL; Schema: public; Owner: web
16887+--
16888+
16889+REVOKE ALL ON SEQUENCE l_action_typeid_seq FROM PUBLIC;
16890+REVOKE ALL ON SEQUENCE l_action_typeid_seq FROM web;
16891+GRANT ALL ON SEQUENCE l_action_typeid_seq TO web;
16892+GRANT SELECT,UPDATE ON SEQUENCE l_action_typeid_seq TO xwrite;
16893+GRANT SELECT ON SEQUENCE l_action_typeid_seq TO xauth;
16894+
16895+
16896+--
16897+-- Name: l_college; Type: ACL; Schema: public; Owner: pgsql
16898+--
16899+
16900+REVOKE ALL ON TABLE l_college FROM PUBLIC;
16901+REVOKE ALL ON TABLE l_college FROM pgsql;
16902+GRANT ALL ON TABLE l_college TO pgsql;
16903+GRANT SELECT ON TABLE l_college TO xauth;
16904+
16905+
16906+--
16907+-- Name: l_subnet; Type: ACL; Schema: public; Owner: web
16908+--
16909+
16910+REVOKE ALL ON TABLE l_subnet FROM PUBLIC;
16911+REVOKE ALL ON TABLE l_subnet FROM web;
16912+GRANT ALL ON TABLE l_subnet TO web;
16913+GRANT SELECT ON TABLE l_subnet TO sis;
16914+
16915+
16916+--
16917+-- Name: mail_alias_text; Type: ACL; Schema: public; Owner: web
16918+--
16919+
16920+REVOKE ALL ON TABLE mail_alias_text FROM PUBLIC;
16921+REVOKE ALL ON TABLE mail_alias_text FROM web;
16922+GRANT ALL ON TABLE mail_alias_text TO web;
16923+GRANT SELECT ON TABLE mail_alias_text TO xauth;
16924+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE mail_alias_text TO xwrite;
16925+GRANT SELECT ON TABLE mail_alias_text TO xmail;
16926+
16927+
16928+--
16929+-- Name: mail_aliasid_seq; Type: ACL; Schema: public; Owner: web
16930+--
16931+
16932+REVOKE ALL ON SEQUENCE mail_aliasid_seq FROM PUBLIC;
16933+REVOKE ALL ON SEQUENCE mail_aliasid_seq FROM web;
16934+GRANT ALL ON SEQUENCE mail_aliasid_seq TO web;
16935+GRANT SELECT,UPDATE ON SEQUENCE mail_aliasid_seq TO xwrite;
16936+
16937+
16938+--
16939+-- Name: mail_alias_list; Type: ACL; Schema: public; Owner: web
16940+--
16941+
16942+REVOKE ALL ON TABLE mail_alias_list FROM PUBLIC;
16943+REVOKE ALL ON TABLE mail_alias_list FROM web;
16944+GRANT ALL ON TABLE mail_alias_list TO web;
16945+GRANT SELECT ON TABLE mail_alias_list TO xauth;
16946+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE mail_alias_list TO xwrite;
16947+GRANT SELECT ON TABLE mail_alias_list TO xmail;
16948+
16949+
16950+--
16951+-- Name: mail_alias_member; Type: ACL; Schema: public; Owner: web
16952+--
16953+
16954+REVOKE ALL ON TABLE mail_alias_member FROM PUBLIC;
16955+REVOKE ALL ON TABLE mail_alias_member FROM web;
16956+GRANT ALL ON TABLE mail_alias_member TO web;
16957+GRANT SELECT ON TABLE mail_alias_member TO xauth;
16958+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE mail_alias_member TO xwrite;
16959+GRANT SELECT ON TABLE mail_alias_member TO xmail;
16960+
16961+
16962+--
16963+-- Name: mail_alias_officer; Type: ACL; Schema: public; Owner: web
16964+--
16965+
16966+REVOKE ALL ON TABLE mail_alias_officer FROM PUBLIC;
16967+REVOKE ALL ON TABLE mail_alias_officer FROM web;
16968+GRANT ALL ON TABLE mail_alias_officer TO web;
16969+GRANT SELECT ON TABLE mail_alias_officer TO xauth;
16970+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE mail_alias_officer TO xwrite;
16971+GRANT SELECT ON TABLE mail_alias_officer TO xmail;
16972+
16973+
16974+--
16975+-- Name: mail_list; Type: ACL; Schema: public; Owner: web
16976+--
16977+
16978+REVOKE ALL ON TABLE mail_list FROM PUBLIC;
16979+REVOKE ALL ON TABLE mail_list FROM web;
16980+GRANT ALL ON TABLE mail_list TO web;
16981+GRANT SELECT ON TABLE mail_list TO xauth;
16982+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE mail_list TO xwrite;
16983+GRANT SELECT ON TABLE mail_list TO xmail;
16984+
16985+
16986+--
16987+-- Name: mail_list_listid_seq; Type: ACL; Schema: public; Owner: web
16988+--
16989+
16990+REVOKE ALL ON SEQUENCE mail_list_listid_seq FROM PUBLIC;
16991+REVOKE ALL ON SEQUENCE mail_list_listid_seq FROM web;
16992+GRANT ALL ON SEQUENCE mail_list_listid_seq TO web;
16993+GRANT SELECT,UPDATE ON SEQUENCE mail_list_listid_seq TO xwrite;
16994+
16995+
16996+--
16997+-- Name: mail_subscription; Type: ACL; Schema: public; Owner: web
16998+--
16999+
17000+REVOKE ALL ON TABLE mail_subscription FROM PUBLIC;
17001+REVOKE ALL ON TABLE mail_subscription FROM web;
17002+GRANT ALL ON TABLE mail_subscription TO web;
17003+GRANT SELECT ON TABLE mail_subscription TO xauth;
17004+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE mail_subscription TO xmail;
17005+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE mail_subscription TO xwrite;
17006+
17007+
17008+--
17009+-- Name: member; Type: ACL; Schema: public; Owner: pgsql
17010+--
17011+
17012+REVOKE ALL ON TABLE member FROM PUBLIC;
17013+REVOKE ALL ON TABLE member FROM pgsql;
17014+GRANT ALL ON TABLE member TO pgsql;
17015+GRANT SELECT ON TABLE member TO cataloguer_script;
17016+GRANT SELECT ON TABLE member TO sis;
17017+GRANT SELECT,INSERT ON TABLE member TO xauth;
17018+GRANT SELECT,INSERT,UPDATE ON TABLE member TO xwrite;
17019+GRANT SELECT ON TABLE member TO frontend;
17020+GRANT SELECT ON TABLE member TO xcataloguer;
17021+GRANT SELECT ON TABLE member TO xmail;
17022+GRANT SELECT ON TABLE member TO xyusu;
17023+GRANT SELECT,UPDATE ON TABLE member TO bapsweb;
17024+GRANT SELECT ON TABLE member TO clock;
17025+GRANT SELECT ON TABLE member TO uryjukebox;
17026+GRANT SELECT,UPDATE ON TABLE member TO shibbobleh;
17027+GRANT SELECT ON TABLE member TO silence;
17028+GRANT SELECT,INSERT,REFERENCES,DELETE,UPDATE ON TABLE member TO django;
17029+GRANT SELECT ON TABLE member TO dovecot;
17030+
17031+
17032+--
17033+-- Name: member_memberid_seq; Type: ACL; Schema: public; Owner: pgsql
17034+--
17035+
17036+REVOKE ALL ON SEQUENCE member_memberid_seq FROM PUBLIC;
17037+REVOKE ALL ON SEQUENCE member_memberid_seq FROM pgsql;
17038+GRANT ALL ON SEQUENCE member_memberid_seq TO pgsql;
17039+GRANT SELECT,UPDATE ON SEQUENCE member_memberid_seq TO xwrite;
17040+
17041+
17042+--
17043+-- Name: member_office_member_office_seq; Type: ACL; Schema: public; Owner: pgsql
17044+--
17045+
17046+REVOKE ALL ON SEQUENCE member_office_member_office_seq FROM PUBLIC;
17047+REVOKE ALL ON SEQUENCE member_office_member_office_seq FROM pgsql;
17048+GRANT ALL ON SEQUENCE member_office_member_office_seq TO pgsql;
17049+GRANT SELECT,UPDATE ON SEQUENCE member_office_member_office_seq TO xwrite;
17050+
17051+
17052+--
17053+-- Name: member_officer; Type: ACL; Schema: public; Owner: pgsql
17054+--
17055+
17056+REVOKE ALL ON TABLE member_officer FROM PUBLIC;
17057+REVOKE ALL ON TABLE member_officer FROM pgsql;
17058+GRANT ALL ON TABLE member_officer TO pgsql;
17059+GRANT SELECT ON TABLE member_officer TO cataloguer_script;
17060+GRANT SELECT ON TABLE member_officer TO xauth;
17061+GRANT SELECT ON TABLE member_officer TO frontend;
17062+GRANT SELECT,INSERT,UPDATE ON TABLE member_officer TO xwrite;
17063+GRANT SELECT ON TABLE member_officer TO xmail;
17064+GRANT SELECT ON TABLE member_officer TO xyusu;
17065+GRANT SELECT ON TABLE member_officer TO bapsweb;
17066+GRANT SELECT ON TABLE member_officer TO uryjukebox;
17067+GRANT SELECT ON TABLE member_officer TO sis;
17068+GRANT SELECT ON TABLE member_officer TO shibbobleh;
17069+GRANT SELECT ON TABLE member_officer TO django;
17070+
17071+
17072+--
17073+-- Name: member_pass; Type: ACL; Schema: public; Owner: web
17074+--
17075+
17076+REVOKE ALL ON TABLE member_pass FROM PUBLIC;
17077+REVOKE ALL ON TABLE member_pass FROM web;
17078+GRANT ALL ON TABLE member_pass TO web;
17079+GRANT SELECT,INSERT,UPDATE ON TABLE member_pass TO shibbobleh;
17080+GRANT SELECT ON TABLE member_pass TO dovecot;
17081+
17082+
17083+--
17084+-- Name: member_presenterstatus; Type: ACL; Schema: public; Owner: web
17085+--
17086+
17087+REVOKE ALL ON TABLE member_presenterstatus FROM PUBLIC;
17088+REVOKE ALL ON TABLE member_presenterstatus FROM web;
17089+GRANT ALL ON TABLE member_presenterstatus TO web;
17090+GRANT SELECT,DELETE ON TABLE member_presenterstatus TO xauth;
17091+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE member_presenterstatus TO xwrite;
17092+GRANT SELECT ON TABLE member_presenterstatus TO xmail;
17093+GRANT SELECT ON TABLE member_presenterstatus TO shibbobleh;
17094+
17095+
17096+--
17097+-- Name: member_presenterstatus_memberpresenterstatusid_seq; Type: ACL; Schema: public; Owner: web
17098+--
17099+
17100+REVOKE ALL ON SEQUENCE member_presenterstatus_memberpresenterstatusid_seq FROM PUBLIC;
17101+REVOKE ALL ON SEQUENCE member_presenterstatus_memberpresenterstatusid_seq FROM web;
17102+GRANT ALL ON SEQUENCE member_presenterstatus_memberpresenterstatusid_seq TO web;
17103+GRANT SELECT,UPDATE ON SEQUENCE member_presenterstatus_memberpresenterstatusid_seq TO xwrite;
17104+
17105+
17106+--
17107+-- Name: member_year; Type: ACL; Schema: public; Owner: pgsql
17108+--
17109+
17110+REVOKE ALL ON TABLE member_year FROM PUBLIC;
17111+REVOKE ALL ON TABLE member_year FROM pgsql;
17112+GRANT ALL ON TABLE member_year TO pgsql;
17113+GRANT SELECT,INSERT ON TABLE member_year TO xauth;
17114+GRANT SELECT,INSERT,UPDATE ON TABLE member_year TO xwrite;
17115+GRANT SELECT ON TABLE member_year TO frontend;
17116+GRANT SELECT ON TABLE member_year TO xyusu;
17117+GRANT SELECT ON TABLE member_year TO sis;
17118+GRANT SELECT ON TABLE member_year TO bapsweb;
17119+GRANT SELECT,INSERT ON TABLE member_year TO shibbobleh;
17120+
17121+
17122+--
17123+-- Name: news_feed; Type: ACL; Schema: public; Owner: web
17124+--
17125+
17126+REVOKE ALL ON TABLE news_feed FROM PUBLIC;
17127+REVOKE ALL ON TABLE news_feed FROM web;
17128+GRANT ALL ON TABLE news_feed TO web;
17129+GRANT SELECT ON TABLE news_feed TO clock;
17130+
17131+
17132+--
17133+-- Name: nipsweb_migrate; Type: ACL; Schema: public; Owner: web
17134+--
17135+
17136+REVOKE ALL ON TABLE nipsweb_migrate FROM PUBLIC;
17137+REVOKE ALL ON TABLE nipsweb_migrate FROM web;
17138+GRANT ALL ON TABLE nipsweb_migrate TO web;
17139+GRANT ALL ON TABLE nipsweb_migrate TO sis;
17140+GRANT SELECT ON TABLE nipsweb_migrate TO xauth;
17141+GRANT ALL ON TABLE nipsweb_migrate TO xwrite;
17142+
17143+
17144+--
17145+-- Name: officer; Type: ACL; Schema: public; Owner: pgsql
17146+--
17147+
17148+REVOKE ALL ON TABLE officer FROM PUBLIC;
17149+REVOKE ALL ON TABLE officer FROM pgsql;
17150+GRANT ALL ON TABLE officer TO pgsql;
17151+GRANT SELECT ON TABLE officer TO cataloguer_script;
17152+GRANT SELECT ON TABLE officer TO xauth;
17153+GRANT SELECT,INSERT,UPDATE ON TABLE officer TO xwrite;
17154+GRANT SELECT ON TABLE officer TO xmail;
17155+GRANT SELECT ON TABLE officer TO django;
17156+
17157+
17158+--
17159+-- Name: officer_officerid_seq; Type: ACL; Schema: public; Owner: pgsql
17160+--
17161+
17162+REVOKE ALL ON SEQUENCE officer_officerid_seq FROM PUBLIC;
17163+REVOKE ALL ON SEQUENCE officer_officerid_seq FROM pgsql;
17164+GRANT ALL ON SEQUENCE officer_officerid_seq TO pgsql;
17165+GRANT SELECT,UPDATE ON SEQUENCE officer_officerid_seq TO xwrite;
17166+
17167+
17168+--
17169+-- Name: rec_cleanlookup; Type: ACL; Schema: public; Owner: web
17170+--
17171+
17172+REVOKE ALL ON TABLE rec_cleanlookup FROM PUBLIC;
17173+REVOKE ALL ON TABLE rec_cleanlookup FROM web;
17174+GRANT ALL ON TABLE rec_cleanlookup TO web;
17175+GRANT SELECT ON TABLE rec_cleanlookup TO cataloguer;
17176+GRANT SELECT ON TABLE rec_cleanlookup TO cataloguer_external;
17177+GRANT SELECT ON TABLE rec_cleanlookup TO cataloguer_script;
17178+GRANT SELECT ON TABLE rec_cleanlookup TO xauth;
17179+
17180+
17181+--
17182+-- Name: rec_formatlookup; Type: ACL; Schema: public; Owner: web
17183+--
17184+
17185+REVOKE ALL ON TABLE rec_formatlookup FROM PUBLIC;
17186+REVOKE ALL ON TABLE rec_formatlookup FROM web;
17187+GRANT ALL ON TABLE rec_formatlookup TO web;
17188+GRANT SELECT ON TABLE rec_formatlookup TO cataloguer;
17189+GRANT SELECT ON TABLE rec_formatlookup TO cataloguer_external;
17190+GRANT SELECT ON TABLE rec_formatlookup TO cataloguer_script;
17191+GRANT SELECT ON TABLE rec_formatlookup TO xauth;
17192+
17193+
17194+--
17195+-- Name: rec_genrelookup; Type: ACL; Schema: public; Owner: web
17196+--
17197+
17198+REVOKE ALL ON TABLE rec_genrelookup FROM PUBLIC;
17199+REVOKE ALL ON TABLE rec_genrelookup FROM web;
17200+GRANT ALL ON TABLE rec_genrelookup TO web;
17201+GRANT SELECT ON TABLE rec_genrelookup TO cataloguer;
17202+GRANT SELECT ON TABLE rec_genrelookup TO cataloguer_external;
17203+GRANT SELECT ON TABLE rec_genrelookup TO cataloguer_script;
17204+GRANT SELECT ON TABLE rec_genrelookup TO xauth;
17205+
17206+
17207+--
17208+-- Name: rec_labelqueue; Type: ACL; Schema: public; Owner: web
17209+--
17210+
17211+REVOKE ALL ON TABLE rec_labelqueue FROM PUBLIC;
17212+REVOKE ALL ON TABLE rec_labelqueue FROM web;
17213+GRANT ALL ON TABLE rec_labelqueue TO web;
17214+GRANT SELECT,INSERT ON TABLE rec_labelqueue TO cataloguer;
17215+GRANT SELECT,INSERT ON TABLE rec_labelqueue TO cataloguer_external;
17216+GRANT SELECT,INSERT,DELETE ON TABLE rec_labelqueue TO cataloguer_script;
17217+
17218+
17219+--
17220+-- Name: rec_labelqueue_queueid_seq; Type: ACL; Schema: public; Owner: web
17221+--
17222+
17223+REVOKE ALL ON SEQUENCE rec_labelqueue_queueid_seq FROM PUBLIC;
17224+REVOKE ALL ON SEQUENCE rec_labelqueue_queueid_seq FROM web;
17225+GRANT ALL ON SEQUENCE rec_labelqueue_queueid_seq TO pgsql;
17226+GRANT SELECT,UPDATE ON SEQUENCE rec_labelqueue_queueid_seq TO cataloguer;
17227+GRANT SELECT,UPDATE ON SEQUENCE rec_labelqueue_queueid_seq TO cataloguer_external;
17228+GRANT SELECT,UPDATE ON SEQUENCE rec_labelqueue_queueid_seq TO cataloguer_script;
17229+
17230+
17231+--
17232+-- Name: rec_locationlookup; Type: ACL; Schema: public; Owner: web
17233+--
17234+
17235+REVOKE ALL ON TABLE rec_locationlookup FROM PUBLIC;
17236+REVOKE ALL ON TABLE rec_locationlookup FROM web;
17237+GRANT ALL ON TABLE rec_locationlookup TO web;
17238+GRANT SELECT ON TABLE rec_locationlookup TO cataloguer;
17239+GRANT SELECT ON TABLE rec_locationlookup TO cataloguer_external;
17240+GRANT SELECT ON TABLE rec_locationlookup TO cataloguer_script;
17241+
17242+
17243+--
17244+-- Name: rec_lookup; Type: ACL; Schema: public; Owner: web
17245+--
17246+
17247+REVOKE ALL ON TABLE rec_lookup FROM PUBLIC;
17248+REVOKE ALL ON TABLE rec_lookup FROM web;
17249+GRANT ALL ON TABLE rec_lookup TO web;
17250+GRANT SELECT ON TABLE rec_lookup TO xauth;
17251+
17252+
17253+--
17254+-- Name: rec_medialookup; Type: ACL; Schema: public; Owner: web
17255+--
17256+
17257+REVOKE ALL ON TABLE rec_medialookup FROM PUBLIC;
17258+REVOKE ALL ON TABLE rec_medialookup FROM web;
17259+GRANT ALL ON TABLE rec_medialookup TO web;
17260+GRANT SELECT ON TABLE rec_medialookup TO cataloguer;
17261+GRANT SELECT ON TABLE rec_medialookup TO cataloguer_external;
17262+GRANT SELECT ON TABLE rec_medialookup TO cataloguer_script;
17263+GRANT SELECT ON TABLE rec_medialookup TO xauth;
17264+
17265+
17266+--
17267+-- Name: rec_record; Type: ACL; Schema: public; Owner: web
17268+--
17269+
17270+REVOKE ALL ON TABLE rec_record FROM PUBLIC;
17271+REVOKE ALL ON TABLE rec_record FROM web;
17272+GRANT ALL ON TABLE rec_record TO web;
17273+GRANT SELECT ON TABLE rec_record TO autoreview;
17274+GRANT SELECT,INSERT,UPDATE ON TABLE rec_record TO cataloguer;
17275+GRANT SELECT,INSERT,UPDATE ON TABLE rec_record TO cataloguer_external;
17276+GRANT SELECT ON TABLE rec_record TO bapsserver;
17277+GRANT SELECT ON TABLE rec_record TO pplaudit;
17278+GRANT SELECT ON TABLE rec_record TO bapsvalidator;
17279+GRANT SELECT,INSERT,UPDATE ON TABLE rec_record TO cataloguer_script;
17280+GRANT SELECT ON TABLE rec_record TO sis;
17281+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE rec_record TO xmp3;
17282+GRANT SELECT ON TABLE rec_record TO frontend;
17283+GRANT SELECT ON TABLE rec_record TO xauth;
17284+GRANT SELECT,INSERT,UPDATE ON TABLE rec_record TO xcataloguer;
17285+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE rec_record TO xwrite;
17286+GRANT SELECT ON TABLE rec_record TO uryjukebox;
17287+GRANT SELECT,INSERT,UPDATE ON TABLE rec_record TO bapsweb;
17288+GRANT SELECT ON TABLE rec_record TO django;
17289+
17290+
17291+--
17292+-- Name: rec_record_recordid_seq; Type: ACL; Schema: public; Owner: web
17293+--
17294+
17295+REVOKE ALL ON SEQUENCE rec_record_recordid_seq FROM PUBLIC;
17296+REVOKE ALL ON SEQUENCE rec_record_recordid_seq FROM web;
17297+GRANT ALL ON SEQUENCE rec_record_recordid_seq TO web;
17298+GRANT SELECT,UPDATE ON SEQUENCE rec_record_recordid_seq TO cataloguer;
17299+GRANT SELECT,UPDATE ON SEQUENCE rec_record_recordid_seq TO cataloguer_external;
17300+GRANT SELECT,UPDATE ON SEQUENCE rec_record_recordid_seq TO cataloguer_script;
17301+GRANT SELECT,UPDATE ON SEQUENCE rec_record_recordid_seq TO xauth;
17302+GRANT SELECT,UPDATE ON SEQUENCE rec_record_recordid_seq TO xmp3;
17303+GRANT SELECT,UPDATE ON SEQUENCE rec_record_recordid_seq TO xwrite;
17304+GRANT SELECT,UPDATE ON SEQUENCE rec_record_recordid_seq TO bapsweb;
17305+
17306+
17307+--
17308+-- Name: rec_statuslookup; Type: ACL; Schema: public; Owner: web
17309+--
17310+
17311+REVOKE ALL ON TABLE rec_statuslookup FROM PUBLIC;
17312+REVOKE ALL ON TABLE rec_statuslookup FROM web;
17313+GRANT ALL ON TABLE rec_statuslookup TO web;
17314+GRANT SELECT ON TABLE rec_statuslookup TO cataloguer;
17315+GRANT SELECT ON TABLE rec_statuslookup TO cataloguer_external;
17316+GRANT SELECT ON TABLE rec_statuslookup TO cataloguer_script;
17317+GRANT SELECT ON TABLE rec_statuslookup TO xauth;
17318+
17319+
17320+--
17321+-- Name: rec_track_trackid_seq; Type: ACL; Schema: public; Owner: web
17322+--
17323+
17324+REVOKE ALL ON SEQUENCE rec_track_trackid_seq FROM PUBLIC;
17325+REVOKE ALL ON SEQUENCE rec_track_trackid_seq FROM web;
17326+GRANT ALL ON SEQUENCE rec_track_trackid_seq TO web;
17327+GRANT SELECT,UPDATE ON SEQUENCE rec_track_trackid_seq TO cataloguer;
17328+GRANT SELECT,UPDATE ON SEQUENCE rec_track_trackid_seq TO cataloguer_external;
17329+GRANT SELECT,UPDATE ON SEQUENCE rec_track_trackid_seq TO cataloguer_script;
17330+GRANT SELECT,UPDATE ON SEQUENCE rec_track_trackid_seq TO xauth;
17331+GRANT SELECT,UPDATE ON SEQUENCE rec_track_trackid_seq TO xmp3;
17332+GRANT SELECT,UPDATE ON SEQUENCE rec_track_trackid_seq TO xwrite;
17333+GRANT SELECT,UPDATE ON SEQUENCE rec_track_trackid_seq TO bapsweb;
17334+
17335+
17336+--
17337+-- Name: recommended_listening; Type: ACL; Schema: public; Owner: web
17338+--
17339+
17340+REVOKE ALL ON TABLE recommended_listening FROM PUBLIC;
17341+REVOKE ALL ON TABLE recommended_listening FROM web;
17342+GRANT ALL ON TABLE recommended_listening TO web;
17343+GRANT SELECT ON TABLE recommended_listening TO xauth;
17344+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE recommended_listening TO xwrite;
17345+GRANT SELECT ON TABLE recommended_listening TO frontend;
17346+
17347+
17348+SET search_path = schedule, pg_catalog;
17349+
17350+--
17351+-- Name: show; Type: ACL; Schema: schedule; Owner: web
17352+--
17353+
17354+REVOKE ALL ON TABLE show FROM PUBLIC;
17355+REVOKE ALL ON TABLE show FROM web;
17356+GRANT ALL ON TABLE show TO web;
17357+GRANT SELECT,INSERT,REFERENCES,DELETE,UPDATE ON TABLE show TO django;
17358+GRANT SELECT ON TABLE show TO shibbobleh;
17359+GRANT SELECT ON TABLE show TO sis;
17360+
17361+
17362+--
17363+-- Name: show_metadata; Type: ACL; Schema: schedule; Owner: web
17364+--
17365+
17366+REVOKE ALL ON TABLE show_metadata FROM PUBLIC;
17367+REVOKE ALL ON TABLE show_metadata FROM web;
17368+GRANT ALL ON TABLE show_metadata TO web;
17369+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE show_metadata TO django;
17370+GRANT SELECT ON TABLE show_metadata TO shibbobleh;
17371+GRANT SELECT ON TABLE show_metadata TO sis;
17372+
17373+
17374+SET search_path = public, pg_catalog;
17375+
17376+--
17377+-- Name: sched_entrytype; Type: ACL; Schema: public; Owner: web
17378+--
17379+
17380+REVOKE ALL ON TABLE sched_entrytype FROM PUBLIC;
17381+REVOKE ALL ON TABLE sched_entrytype FROM web;
17382+GRANT ALL ON TABLE sched_entrytype TO web;
17383+GRANT SELECT ON TABLE sched_entrytype TO sis;
17384+GRANT SELECT ON TABLE sched_entrytype TO xauth;
17385+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE sched_entrytype TO django;
17386+
17387+
17388+--
17389+-- Name: sched_genre; Type: ACL; Schema: public; Owner: web
17390+--
17391+
17392+REVOKE ALL ON TABLE sched_genre FROM PUBLIC;
17393+REVOKE ALL ON TABLE sched_genre FROM web;
17394+GRANT ALL ON TABLE sched_genre TO web;
17395+GRANT SELECT ON TABLE sched_genre TO frontend;
17396+GRANT SELECT ON TABLE sched_genre TO xauth;
17397+
17398+
17399+--
17400+-- Name: sched_musiccategory; Type: ACL; Schema: public; Owner: web
17401+--
17402+
17403+REVOKE ALL ON TABLE sched_musiccategory FROM PUBLIC;
17404+REVOKE ALL ON TABLE sched_musiccategory FROM web;
17405+GRANT ALL ON TABLE sched_musiccategory TO web;
17406+GRANT SELECT ON TABLE sched_musiccategory TO frontend;
17407+GRANT SELECT ON TABLE sched_musiccategory TO xauth;
17408+GRANT SELECT ON TABLE sched_musiccategory TO xwrite;
17409+
17410+
17411+--
17412+-- Name: sched_speechcategory; Type: ACL; Schema: public; Owner: web
17413+--
17414+
17415+REVOKE ALL ON TABLE sched_speechcategory FROM PUBLIC;
17416+REVOKE ALL ON TABLE sched_speechcategory FROM web;
17417+GRANT ALL ON TABLE sched_speechcategory TO web;
17418+GRANT SELECT ON TABLE sched_speechcategory TO xauth;
17419+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE sched_speechcategory TO xwrite;
17420+GRANT SELECT ON TABLE sched_speechcategory TO frontend;
17421+
17422+
17423+SET search_path = schedule, pg_catalog;
17424+
17425+--
17426+-- Name: show_season; Type: ACL; Schema: schedule; Owner: web
17427+--
17428+
17429+REVOKE ALL ON TABLE show_season FROM PUBLIC;
17430+REVOKE ALL ON TABLE show_season FROM web;
17431+GRANT ALL ON TABLE show_season TO web;
17432+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE show_season TO django;
17433+GRANT SELECT ON TABLE show_season TO shibbobleh;
17434+GRANT SELECT ON TABLE show_season TO sis;
17435+
17436+
17437+--
17438+-- Name: show_season_timeslot; Type: ACL; Schema: schedule; Owner: web
17439+--
17440+
17441+REVOKE ALL ON TABLE show_season_timeslot FROM PUBLIC;
17442+REVOKE ALL ON TABLE show_season_timeslot FROM web;
17443+GRANT ALL ON TABLE show_season_timeslot TO web;
17444+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE show_season_timeslot TO django;
17445+GRANT SELECT ON TABLE show_season_timeslot TO shibbobleh;
17446+GRANT SELECT ON TABLE show_season_timeslot TO sis;
17447+GRANT SELECT ON TABLE show_season_timeslot TO xsms;
17448+GRANT SELECT ON TABLE show_season_timeslot TO bapsserver;
17449+
17450+
17451+--
17452+-- Name: view_timeslot_legacy; Type: ACL; Schema: schedule; Owner: web
17453+--
17454+
17455+REVOKE ALL ON TABLE view_timeslot_legacy FROM PUBLIC;
17456+REVOKE ALL ON TABLE view_timeslot_legacy FROM web;
17457+GRANT ALL ON TABLE view_timeslot_legacy TO web;
17458+GRANT SELECT ON TABLE view_timeslot_legacy TO shibbobleh;
17459+GRANT SELECT ON TABLE view_timeslot_legacy TO clock;
17460+GRANT SELECT ON TABLE view_timeslot_legacy TO xauth;
17461+GRANT SELECT,REFERENCES,TRIGGER ON TABLE view_timeslot_legacy TO bapsweb;
17462+
17463+
17464+SET search_path = public, pg_catalog;
17465+
17466+--
17467+-- Name: sched_timeslot; Type: ACL; Schema: public; Owner: web
17468+--
17469+
17470+REVOKE ALL ON TABLE sched_timeslot FROM PUBLIC;
17471+REVOKE ALL ON TABLE sched_timeslot FROM web;
17472+GRANT ALL ON TABLE sched_timeslot TO web;
17473+GRANT SELECT ON TABLE sched_timeslot TO streamscript;
17474+
17475+
17476+--
17477+-- Name: selector_actions; Type: ACL; Schema: public; Owner: web
17478+--
17479+
17480+REVOKE ALL ON TABLE selector_actions FROM PUBLIC;
17481+REVOKE ALL ON TABLE selector_actions FROM web;
17482+GRANT ALL ON TABLE selector_actions TO web;
17483+GRANT SELECT ON TABLE selector_actions TO studioselector;
17484+GRANT SELECT ON TABLE selector_actions TO urybot;
17485+GRANT SELECT ON TABLE selector_actions TO clock;
17486+
17487+
17488+--
17489+-- Name: selector_selid_seq; Type: ACL; Schema: public; Owner: web
17490+--
17491+
17492+REVOKE ALL ON SEQUENCE selector_selid_seq FROM PUBLIC;
17493+REVOKE ALL ON SEQUENCE selector_selid_seq FROM web;
17494+GRANT ALL ON SEQUENCE selector_selid_seq TO web;
17495+GRANT SELECT,UPDATE ON SEQUENCE selector_selid_seq TO studioselector;
17496+
17497+
17498+--
17499+-- Name: sis_commtype; Type: ACL; Schema: public; Owner: web
17500+--
17501+
17502+REVOKE ALL ON TABLE sis_commtype FROM PUBLIC;
17503+REVOKE ALL ON TABLE sis_commtype FROM web;
17504+GRANT ALL ON TABLE sis_commtype TO web;
17505+GRANT SELECT,INSERT ON TABLE sis_commtype TO sis;
17506+GRANT SELECT ON TABLE sis_commtype TO frontend;
17507+GRANT SELECT ON TABLE sis_commtype TO xauth;
17508+
17509+
17510+--
17511+-- Name: sis_piss; Type: ACL; Schema: public; Owner: web
17512+--
17513+
17514+REVOKE ALL ON TABLE sis_piss FROM PUBLIC;
17515+REVOKE ALL ON TABLE sis_piss FROM web;
17516+GRANT ALL ON TABLE sis_piss TO web;
17517+GRANT ALL ON TABLE sis_piss TO sis;
17518+GRANT ALL ON TABLE sis_piss TO xwrite;
17519+GRANT SELECT ON TABLE sis_piss TO xauth;
17520+
17521+
17522+--
17523+-- Name: sis_piss_id_seq; Type: ACL; Schema: public; Owner: web
17524+--
17525+
17526+REVOKE ALL ON SEQUENCE sis_piss_id_seq FROM PUBLIC;
17527+REVOKE ALL ON SEQUENCE sis_piss_id_seq FROM web;
17528+GRANT ALL ON SEQUENCE sis_piss_id_seq TO web;
17529+GRANT ALL ON SEQUENCE sis_piss_id_seq TO xwrite;
17530+
17531+
17532+--
17533+-- Name: sis_status; Type: ACL; Schema: public; Owner: web
17534+--
17535+
17536+REVOKE ALL ON TABLE sis_status FROM PUBLIC;
17537+REVOKE ALL ON TABLE sis_status FROM web;
17538+GRANT ALL ON TABLE sis_status TO web;
17539+GRANT SELECT ON TABLE sis_status TO sis;
17540+GRANT SELECT ON TABLE sis_status TO frontend;
17541+
17542+
17543+--
17544+-- Name: sso_session; Type: ACL; Schema: public; Owner: web
17545+--
17546+
17547+REVOKE ALL ON TABLE sso_session FROM PUBLIC;
17548+REVOKE ALL ON TABLE sso_session FROM web;
17549+GRANT ALL ON TABLE sso_session TO web;
17550+GRANT ALL ON TABLE sso_session TO shibbobleh;
17551+
17552+
17553+--
17554+-- Name: strm_useragent; Type: ACL; Schema: public; Owner: web
17555+--
17556+
17557+REVOKE ALL ON TABLE strm_useragent FROM PUBLIC;
17558+REVOKE ALL ON TABLE strm_useragent FROM web;
17559+GRANT ALL ON TABLE strm_useragent TO web;
17560+GRANT SELECT,INSERT,UPDATE ON TABLE strm_useragent TO streamscript;
17561+
17562+
17563+--
17564+-- Name: strm_client_clientid_seq; Type: ACL; Schema: public; Owner: web
17565+--
17566+
17567+REVOKE ALL ON SEQUENCE strm_client_clientid_seq FROM PUBLIC;
17568+REVOKE ALL ON SEQUENCE strm_client_clientid_seq FROM web;
17569+GRANT ALL ON SEQUENCE strm_client_clientid_seq TO web;
17570+GRANT SELECT,UPDATE ON SEQUENCE strm_client_clientid_seq TO streamscript;
17571+
17572+
17573+--
17574+-- Name: strm_log; Type: ACL; Schema: public; Owner: web
17575+--
17576+
17577+REVOKE ALL ON TABLE strm_log FROM PUBLIC;
17578+REVOKE ALL ON TABLE strm_log FROM web;
17579+GRANT ALL ON TABLE strm_log TO web;
17580+GRANT SELECT,INSERT,UPDATE ON TABLE strm_log TO streamscript;
17581+GRANT SELECT ON TABLE strm_log TO xauth;
17582+
17583+
17584+--
17585+-- Name: strm_log_logid_seq; Type: ACL; Schema: public; Owner: web
17586+--
17587+
17588+REVOKE ALL ON SEQUENCE strm_log_logid_seq FROM PUBLIC;
17589+REVOKE ALL ON SEQUENCE strm_log_logid_seq FROM web;
17590+GRANT ALL ON SEQUENCE strm_log_logid_seq TO web;
17591+GRANT SELECT,UPDATE ON SEQUENCE strm_log_logid_seq TO streamscript;
17592+
17593+
17594+--
17595+-- Name: strm_logfile; Type: ACL; Schema: public; Owner: web
17596+--
17597+
17598+REVOKE ALL ON TABLE strm_logfile FROM PUBLIC;
17599+REVOKE ALL ON TABLE strm_logfile FROM web;
17600+GRANT ALL ON TABLE strm_logfile TO web;
17601+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE strm_logfile TO streamscript;
17602+
17603+
17604+--
17605+-- Name: strm_logfile_logfileid_seq; Type: ACL; Schema: public; Owner: web
17606+--
17607+
17608+REVOKE ALL ON SEQUENCE strm_logfile_logfileid_seq FROM PUBLIC;
17609+REVOKE ALL ON SEQUENCE strm_logfile_logfileid_seq FROM web;
17610+GRANT ALL ON SEQUENCE strm_logfile_logfileid_seq TO web;
17611+GRANT SELECT,UPDATE ON SEQUENCE strm_logfile_logfileid_seq TO streamscript;
17612+
17613+
17614+--
17615+-- Name: strm_stream; Type: ACL; Schema: public; Owner: web
17616+--
17617+
17618+REVOKE ALL ON TABLE strm_stream FROM PUBLIC;
17619+REVOKE ALL ON TABLE strm_stream FROM web;
17620+GRANT ALL ON TABLE strm_stream TO web;
17621+GRANT SELECT,INSERT,UPDATE ON TABLE strm_stream TO streamscript;
17622+GRANT SELECT ON TABLE strm_stream TO xauth;
17623+
17624+
17625+--
17626+-- Name: strm_stream_streamid_seq; Type: ACL; Schema: public; Owner: web
17627+--
17628+
17629+REVOKE ALL ON SEQUENCE strm_stream_streamid_seq FROM PUBLIC;
17630+REVOKE ALL ON SEQUENCE strm_stream_streamid_seq FROM web;
17631+GRANT ALL ON SEQUENCE strm_stream_streamid_seq TO web;
17632+GRANT SELECT,UPDATE ON SEQUENCE strm_stream_streamid_seq TO streamscript;
17633+
17634+
17635+--
17636+-- Name: team; Type: ACL; Schema: public; Owner: pgsql
17637+--
17638+
17639+REVOKE ALL ON TABLE team FROM PUBLIC;
17640+REVOKE ALL ON TABLE team FROM pgsql;
17641+GRANT ALL ON TABLE team TO pgsql;
17642+GRANT SELECT ON TABLE team TO testuser;
17643+GRANT SELECT ON TABLE team TO web WITH GRANT OPTION;
17644+GRANT SELECT ON TABLE team TO xauth;
17645+GRANT SELECT,INSERT,UPDATE ON TABLE team TO xwrite;
17646+
17647+
17648+--
17649+-- Name: terms; Type: ACL; Schema: public; Owner: web
17650+--
17651+
17652+REVOKE ALL ON TABLE terms FROM PUBLIC;
17653+REVOKE ALL ON TABLE terms FROM web;
17654+GRANT ALL ON TABLE terms TO web;
17655+GRANT SELECT ON TABLE terms TO xauth;
17656+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE terms TO xwrite;
17657+GRANT SELECT ON TABLE terms TO frontend;
17658+GRANT SELECT ON TABLE terms TO xlistenagain;
17659+GRANT SELECT ON TABLE terms TO sis;
17660+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE terms TO django;
17661+GRANT SELECT ON TABLE terms TO shibbobleh;
17662+
17663+
17664+SET search_path = rapier, pg_catalog;
17665+
17666+--
17667+-- Name: acl_member; Type: ACL; Schema: rapier; Owner: web
17668+--
17669+
17670+REVOKE ALL ON TABLE acl_member FROM PUBLIC;
17671+REVOKE ALL ON TABLE acl_member FROM web;
17672+GRANT ALL ON TABLE acl_member TO web;
17673+
17674+
17675+--
17676+-- Name: client; Type: ACL; Schema: rapier; Owner: web
17677+--
17678+
17679+REVOKE ALL ON TABLE client FROM PUBLIC;
17680+REVOKE ALL ON TABLE client FROM web;
17681+GRANT ALL ON TABLE client TO web;
17682+GRANT ALL ON TABLE client TO admin;
17683+GRANT ALL ON TABLE client TO api;
17684+GRANT ALL ON TABLE client TO audiouploadscript;
17685+GRANT ALL ON TABLE client TO autoreview;
17686+GRANT ALL ON TABLE client TO bapsserver;
17687+GRANT ALL ON TABLE client TO bapsvalidator;
17688+GRANT ALL ON TABLE client TO bapsweb;
17689+GRANT ALL ON TABLE client TO bugtracker;
17690+GRANT ALL ON TABLE client TO cataloguer;
17691+GRANT ALL ON TABLE client TO cataloguer_external;
17692+GRANT ALL ON TABLE client TO cataloguer_script;
17693+GRANT ALL ON TABLE client TO clock;
17694+GRANT ALL ON TABLE client TO django;
17695+GRANT ALL ON TABLE client TO dovecot;
17696+GRANT ALL ON TABLE client TO frontend;
17697+GRANT ALL ON TABLE client TO hobbit;
17698+GRANT ALL ON TABLE client TO icetracks;
17699+GRANT ALL ON TABLE client TO mantis;
17700+GRANT ALL ON TABLE client TO nagios;
17701+GRANT ALL ON TABLE client TO pgsql;
17702+GRANT ALL ON TABLE client TO postgres;
17703+GRANT ALL ON TABLE client TO pplaudit;
17704+GRANT ALL ON TABLE client TO propget;
17705+GRANT ALL ON TABLE client TO rolero;
17706+GRANT ALL ON TABLE client TO roundcube;
17707+GRANT ALL ON TABLE client TO shibbobleh;
17708+GRANT ALL ON TABLE client TO silence;
17709+GRANT ALL ON TABLE client TO sis;
17710+GRANT ALL ON TABLE client TO slony;
17711+GRANT ALL ON TABLE client TO streamscript;
17712+GRANT ALL ON TABLE client TO studioselector;
17713+GRANT ALL ON TABLE client TO survey;
17714+GRANT ALL ON TABLE client TO testuser;
17715+GRANT ALL ON TABLE client TO urybot;
17716+GRANT ALL ON TABLE client TO uryjukebox;
17717+GRANT ALL ON TABLE client TO wiki;
17718+GRANT ALL ON TABLE client TO xadmin;
17719+GRANT ALL ON TABLE client TO xauth;
17720+GRANT ALL ON TABLE client TO xcataloguer;
17721+GRANT ALL ON TABLE client TO xlistenagain;
17722+GRANT ALL ON TABLE client TO xmail;
17723+GRANT ALL ON TABLE client TO xmp3;
17724+GRANT ALL ON TABLE client TO xsms;
17725+GRANT ALL ON TABLE client TO xwrite;
17726+GRANT ALL ON TABLE client TO xyusu;
17727+
17728+
17729+SET search_path = schedule, pg_catalog;
17730+
17731+--
17732+-- Name: block; Type: ACL; Schema: schedule; Owner: web
17733+--
17734+
17735+REVOKE ALL ON TABLE block FROM PUBLIC;
17736+REVOKE ALL ON TABLE block FROM web;
17737+GRANT ALL ON TABLE block TO web;
17738+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE block TO django;
17739+
17740+
17741+--
17742+-- Name: block_range_rule; Type: ACL; Schema: schedule; Owner: web
17743+--
17744+
17745+REVOKE ALL ON TABLE block_range_rule FROM PUBLIC;
17746+REVOKE ALL ON TABLE block_range_rule FROM web;
17747+GRANT ALL ON TABLE block_range_rule TO web;
17748+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE block_range_rule TO django;
17749+
17750+
17751+--
17752+-- Name: block_show_rules_block_show_rule_id_seq; Type: ACL; Schema: schedule; Owner: web
17753+--
17754+
17755+REVOKE ALL ON SEQUENCE block_show_rules_block_show_rule_id_seq FROM PUBLIC;
17756+REVOKE ALL ON SEQUENCE block_show_rules_block_show_rule_id_seq FROM web;
17757+GRANT ALL ON SEQUENCE block_show_rules_block_show_rule_id_seq TO web;
17758+GRANT USAGE ON SEQUENCE block_show_rules_block_show_rule_id_seq TO django;
17759+
17760+
17761+--
17762+-- Name: block_show_rule; Type: ACL; Schema: schedule; Owner: web
17763+--
17764+
17765+REVOKE ALL ON TABLE block_show_rule FROM PUBLIC;
17766+REVOKE ALL ON TABLE block_show_rule FROM web;
17767+GRANT ALL ON TABLE block_show_rule TO web;
17768+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE block_show_rule TO django;
17769+
17770+
17771+--
17772+-- Name: blocks_id_seq; Type: ACL; Schema: schedule; Owner: web
17773+--
17774+
17775+REVOKE ALL ON SEQUENCE blocks_id_seq FROM PUBLIC;
17776+REVOKE ALL ON SEQUENCE blocks_id_seq FROM web;
17777+GRANT ALL ON SEQUENCE blocks_id_seq TO web;
17778+GRANT USAGE ON SEQUENCE blocks_id_seq TO django;
17779+
17780+
17781+--
17782+-- Name: location; Type: ACL; Schema: schedule; Owner: web
17783+--
17784+
17785+REVOKE ALL ON TABLE location FROM PUBLIC;
17786+REVOKE ALL ON TABLE location FROM web;
17787+GRANT ALL ON TABLE location TO web;
17788+GRANT SELECT,INSERT,REFERENCES,DELETE,UPDATE ON TABLE location TO django;
17789+
17790+
17791+--
17792+-- Name: season_metadata; Type: ACL; Schema: schedule; Owner: web
17793+--
17794+
17795+REVOKE ALL ON TABLE season_metadata FROM PUBLIC;
17796+REVOKE ALL ON TABLE season_metadata FROM web;
17797+GRANT ALL ON TABLE season_metadata TO web;
17798+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE season_metadata TO django;
17799+GRANT SELECT ON TABLE season_metadata TO sis;
17800+
17801+
17802+--
17803+-- Name: show_credit; Type: ACL; Schema: schedule; Owner: web
17804+--
17805+
17806+REVOKE ALL ON TABLE show_credit FROM PUBLIC;
17807+REVOKE ALL ON TABLE show_credit FROM web;
17808+GRANT ALL ON TABLE show_credit TO web;
17809+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE show_credit TO django;
17810+GRANT SELECT ON TABLE show_credit TO shibbobleh;
17811+GRANT SELECT ON TABLE show_credit TO sis;
17812+GRANT SELECT ON TABLE show_credit TO xauth;
17813+GRANT SELECT ON TABLE show_credit TO xwrite;
17814+GRANT SELECT ON TABLE show_credit TO clock;
17815+
17816+
17817+--
17818+-- Name: show_credit_show_credit_id_seq; Type: ACL; Schema: schedule; Owner: web
17819+--
17820+
17821+REVOKE ALL ON SEQUENCE show_credit_show_credit_id_seq FROM PUBLIC;
17822+REVOKE ALL ON SEQUENCE show_credit_show_credit_id_seq FROM web;
17823+GRANT ALL ON SEQUENCE show_credit_show_credit_id_seq TO web;
17824+GRANT ALL ON SEQUENCE show_credit_show_credit_id_seq TO django;
17825+
17826+
17827+--
17828+-- Name: show_image_metadata; Type: ACL; Schema: schedule; Owner: django
17829+--
17830+
17831+REVOKE ALL ON TABLE show_image_metadata FROM PUBLIC;
17832+REVOKE ALL ON TABLE show_image_metadata FROM django;
17833+GRANT ALL ON TABLE show_image_metadata TO django;
17834+
17835+
17836+--
17837+-- Name: show_location; Type: ACL; Schema: schedule; Owner: web
17838+--
17839+
17840+REVOKE ALL ON TABLE show_location FROM PUBLIC;
17841+REVOKE ALL ON TABLE show_location FROM web;
17842+GRANT ALL ON TABLE show_location TO web;
17843+GRANT SELECT,INSERT,REFERENCES,DELETE,UPDATE ON TABLE show_location TO django;
17844+
17845+
17846+--
17847+-- Name: show_location_show_location_id_seq; Type: ACL; Schema: schedule; Owner: web
17848+--
17849+
17850+REVOKE ALL ON SEQUENCE show_location_show_location_id_seq FROM PUBLIC;
17851+REVOKE ALL ON SEQUENCE show_location_show_location_id_seq FROM web;
17852+GRANT ALL ON SEQUENCE show_location_show_location_id_seq TO web;
17853+GRANT ALL ON SEQUENCE show_location_show_location_id_seq TO django;
17854+
17855+
17856+--
17857+-- Name: show_metadata_show_metadata_id_seq; Type: ACL; Schema: schedule; Owner: web
17858+--
17859+
17860+REVOKE ALL ON SEQUENCE show_metadata_show_metadata_id_seq FROM PUBLIC;
17861+REVOKE ALL ON SEQUENCE show_metadata_show_metadata_id_seq FROM web;
17862+GRANT ALL ON SEQUENCE show_metadata_show_metadata_id_seq TO web;
17863+GRANT ALL ON SEQUENCE show_metadata_show_metadata_id_seq TO django;
17864+
17865+
17866+--
17867+-- Name: show_season_timeslot_credit; Type: ACL; Schema: schedule; Owner: web
17868+--
17869+
17870+REVOKE ALL ON TABLE show_season_timeslot_credit FROM PUBLIC;
17871+REVOKE ALL ON TABLE show_season_timeslot_credit FROM web;
17872+GRANT ALL ON TABLE show_season_timeslot_credit TO web;
17873+GRANT SELECT ON TABLE show_season_timeslot_credit TO django;
17874+
17875+
17876+--
17877+-- Name: show_season_timeslot_show_season_timeslot_id_seq; Type: ACL; Schema: schedule; Owner: web
17878+--
17879+
17880+REVOKE ALL ON SEQUENCE show_season_timeslot_show_season_timeslot_id_seq FROM PUBLIC;
17881+REVOKE ALL ON SEQUENCE show_season_timeslot_show_season_timeslot_id_seq FROM web;
17882+GRANT ALL ON SEQUENCE show_season_timeslot_show_season_timeslot_id_seq TO web;
17883+GRANT ALL ON SEQUENCE show_season_timeslot_show_season_timeslot_id_seq TO django;
17884+
17885+
17886+--
17887+-- Name: timeslot_metadata; Type: ACL; Schema: schedule; Owner: web
17888+--
17889+
17890+REVOKE ALL ON TABLE timeslot_metadata FROM PUBLIC;
17891+REVOKE ALL ON TABLE timeslot_metadata FROM web;
17892+GRANT ALL ON TABLE timeslot_metadata TO web;
17893+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE timeslot_metadata TO django;
17894+
17895+
17896+--
17897+-- Name: show_season_timeslot_text_metadata; Type: ACL; Schema: schedule; Owner: web
17898+--
17899+
17900+REVOKE ALL ON TABLE show_season_timeslot_text_metadata FROM PUBLIC;
17901+REVOKE ALL ON TABLE show_season_timeslot_text_metadata FROM web;
17902+GRANT ALL ON TABLE show_season_timeslot_text_metadata TO web;
17903+GRANT ALL ON TABLE show_season_timeslot_text_metadata TO django;
17904+
17905+
17906+--
17907+-- Name: show_show_id_seq; Type: ACL; Schema: schedule; Owner: web
17908+--
17909+
17910+REVOKE ALL ON SEQUENCE show_show_id_seq FROM PUBLIC;
17911+REVOKE ALL ON SEQUENCE show_show_id_seq FROM web;
17912+GRANT ALL ON SEQUENCE show_show_id_seq TO web;
17913+GRANT ALL ON SEQUENCE show_show_id_seq TO django;
17914+
17915+
17916+--
17917+-- Name: show_text_metadata; Type: ACL; Schema: schedule; Owner: web
17918+--
17919+
17920+REVOKE ALL ON TABLE show_text_metadata FROM PUBLIC;
17921+REVOKE ALL ON TABLE show_text_metadata FROM web;
17922+GRANT ALL ON TABLE show_text_metadata TO web;
17923+GRANT ALL ON TABLE show_text_metadata TO django;
17924+
17925+
17926+--
17927+-- Name: show_type; Type: ACL; Schema: schedule; Owner: web
17928+--
17929+
17930+REVOKE ALL ON TABLE show_type FROM PUBLIC;
17931+REVOKE ALL ON TABLE show_type FROM web;
17932+GRANT ALL ON TABLE show_type TO web;
17933+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE show_type TO django;
17934+
17935+
17936+SET search_path = sis2, pg_catalog;
17937+
17938+--
17939+-- Name: member_signin; Type: ACL; Schema: sis2; Owner: web
17940+--
17941+
17942+REVOKE ALL ON TABLE member_signin FROM PUBLIC;
17943+REVOKE ALL ON TABLE member_signin FROM web;
17944+GRANT ALL ON TABLE member_signin TO web;
17945+GRANT SELECT,INSERT,UPDATE ON TABLE member_signin TO shibbobleh;
17946+GRANT SELECT ON TABLE member_signin TO xauth;
17947+
17948+
17949+--
17950+-- Name: member_signin_member_signin_id_seq; Type: ACL; Schema: sis2; Owner: web
17951+--
17952+
17953+REVOKE ALL ON SEQUENCE member_signin_member_signin_id_seq FROM PUBLIC;
17954+REVOKE ALL ON SEQUENCE member_signin_member_signin_id_seq FROM web;
17955+GRANT ALL ON SEQUENCE member_signin_member_signin_id_seq TO web;
17956+GRANT SELECT,UPDATE ON SEQUENCE member_signin_member_signin_id_seq TO shibbobleh;
17957+
17958+
17959+--
17960+-- Name: messages; Type: ACL; Schema: sis2; Owner: web
17961+--
17962+
17963+REVOKE ALL ON TABLE messages FROM PUBLIC;
17964+REVOKE ALL ON TABLE messages FROM web;
17965+GRANT ALL ON TABLE messages TO web;
17966+GRANT SELECT,UPDATE ON TABLE messages TO sis;
17967+GRANT ALL ON TABLE messages TO django;
17968+GRANT SELECT,INSERT,TRIGGER,UPDATE ON TABLE messages TO xsms;
17969+
17970+
17971+--
17972+-- Name: messages_commid_seq; Type: ACL; Schema: sis2; Owner: web
17973+--
17974+
17975+REVOKE ALL ON SEQUENCE messages_commid_seq FROM PUBLIC;
17976+REVOKE ALL ON SEQUENCE messages_commid_seq FROM web;
17977+GRANT ALL ON SEQUENCE messages_commid_seq TO web;
17978+GRANT ALL ON SEQUENCE messages_commid_seq TO django;
17979+GRANT ALL ON SEQUENCE messages_commid_seq TO PUBLIC;
17980+
17981+
17982+SET search_path = tracklist, pg_catalog;
17983+
17984+--
17985+-- Name: selbaps; Type: ACL; Schema: tracklist; Owner: web
17986+--
17987+
17988+REVOKE ALL ON TABLE selbaps FROM PUBLIC;
17989+REVOKE ALL ON TABLE selbaps FROM web;
17990+GRANT ALL ON TABLE selbaps TO web;
17991+GRANT SELECT,REFERENCES,TRIGGER ON TABLE selbaps TO sis;
17992+GRANT SELECT,INSERT ON TABLE selbaps TO bapsserver;
17993+
17994+
17995+--
17996+-- Name: source; Type: ACL; Schema: tracklist; Owner: web
17997+--
17998+
17999+REVOKE ALL ON TABLE source FROM PUBLIC;
18000+REVOKE ALL ON TABLE source FROM web;
18001+GRANT ALL ON TABLE source TO web;
18002+GRANT SELECT ON TABLE source TO sis;
18003+GRANT SELECT ON TABLE source TO django;
18004+
18005+
18006+--
18007+-- Name: state; Type: ACL; Schema: tracklist; Owner: web
18008+--
18009+
18010+REVOKE ALL ON TABLE state FROM PUBLIC;
18011+REVOKE ALL ON TABLE state FROM web;
18012+GRANT ALL ON TABLE state TO web;
18013+GRANT SELECT ON TABLE state TO sis;
18014+GRANT SELECT ON TABLE state TO django;
18015+
18016+
18017+--
18018+-- Name: track_notrec; Type: ACL; Schema: tracklist; Owner: web
18019+--
18020+
18021+REVOKE ALL ON TABLE track_notrec FROM PUBLIC;
18022+REVOKE ALL ON TABLE track_notrec FROM web;
18023+GRANT ALL ON TABLE track_notrec TO web;
18024+GRANT SELECT,INSERT,UPDATE ON TABLE track_notrec TO sis;
18025+GRANT SELECT ON TABLE track_notrec TO django;
18026+
18027+
18028+--
18029+-- Name: track_rec; Type: ACL; Schema: tracklist; Owner: web
18030+--
18031+
18032+REVOKE ALL ON TABLE track_rec FROM PUBLIC;
18033+REVOKE ALL ON TABLE track_rec FROM web;
18034+GRANT ALL ON TABLE track_rec TO web;
18035+GRANT SELECT,INSERT,REFERENCES,TRIGGER,TRUNCATE,UPDATE ON TABLE track_rec TO sis;
18036+GRANT SELECT,INSERT ON TABLE track_rec TO bapsserver;
18037+GRANT SELECT,INSERT,REFERENCES ON TABLE track_rec TO uryjukebox;
18038+GRANT SELECT ON TABLE track_rec TO icetracks;
18039+GRANT SELECT ON TABLE track_rec TO django;
18040+
18041+
18042+--
18043+-- Name: tracklist; Type: ACL; Schema: tracklist; Owner: web
18044+--
18045+
18046+REVOKE ALL ON TABLE tracklist FROM PUBLIC;
18047+REVOKE ALL ON TABLE tracklist FROM web;
18048+GRANT ALL ON TABLE tracklist TO web;
18049+GRANT SELECT,INSERT,REFERENCES,TRIGGER,TRUNCATE,UPDATE ON TABLE tracklist TO sis;
18050+GRANT SELECT,INSERT,REFERENCES,TRIGGER,UPDATE ON TABLE tracklist TO bapsserver;
18051+GRANT SELECT,INSERT,REFERENCES ON TABLE tracklist TO uryjukebox;
18052+GRANT SELECT ON TABLE tracklist TO icetracks;
18053+GRANT SELECT ON TABLE tracklist TO django;
18054+
18055+
18056+--
18057+-- Name: tracklist.audiologid; Type: ACL; Schema: tracklist; Owner: web
18058+--
18059+
18060+REVOKE ALL(audiologid) ON TABLE tracklist FROM PUBLIC;
18061+REVOKE ALL(audiologid) ON TABLE tracklist FROM web;
18062+GRANT ALL(audiologid) ON TABLE tracklist TO sis;
18063+GRANT ALL(audiologid) ON TABLE tracklist TO bapsserver;
18064+
18065+
18066+--
18067+-- Name: tracklist_audiologid_seq; Type: ACL; Schema: tracklist; Owner: web
18068+--
18069+
18070+REVOKE ALL ON SEQUENCE tracklist_audiologid_seq FROM PUBLIC;
18071+REVOKE ALL ON SEQUENCE tracklist_audiologid_seq FROM web;
18072+GRANT ALL ON SEQUENCE tracklist_audiologid_seq TO web;
18073+GRANT SELECT,USAGE ON SEQUENCE tracklist_audiologid_seq TO sis;
18074+GRANT SELECT,USAGE ON SEQUENCE tracklist_audiologid_seq TO bapsserver;
18075+GRANT SELECT,USAGE ON SEQUENCE tracklist_audiologid_seq TO uryjukebox;
18076+
18077+
18078+SET search_path = uryplayer, pg_catalog;
18079+
18080+--
18081+-- Name: podcast_text_metadata; Type: ACL; Schema: uryplayer; Owner: web
18082+--
18083+
18084+REVOKE ALL ON TABLE podcast_text_metadata FROM PUBLIC;
18085+REVOKE ALL ON TABLE podcast_text_metadata FROM web;
18086+GRANT ALL ON TABLE podcast_text_metadata TO web;
18087+GRANT ALL ON TABLE podcast_text_metadata TO django;
18088+
18089+
18090+SET search_path = website, pg_catalog;
18091+
18092+--
18093+-- Name: banner; Type: ACL; Schema: website; Owner: web
18094+--
18095+
18096+REVOKE ALL ON TABLE banner FROM PUBLIC;
18097+REVOKE ALL ON TABLE banner FROM web;
18098+GRANT ALL ON TABLE banner TO web;
18099+GRANT SELECT,INSERT,REFERENCES,DELETE,UPDATE ON TABLE banner TO django;
18100+
18101+
18102+--
18103+-- Name: banner_banner_id_seq; Type: ACL; Schema: website; Owner: web
18104+--
18105+
18106+REVOKE ALL ON SEQUENCE banner_banner_id_seq FROM PUBLIC;
18107+REVOKE ALL ON SEQUENCE banner_banner_id_seq FROM web;
18108+GRANT ALL ON SEQUENCE banner_banner_id_seq TO web;
18109+GRANT USAGE ON SEQUENCE banner_banner_id_seq TO django;
18110+
18111+
18112+--
18113+-- Name: banner_timeslot; Type: ACL; Schema: website; Owner: web
18114+--
18115+
18116+REVOKE ALL ON TABLE banner_timeslot FROM PUBLIC;
18117+REVOKE ALL ON TABLE banner_timeslot FROM web;
18118+GRANT ALL ON TABLE banner_timeslot TO web;
18119+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE banner_timeslot TO django;
18120+
18121+
18122+--
18123+-- Name: banner_timeslot_id_seq; Type: ACL; Schema: website; Owner: web
18124+--
18125+
18126+REVOKE ALL ON SEQUENCE banner_timeslot_id_seq FROM PUBLIC;
18127+REVOKE ALL ON SEQUENCE banner_timeslot_id_seq FROM web;
18128+GRANT ALL ON SEQUENCE banner_timeslot_id_seq TO web;
18129+GRANT USAGE ON SEQUENCE banner_timeslot_id_seq TO django;
18130
18131
18132 --