-------------------------------------------------------------------------------- -- Calendar -- a web application for publishing calendars -- Copyright (C) 2006 Sam Clippinger (samc (at) silence (dot) org) -- -- This program 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. -- -- This program 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 this program; if not, write to the Free Software -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -------------------------------------------------------------------------------- UPDATE user SET type = 8 WHERE (type = 4); UPDATE user SET type = 4 WHERE (type = 3); UPDATE user SET type = 3 WHERE (type = 2); ALTER TABLE calendar_event ADD subscription_id char(26) NOT NULL AFTER event_id; CREATE TABLE calendar_subscription ( subscription_id char(26) NOT NULL PRIMARY KEY, date_created datetime NOT NULL, date_modified datetime NOT NULL, date_refreshed datetime NOT NULL, refresh_interval_mins int NOT NULL, name varchar(100) NOT NULL, prefix varchar(50) NOT NULL, url varchar(500) NOT NULL, username varchar(50) NOT NULL, password varchar(50) NOT NULL ); CREATE TABLE calendar_theme_subscription ( theme_subscription_id char(26) NOT NULL PRIMARY KEY, theme_id char(26) NOT NULL, subscription_id char(26) NOT NULL, date_created datetime NOT NULL, date_modified datetime NOT NULL );