Skip to content

Commit

Permalink
Removed Latin charset from the tables
Browse files Browse the repository at this point in the history
Now charcter set of the tables would be UTF 8
  • Loading branch information
rukshn committed Oct 28, 2014
1 parent dbe4199 commit fd46dd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions db.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
`twitter_token` text NOT NULL,
`twitter_secret` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1")
)")
or die(mysql_error());

//Create post table
Expand All @@ -31,7 +31,7 @@
`user` varchar(30) NOT NULL,
`post_time` varchar(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=27 DEFAULT CHARSET=latin1") or die (mysql_error());
)") or die (mysql_error());

//create vote table

Expand All @@ -41,7 +41,7 @@
`user_id` varchar(30) NOT NULL,
`op_id` varchar(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=67 DEFAULT CHARSET=latin1")
)")
or die(mysql_error());

//create comment table
Expand All @@ -54,6 +54,6 @@
`commentid` varchar(20) NOT NULL,
`ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1") or die(mysql_error());
)") or die(mysql_error());

?>

0 comments on commit fd46dd2

Please sign in to comment.