Skip to content

Commit

Permalink
UTF-8 for database
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Kim authored and Francis Kim committed Mar 1, 2015
1 parent f6711ff commit 2b2a01b
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions setup/install.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
-- Create syntax for 'bits'

DROP TABLE IF EXISTS `bits`;
CREATE TABLE `bits` (
`id` int(11) unsigned NOT NULL auto_increment,
`slug` varchar(25) default NULL,
`version` int(11) default NULL,
`public` tinyint(1) default NULL,
`javascript` text,
`html` text,
`css` text,
`meta` text,
`created` timestamp NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`slug` varchar(25) COLLATE utf8_bin DEFAULT NULL,
`version` int(11) DEFAULT NULL,
`public` tinyint(1) DEFAULT NULL,
`javascript` text COLLATE utf8_bin,
`html` text COLLATE utf8_bin,
`css` text COLLATE utf8_bin,
`meta` text COLLATE utf8_bin,
`created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

0 comments on commit 2b2a01b

Please sign in to comment.