Skip to content

Instantly share code, notes, and snippets.

@eddmann
Created November 22, 2012 17:37
Show Gist options
  • Save eddmann/4132324 to your computer and use it in GitHub Desktop.
Save eddmann/4132324 to your computer and use it in GitHub Desktop.
snippets. setup SQL
CREATE TABLE `snippet` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`description` text,
`snippet` text,
`tags` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `search` (`title`,`description`,`snippet`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
CREATE TABLE `question` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`question` varchar(255) NOT NULL,
`answer` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment