]> git.mjollnir.org Git - moodle.git/commitdiff
Files for postgresql
authorpaca70 <paca70>
Sun, 10 Oct 2004 16:10:48 +0000 (16:10 +0000)
committerpaca70 <paca70>
Sun, 10 Oct 2004 16:10:48 +0000 (16:10 +0000)
blocks/glossary_random/db/postgres7.php [new file with mode: 0644]
blocks/glossary_random/db/postgres7.sql [new file with mode: 0644]

diff --git a/blocks/glossary_random/db/postgres7.php b/blocks/glossary_random/db/postgres7.php
new file mode 100644 (file)
index 0000000..84a11f6
--- /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 PostgreSql
+
+function glossary_random_upgrade($oldversion=0) {
+
+    global $CFG;
+    
+    $result = true;
+
+    if ($oldversion < 2004041000 and $result) {
+        $result = true; //Nothing to do
+    }
+
+    //Finally, return result
+    return $result;
+}
diff --git a/blocks/glossary_random/db/postgres7.sql b/blocks/glossary_random/db/postgres7.sql
new file mode 100644 (file)
index 0000000..43ded17
--- /dev/null
@@ -0,0 +1,18 @@
+#
+# Table structure for table `block_glossary_random`
+#
+
+CREATE TABLE prefix_block_glossary_random (
+  id SERIAL8 PRIMARY KEY,
+  course int8 NOT NULL default '0',
+  title varchar(50) default NULL,
+  glossary int8 NOT NULL default '0',
+  previous int8 NOT NULL default '0',
+  type int4 NOT NULL default '0',
+  addentry varchar(255) default NULL,
+  viewglossary varchar(255) default NULL,
+  invisible varchar(255) default NULL,
+  cache text NOT NULL,
+  refresh int8 NOT NULL default'0',    
+  nexttime int8 NOT NULL default '0'
+) ;