simplify subscribing/unsubscribing podcasts
[mygpo.git] / install / update-16.sql
blobd5bbb1cbf3909b9ef3ded550231a69197fcc90e7
1 CREATE TABLE `publisher` (
2     `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
3     `user_id` integer NOT NULL,
4     `podcast_id` integer NOT NULL
7 ALTER TABLE `publisher` ADD CONSTRAINT `podcast_id_refs_id_39ce950d` FOREIGN KEY (`podcast_id`) REFERENCES `podcast` (`id`);
8 ALTER TABLE `publisher` ADD CONSTRAINT `user_id_refs_id_22692cb3` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);
10 -- fixing bug 904
11 alter table episode modify timestamp timestamp null;
12 update episode set timestamp = null where title = '';