[Debconf-video-commits] r320 - in package/branches/pycon09: conf src

benh at alioth.debian.org benh at alioth.debian.org
Mon Mar 16 00:22:16 UTC 2009


Author: benh
Date: 2009-03-16 00:22:16 +0000 (Mon, 16 Mar 2009)
New Revision: 320

Modified:
   package/branches/pycon09/conf/video-data.sql
   package/branches/pycon09/src/dc-video-schema.sql
Log:
Add the tables that DebConf gets from Pentarbarf.


Modified: package/branches/pycon09/conf/video-data.sql
===================================================================
--- package/branches/pycon09/conf/video-data.sql	2009-03-15 23:36:03 UTC (rev 319)
+++ package/branches/pycon09/conf/video-data.sql	2009-03-16 00:22:16 UTC (rev 320)
@@ -1,6 +1,10 @@
 -- Data that we need to set up in advance and don't expect to update
 -- regularly.
 
+DELETE FROM conference;
+INSERT INTO conference(conference_id, title, homepage, timezone)
+VALUES(1, 'PyCon 2009', 'http://us.pycon.org/2009', 'America/Chicago');
+
 DELETE FROM video_file_status;
 INSERT INTO video_file_status(file_status_code, file_status_desc)
 VALUES('X', 'Unchecked file');

Modified: package/branches/pycon09/src/dc-video-schema.sql
===================================================================
--- package/branches/pycon09/src/dc-video-schema.sql	2009-03-15 23:36:03 UTC (rev 319)
+++ package/branches/pycon09/src/dc-video-schema.sql	2009-03-16 00:22:16 UTC (rev 320)
@@ -1,10 +1,35 @@
--- Schema for tracking DebConf video recordings in Pentabarf's database
+-- Schema for tracking PyCon video recordings
 -- TODO:
 -- - represent post-processing filters and associate them with event_recording
 -- - add names of reviewers
 -- - add some way to flag events that are contained in other events, so they
 --   don't get their own target files
 
+-- Conference details.
+CREATE TABLE conference (
+    conference_id serial PRIMARY KEY,
+    title character varying(100) NOT NULL UNIQUE,
+    homepage character varying(100) NOT NULL,
+    timezone character varying(50) NOT NULL -- zoneinfo name
+);
+
+-- Room names, imported from master database.
+CREATE TABLE conference_room (
+    conference_id integer NOT NULL REFERENCES conference,
+    conference_room character varying(100) NOT NULL,
+    PRIMARY KEY(conference_id, conference_room)
+);
+
+-- Event details, imported from master database.
+CREATE TABLE event (
+    event_id serial PRIMARY KEY,
+    conference_id integer NOT NULL,
+    conference_room character varying(100) NOT NULL,
+    start_time timestamp NOT NULL,
+    duration interval NOT NULL,
+    FOREIGN KEY (conference_id, conference_room) REFERENCES conference_room
+);
+
 -- Status (quality) of a video file.
 CREATE TABLE video_file_status (
     id serial PRIMARY KEY,




More information about the Debconf-video-commits mailing list