Location: PHPKode > projects > Buzzword > buzzword-0.8.12/planet/schema.inc
<?php

/*
 * buzzword
 * Copyright (c) 2003 Jon Tai
 *
 * $Id: schema.inc 12 2004-04-26 20:28:29Z brad $
 *
 * This file is part of buzzword.
 *
 * buzzword is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * buzzword is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with buzzword; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

mysql_query(
    "CREATE TABLE `".DB_PREFIX."planet_subscriptions` (".
    "  `subscription_key` int(10) unsigned NOT NULL default '0',".
    "  `last_retrieval` datetime NOT NULL default '0000-00-00 00:00:00',".
    "  `title` text NOT NULL,".
    "  `url` text NOT NULL,".
    "  `feed_url` text NOT NULL,".
    "  `icon` int(10) unsigned NOT NULL default '0',".
    "  PRIMARY KEY  (`subscription_key`)".
    ") TYPE=MyISAM;"
);

mysql_query(
    "CREATE TABLE `".DB_PREFIX."planet_entries` (".
    "  `entry_key` int(10) unsigned NOT NULL default '0',".
    "  `created` datetime NOT NULL default '0000-00-00 00:00:00',".
    "  `title` text NOT NULL,".
    "  `body` longtext NOT NULL,".
    "  `trackback_url` text NOT NULL,".
    "  `parent` int(10) unsigned NOT NULL default '0',".
    "  PRIMARY KEY  (`entry_key`),".
    "  KEY `created` (`created`),".
    "  KEY `parent` (`parent`)".
    ") TYPE=MyISAM;"
);

?>
Return current item: Buzzword