]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19677 Reverting prematurely committed blog patch
authornicolasconnault <nicolasconnault>
Fri, 3 Jul 2009 05:54:49 +0000 (05:54 +0000)
committernicolasconnault <nicolasconnault>
Fri, 3 Jul 2009 05:54:49 +0000 (05:54 +0000)
lib/db/upgrade.php

index 0fdd39d60371253da635f1ca545c63ea3c2c50f6..65f9adf90462c468070d89fb779ffe1f8a247e58 100644 (file)
@@ -586,28 +586,6 @@ function xmldb_main_upgrade($oldversion) {
         upgrade_main_savepoint($result, 2008080600);
     }
 
-    if ($result && $oldversion < 2008081300) {
-    /// Define table blog_association to be created
-        $table = new xmldb_table('blog_association');
-
-    /// Adding fields to table blog_association
-        $table->add_field('id', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, XMLDB_SEQUENCE, null, null, null);
-        $table->add_field('contextid', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, null);
-        $table->add_field('blogid', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, null);
-    /// Adding keys to table blog_association
-        $table->add_key('primary', XMLDB_KEY_PRIMARY, array('id'));
-        $table->add_key('contextid', XMLDB_KEY_FOREIGN, array('contextid'), 'context', array('id'));
-        $table->add_key('blogid', XMLDB_KEY_FOREIGN, array('blogid'), 'post', array('id'));
-        if (!$dbman->table_exists($table)) {
-        /// Launch create table for blog_association
-            $dbman->create_table($table);
-        }
-
-    /// Main savepoint reached
-        upgrade_main_savepoint($result, 2008081300);
-    }
-
     if ($result && $oldversion < 2008081500) {
     /// Changing the type of all the columns that the question bank uses to store grades to be NUMBER(12, 7).
         $table = new xmldb_table('question');