Permalink
Browse files

Database changes for Embargoed Announcements

  • Loading branch information...
1 parent 2b38a59 commit 2d71936b74481f8b479ec0d1d8c2468f368c2010 patrickslee committed Nov 11, 2005
Showing with 14 additions and 1 deletion.
  1. +4 −0 mod/forum/db/mysql.php
  2. +2 −0 mod/forum/db/mysql.sql
  3. +5 −0 mod/forum/db/postgres7.php
  4. +3 −1 mod/forum/db/postgres7.sql
@@ -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;
@@ -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)
@@ -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;
}
@@ -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);

0 comments on commit 2d71936

Please sign in to comment.