More updates, but wiki is still working only partical.

This commit is contained in:
paca70
2004-07-30 11:09:47 +00:00
parent 94a2861bbb
commit c670cbd0a9
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -12,7 +12,12 @@ function wiki_upgrade($oldversion) {
modify_database("", "ALTER TABLE ONLY prefix_wiki_pages
ADD CONSTRAINT id PRIMARY KEY (pagename, \"version\");");
}
if ($oldversion < 2004073001) {
modify_database("", "ALTER TABLE prefix_wiki_pages DROP CONSTRAINT id;");
modify_database("", "ALTER TABLE ONLY prefix_wiki_pages
ADD CONSTRAINT id PRIMARY KEY (pagename, \"version\", wiki);");
}
return true;
}
+1 -1
View File
@@ -55,6 +55,6 @@ CREATE TABLE prefix_wiki_pages (
) ;
ALTER TABLE ONLY prefix_wiki_pages
ADD CONSTRAINT id PRIMARY KEY (pagename, "version");
ADD CONSTRAINT id PRIMARY KEY (pagename, version, wiki);
CREATE INDEX prefix_wiki_pages_pagename_version_wiki_idx ON prefix_wiki_pages (pagename, version, wiki) ;
+1 -1
View File
@@ -5,7 +5,7 @@
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
$module->version = 2004073000; // The current module version (Date: YYYYMMDDXX)
$module->version = 2004073001; // The current module version (Date: YYYYMMDDXX)
$module->cron = 0; // Period for cron to check this module (secs)
?>