mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Database changes for Embargoed Announcements
This commit is contained in:
parent
2b38a593f0
commit
2d71936b74
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user