Skip to content

Commit d511d38

Browse files
committed
add database initialization file
1 parent fccb995 commit d511d38

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

database.sql

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
CREATE TABLE `posts` (
2+
`post_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
3+
`forum_thread_id` int(11) unsigned NOT NULL,
4+
`forum_forum_id` int(11) unsigned NOT NULL,
5+
`post_time` int(11) NOT NULL,
6+
`post_author` tinytext NOT NULL,
7+
`post_body` mediumtext NOT NULL,
8+
`forum_post_id` int(11) unsigned NOT NULL,
9+
`thread_name` tinytext NOT NULL,
10+
`forum_name` tinytext NOT NULL,
11+
`forum_page_number` int(11) NOT NULL,
12+
PRIMARY KEY (`post_id`),
13+
KEY `forum_post_id` (`forum_post_id`)
14+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
15+
16+
17+
18+
CREATE TABLE `tweets` (
19+
`tweet_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
20+
`twitter_tweet_id` bigint(21) NOT NULL,
21+
`tweet_text` tinytext NOT NULL,
22+
`tweet_time` int(11) NOT NULL,
23+
PRIMARY KEY (`tweet_id`),
24+
KEY `twitter_tweet_id` (`twitter_tweet_id`)
25+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
26+
27+
28+
29+
30+
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
31+
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
32+
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
33+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
34+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
35+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

includes/config.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
),
3434

3535
/**
36-
* MySQL information.
36+
* MySQL information. Don't forget to initialize the database with the contents of database.sql.
3737
*/
3838
'mysql' => array(
3939
'host' => '',

0 commit comments

Comments
 (0)