Initial commit
authormchampan <mchampan>
Tue, 11 Jul 2006 16:08:47 +0000 (16:08 +0000)
committermchampan <mchampan>
Tue, 11 Jul 2006 16:08:47 +0000 (16:08 +0000)
blocks/search/db/mysql.php [new file with mode: 0644]
blocks/search/db/mysql.sql [new file with mode: 0644]
blocks/search/db/postgres7.php [new file with mode: 0644]
blocks/search/db/postgres7.sql [new file with mode: 0644]

diff --git a/blocks/search/db/mysql.php b/blocks/search/db/mysql.php
new file mode 100644 (file)
index 0000000..cbbe8f6
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+//
+// This file keeps track of upgrades to Moodle's
+// blocks system.
+//
+// Sometimes, changes between versions involve
+// alterations to database structures and other
+// major things that may break installations.
+//
+// The upgrade function in this file will attempt
+// to perform all the necessary actions to upgrade
+// your older installtion to the current version.
+//
+// If there's something it cannot do itself, it
+// will tell you what you need to do.
+//
+// Versions are defined by backup_version.php
+//
+// This file is tailored to MySQL
+
+function search_upgrade($oldversion=0) {
+
+    global $CFG;
+    
+    $result = true;
+
+    if ($oldversion < 2006062500 and $result) {
+        $result = true; //Nothing to do
+    }
+
+    //Finally, return result
+    return $result;
+}
diff --git a/blocks/search/db/mysql.sql b/blocks/search/db/mysql.sql
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/blocks/search/db/postgres7.php b/blocks/search/db/postgres7.php
new file mode 100644 (file)
index 0000000..82a2599
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+//
+// This file keeps track of upgrades to Moodle's
+// blocks system.
+//
+// Sometimes, changes between versions involve
+// alterations to database structures and other
+// major things that may break installations.
+//
+// The upgrade function in this file will attempt
+// to perform all the necessary actions to upgrade
+// your older installtion to the current version.
+//
+// If there's something it cannot do itself, it
+// will tell you what you need to do.
+//
+// Versions are defined by backup_version.php
+//
+// This file is tailored to pgsql
+
+function search_upgrade($oldversion=0) {
+
+    global $CFG;
+    
+    $result = true;
+
+    if ($oldversion < 2006062500 and $result) {
+        $result = true; //Nothing to do
+    }
+
+    //Finally, return result
+    return $result;
+}
diff --git a/blocks/search/db/postgres7.sql b/blocks/search/db/postgres7.sql
new file mode 100644 (file)
index 0000000..e69de29