Database changes for Embargoed Announcements

This commit is contained in:
patrickslee 2005-11-11 02:04:14 +00:00
parent 2b38a593f0
commit 2d71936b74
4 changed files with 14 additions and 1 deletions

View File

@ -205,6 +205,10 @@ function forum_upgrade($oldversion) {
table_column('forum','','trackingtype','tinyint','2', 'unsigned', '1', '', 'forcesubscribe');
}
if ($oldversion < 2005111100) {
table_column('forum_discussions','','timestart','integer');
table_column('forum_discussions','','timeend','integer');
}
return true;

View File

@ -41,6 +41,8 @@ CREATE TABLE prefix_forum_discussions (
assessed tinyint(1) NOT NULL default '1',
timemodified int(10) unsigned NOT NULL default '0',
usermodified int(10) unsigned NOT NULL default '0',
timestart int(10) unsigned NOT NULL default '0',
timeend int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY prefix_forum_discussions_forum_idx (forum),
KEY prefix_forum_discussions_userid_idx (userid)

View File

@ -150,6 +150,11 @@ function forum_upgrade($oldversion) {
modify_database('','ALTER TABLE prefix_forum ALTER trackingtype SET NOT NULL');
}
if ($oldversion < 2005111100) {
table_column('forum_discussions','','timestart','integer');
table_column('forum_discussions','','timeend','integer');
}
return true;
}

View File

@ -39,7 +39,9 @@ CREATE TABLE prefix_forum_discussions (
groupid integer NOT NULL default '0',
assessed integer NOT NULL default '1',
timemodified integer NOT NULL default '0',
usermodified integer NOT NULL default '0'
usermodified integer NOT NULL default '0',
timestart integer NOT NULL default '0',
timeend integer NOT NULL default '0'
);
CREATE INDEX prefix_forum_discussions_forum_idx ON prefix_forum_discussions (forum);