Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 0.006

* Rolled up individual database migrations into single tag migration script
  • Loading branch information...
commit 2d86582a5dae83ef26a80b2bddfeaac31131953d 1 parent 90359c1
@ginatrapani ginatrapani authored
View
4 sql/build-db_mysql.sql
@@ -1,6 +1,6 @@
--
-- ThinkTank Database Creation Script
--- Auto-generated by thinktank/extras/scripts/migratedb script on 2010-07-17
+-- Auto-generated by thinktank/extras/scripts/migratedb script on 2010-07-27
--
ALTER DATABASE DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
@@ -233,7 +233,7 @@ CREATE TABLE tt_users (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--- Dump completed on 2010-07-17 11:34:49
+-- Dump completed on 2010-07-27 15:32:48
--
-- Insert default plugin(s)
View
2  sql/mysql_migrations/2010-06-22_reply-rt-to-posts.sql
@@ -1,2 +0,0 @@
-ALTER TABLE tt_posts ADD is_reply_by_friend TINYINT NOT NULL DEFAULT '0' AFTER reply_count_cache;
-ALTER TABLE tt_posts ADD is_retweet_by_friend TINYINT NOT NULL DEFAULT '0' AFTER retweet_count_cache;
View
6 sql/mysql_migrations/2010-07-03_follower-count.sql
@@ -1,6 +0,0 @@
-CREATE TABLE tt_follower_count (
-network_user_id BIGINT NOT NULL ,
-network VARCHAR( 20 ) NOT NULL ,
-date DATE NOT NULL ,
-count INT NOT NULL
-) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
View
7 sql/mysql_migrations/2010-07-17-clean-up-owners.sql
@@ -1,7 +0,0 @@
-ALTER TABLE tt_owners DROP user_name, DROP country;
-
-ALTER TABLE tt_owners CHANGE user_activated is_activated INT( 1 ) NOT NULL DEFAULT '0';
-
-ALTER TABLE tt_owners CHANGE user_pwd pwd VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
-
-ALTER TABLE tt_owners CHANGE user_email email VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
View
11 sql/mysql_migrations/2010-07-18_clean-up-posts_and_follows.sql
@@ -1,11 +0,0 @@
-ALTER TABLE tt_posts DROP INDEX status_id;
-
-ALTER TABLE tt_posts ADD INDEX ( post_id ) ;
-
-ALTER TABLE tt_posts DROP INDEX tweets_fulltext , ADD FULLTEXT post_fulltext ( post_text );
-
-ALTER TABLE tt_posts ADD INDEX network ( network );
-
-ALTER TABLE tt_posts ADD author_follower_count INT NOT NULL AFTER author_avatar;
-
-ALTER TABLE tt_follows CHANGE user_id user_id BIGINT NOT NULL, CHANGE follower_id follower_id BIGINT NOT NULL;
View
33 sql/mysql_migrations/2010-07-27_v0.006.sql.migration
@@ -0,0 +1,33 @@
+--
+-- 2010-06-22
+--
+ALTER TABLE tt_posts ADD is_reply_by_friend TINYINT NOT NULL DEFAULT '0' AFTER reply_count_cache;
+ALTER TABLE tt_posts ADD is_retweet_by_friend TINYINT NOT NULL DEFAULT '0' AFTER retweet_count_cache;
+
+--
+-- 2010-07-03
+--
+CREATE TABLE tt_follower_count (
+network_user_id BIGINT NOT NULL ,
+network VARCHAR( 20 ) NOT NULL ,
+date DATE NOT NULL ,
+count INT NOT NULL
+) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
+
+--
+-- 2010-07-17
+--
+ALTER TABLE tt_owners DROP user_name, DROP country;
+ALTER TABLE tt_owners CHANGE user_activated is_activated INT( 1 ) NOT NULL DEFAULT '0';
+ALTER TABLE tt_owners CHANGE user_pwd pwd VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
+ALTER TABLE tt_owners CHANGE user_email email VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
+
+--
+-- 2010-07-18
+--
+ALTER TABLE tt_posts DROP INDEX status_id;
+ALTER TABLE tt_posts ADD INDEX ( post_id ) ;
+ALTER TABLE tt_posts DROP INDEX tweets_fulltext , ADD FULLTEXT post_fulltext ( post_text );
+ALTER TABLE tt_posts ADD INDEX network ( network );
+ALTER TABLE tt_posts ADD author_follower_count INT NOT NULL AFTER author_avatar;
+ALTER TABLE tt_follows CHANGE user_id user_id BIGINT NOT NULL, CHANGE follower_id follower_id BIGINT NOT NULL;
Please sign in to comment.
Something went wrong with that request. Please try again.