<?php
/*
* @package LabCMS
* @copyright (c) 2006 Alexander Levin aka Loki (loki_angel@mail.ru)
* @support http://labcms.ru
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
$success=true;

set_time_limit(0);

Db::i()->query(
	"CREATE TABLE IF NOT EXISTS ?_subscribe (
	`user_id` int(11) NOT NULL,
	`item_id` varchar(30) NOT NULL default '',
	PRIMARY KEY  (`user_id`,`item_id`)
	) ENGINE=MyISAM DEFAULT CHARSET=utf8;"
);

Db::i()->query(
	"CREATE TABLE IF NOT EXISTS ?_subscribe_status (
	`id` int(11) NOT NULL auto_increment,
	`item_id` varchar(30) NOT NULL default '',
	`text` varchar(3000) NOT NULL default '',
	`last_user_id` int(11) NOT NULL default '0',
	PRIMARY KEY  (`id`),
	KEY `item_id` (`item_id`)
	) ENGINE=MyISAM DEFAULT CHARSET=utf8;"
);


