database.sql
author Dan
Sat, 15 Mar 2008 20:45:32 -0400
changeset 2 c474904ed707
parent 0 d02690a8552c
child 20 e2f6e3af9959
permissions -rw-r--r--
Moved db_name to config.php; added !snippets virtual snippet that lists all snippet codes in database; abstracted database query and error checking code

CREATE TABLE snippets(
  snippet_id int(12) NOT NULL auto_increment,
  snippet_code varchar(32) NOT NULL DEFAULT '',
  snippet_text text,
  snippet_channels text,
  PRIMARY KEY ( snippet_id )
);

CREATE TABLE irclog (
  id int(11) NOT NULL auto_increment,
  channel varchar(30) default NULL,
  day char(10) default NULL,
  nick varchar(40) default NULL,
  timestamp int(11) default NULL,
  line text,
  spam tinyint(1) default '0',
  PRIMARY KEY  (id)
);