From 89145dd80cadf85d531ec32f49ada6353f0c4610 Mon Sep 17 00:00:00 2001 From: Arslan Hassan Date: Thu, 10 Feb 2011 07:23:23 +0000 Subject: [PATCH] Updated : Sql --- sql/2.0.91~2.1.txt | 59 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/sql/2.0.91~2.1.txt b/sql/2.0.91~2.1.txt index db0bd1a7..5a70c728 100644 --- a/sql/2.0.91~2.1.txt +++ b/sql/2.0.91~2.1.txt @@ -21,6 +21,25 @@ INSERT into cb_config (name,value) VALUES ('high_resolution', '720'), ('max_video_duration','320'); +-- 441 + +ALTER TABLE `cb_video` ADD `aspect_ratio` VARCHAR( 10 ) NOT NULL AFTER `default_thumb` + +-- 450 +ALTER TABLE `cb_video` ADD `failed_reason` ENUM( 'max_duration', 'max_file', 'invalid_format', 'invalid_upload' ) NOT NULL AFTER `status` +ALTER TABLE `cb_users` CHANGE `subscribers` `subscribers` BIGINT( 225 ) NOT NULL DEFAULT '0' + +-- 477 +INSERT INTO `clipbucket_svn`.`cb_config` ( +`configid` , +`name` , +`value` +) +VALUES ( +NULL , 'embed_player_height', '250' +), ( +NULL , 'embed_player_width', '300'); + -- 471 INSERT into cb_config (name,value) VALUES ('photo_main_list','20'), @@ -37,4 +56,42 @@ INSERT into cb_config (name,value) VALUES ('collection_user_collections','20'), ('collection_user_favorites','20'), ('collection_items_page','20'); --- 471 \ No newline at end of file + +ALTER TABLE `cb_users` ADD `total_photos` BIGINT( 255 ) NOT NULL AFTER `total_comments` , +ADD `total_collections` BIGINT( 255 ) NOT NULL AFTER `total_photos`; + +ALTER TABLE `cb_collections` ADD `rating` BIGINT( 20 ) NOT NULL; +ALTER TABLE `cb_collections` ADD `rated_by` BIGINT( 20 ) NOT NULL AFTER `rating` ; + +ALTER TABLE `cb_collections` ADD `voters` LONGTEXT NOT NULL AFTER `rated_by` ; +ALTER TABLE `cb_collections` ADD `allow_rating` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes' AFTER `allow_comments` + +--- +ALTER TABLE `cb_user_profile` ADD `profile_item` VARCHAR( 25 ) NOT NULL AFTER `profile_video` ; +ALTER TABLE `cb_video` ADD `last_commented` DATETIME NOT NULL AFTER `comments_count` ; +ALTER TABLE `cb_users` ADD `last_commented` DATETIME NOT NULL AFTER `comments_count` ; +ALTER TABLE `cb_collections` ADD `last_commented` DATETIME NOT NULL AFTER `total_comments` ; +ALTER TABLE `cb_photos` ADD `last_commented` DATETIME NOT NULL AFTER `total_comments` ; + + +ALTER TABLE `cb_user_profile` ADD `allow_subscription` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes' AFTER `allow_ratings`; + +ALTER TABLE `cb_user_profile` ADD `show_my_videos` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes', +ADD `show_my_photos` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes', +ADD `show_my_subscriptions` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes', +ADD `show_my_subscribers` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes', +ADD `show_my_friends` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes'; + +ALTER TABLE `cb_users` ADD `voters` TEXT NOT NULL AFTER `rating` +; + +ALTER TABLE `cb_user_profile` ADD `show_my_collections` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes' AFTER `user_profile_id` +; + +ALTER TABLE `cb_users` DROP `rating` , +DROP `voters` , +DROP `rated_by` ; + +ALTER TABLE `cb_user_profile` ADD `rating` TINYINT( 2 ) NOT NULL AFTER `profile_item` , +ADD `voters` TEXT NOT NULL AFTER `rating` , +ADD `rated_by` INT( 150 ) NOT NULL AFTER `voters`; \ No newline at end of file