simplify subscribing/unsubscribing podcasts
[mygpo.git] / install / update-08.sql
blobb7307c32640b16ad81c8db885adc6a487ca74ab8
1 alter table suggestion add column id int unique auto_increment;
3 alter table episode add column timestamp timestamp;
5 CREATE TABLE `ratings` (
6     `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
7     `target` varchar(15) NOT NULL,
8     `user_id` integer NOT NULL,
9     `rating` integer NOT NULL,
10     `timestamp` datetime NOT NULL
13 ALTER TABLE `ratings` ADD CONSTRAINT `user_id_refs_id_6cfe3b5b` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);