mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-18577 drop enums support - step2: enums out from editor, dbmanager and all upgrade scripts.
This commit is contained in:
parent
3ece3e4273
commit
2a88f626f7
32 changed files with 348 additions and 677 deletions
|
@ -47,7 +47,7 @@ function xmldb_enrol_authorize_upgrade($oldversion) {
|
|||
|
||||
/// Changing precision of field transid on table enrol_authorize to (20)
|
||||
$table = new xmldb_table('enrol_authorize');
|
||||
$field = new xmldb_field('transid', XMLDB_TYPE_INTEGER, '20', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, '0', 'userid');
|
||||
$field = new xmldb_field('transid', XMLDB_TYPE_INTEGER, '20', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, '0', 'userid');
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
/// Launch add index transid again
|
||||
|
@ -65,7 +65,7 @@ function xmldb_enrol_authorize_upgrade($oldversion) {
|
|||
|
||||
/// Changing precision of field transid on table enrol_authorize_refunds to (20)
|
||||
$table = new xmldb_table('enrol_authorize_refunds');
|
||||
$field = new xmldb_field('transid', XMLDB_TYPE_INTEGER, '20', XMLDB_UNSIGNED, null, null, null, null, '0', 'amount');
|
||||
$field = new xmldb_field('transid', XMLDB_TYPE_INTEGER, '20', XMLDB_UNSIGNED, null, null, '0', 'amount');
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
/// Launch add index transid again
|
||||
|
@ -79,10 +79,10 @@ function xmldb_enrol_authorize_upgrade($oldversion) {
|
|||
|
||||
/// Changing list of values (enum) of field paymentmethod on table enrol_authorize to none
|
||||
$table = new xmldb_table('enrol_authorize');
|
||||
$field = new xmldb_field('paymentmethod', XMLDB_TYPE_CHAR, '6', null, XMLDB_NOTNULL, null, null, null, 'cc', 'id');
|
||||
$field = new xmldb_field('paymentmethod', XMLDB_TYPE_CHAR, '6', null, XMLDB_NOTNULL, null, 'cc', 'id');
|
||||
|
||||
/// Launch change of list of values for field paymentmethod
|
||||
$dbman->change_field_enum($table, $field);
|
||||
$dbman->drop_enum_from_field($table, $field);
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue