diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-17 20:05:59 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-17 20:05:59 +0100 |
commit | e5a623ef44dd07c29ec3e985ac9307fe52898b67 (patch) | |
tree | 3182cc50a149aa7d508a0a7e2dc8823379c0627c | |
parent | e66188633af6be06e0159089e71265ef321c062a (diff) |
Drop channel_hours, as this can be calculated from user_hours with channel_id.
-rw-r--r-- | pg.pgc | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -48,13 +48,6 @@ int pg_init() { PRIMARY KEY (id), UNIQUE (name) ); - EXEC SQL CREATE TABLE channel_hours ( - channel_id integer, - time_index integer, - lines integer, - PRIMARY KEY (channel_id, time_index), - FOREIGN KEY (channel_id) REFERENCES channel (id) - ); EXEC SQL CREATE TABLE channel_file ( id serial, channel_id integer, @@ -131,7 +124,6 @@ int pg_upgrade() { EXEC SQL WHENEVER SQLERROR SQLPRINT; void pg_dropall() { EXEC SQL DROP TABLE channel CASCADE; - EXEC SQL DROP TABLE channel_hours; EXEC SQL DROP TABLE channel_file; EXEC SQL DROP TABLE users CASCADE; EXEC SQL DROP TABLE user_hours; |