mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-19677 Reverting prematurely committed blog patch
This commit is contained in:
parent
666e84584c
commit
4d13d47060
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user