Skip to content

Instantly share code, notes, and snippets.

@magickatt
Created July 12, 2013 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magickatt/5985451 to your computer and use it in GitHub Desktop.
Save magickatt/5985451 to your computer and use it in GitHub Desktop.
Zend Log MySQL CREATE TABLE query for Zend Framework 1 or 2
CREATE TABLE `log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`priority` tinyint(1) NOT NULL,
`priorityName` varchar(5) CHARACTER SET ascii NOT NULL DEFAULT 'DEBUG',
`message` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment