mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Deleting some default comments that the XMLDB editor was
generating here and there. Only the table one remains. MDL-11385
This commit is contained in:
parent
e0b033d5f8
commit
4a78d22fc3
@ -82,10 +82,10 @@ class create_xml_file extends XMLDBAction {
|
||||
$c.= ' <TABLES>' . "\n";
|
||||
$c.= ' <TABLE NAME="' . $xmltable . '" COMMENT="Default comment for ' . $xmltable .', please edit me">' . "\n";
|
||||
$c.= ' <FIELDS>' . "\n";
|
||||
$c.= ' <FIELD NAME="id" TYPE="int" LENGTH="10" UNSIGNED="true" NOTNULL="true" SEQUENCE="true" COMMENT="id of the table, please edit me" />' . "\n";
|
||||
$c.= ' <FIELD NAME="id" TYPE="int" LENGTH="10" UNSIGNED="true" NOTNULL="true" SEQUENCE="true" />' . "\n";
|
||||
$c.= ' </FIELDS>' . "\n";
|
||||
$c.= ' <KEYS>' . "\n";
|
||||
$c.= ' <KEY NAME="primary" COMMENT="Primary key for ' . $xmltable . '" TYPE="primary" FIELDS="id" />' . "\n";
|
||||
$c.= ' <KEY NAME="primary" TYPE="primary" FIELDS="id" />' . "\n";
|
||||
$c.= ' </KEYS>' . "\n";
|
||||
$c.= ' </TABLE>' . "\n";
|
||||
$c.= ' </TABLES>' . "\n";
|
||||
|
@ -89,7 +89,6 @@ class new_field extends XMLDBAction {
|
||||
}
|
||||
if (!$changeme_exists) { /// Lets create the field
|
||||
$field = new XMLDBField('changeme');
|
||||
$field->setComment('Default comment for the field, please edit me');
|
||||
$table->addField($field);
|
||||
|
||||
/// We have one new field, so the structure has changed
|
||||
|
@ -89,7 +89,6 @@ class new_index extends XMLDBAction {
|
||||
}
|
||||
if (!$changeme_exists) { /// Lets create the Index
|
||||
$index = new XMLDBIndex('changeme');
|
||||
$index->setComment('Default comment for the index, please edit me');
|
||||
$table->addIndex($index);
|
||||
|
||||
/// We have one new key, so the structure has changed
|
||||
|
@ -89,7 +89,6 @@ class new_key extends XMLDBAction {
|
||||
}
|
||||
if (!$changeme_exists) { /// Lets create the Key
|
||||
$key = new XMLDBKey('changeme');
|
||||
$key->setComment('Default comment for the key, please edit me');
|
||||
$table->addKey($key);
|
||||
|
||||
/// We have one new key, so the structure has changed
|
||||
|
@ -90,14 +90,12 @@ class new_table extends XMLDBAction {
|
||||
$field->setNotNull(true);
|
||||
$field->setUnsigned(true);
|
||||
$field->setSequence(true);
|
||||
$field->setComment('id of the table, please edit me');
|
||||
$field->setLoaded(true);
|
||||
$field->setChanged(true);
|
||||
|
||||
$key = new XMLDBKey('primary');
|
||||
$key->setType(XMLDB_KEY_PRIMARY);
|
||||
$key->setFields(array('id'));
|
||||
$key->setComment('primary key of the table, please edit me');
|
||||
$key->setLoaded(true);
|
||||
$key->setChanged(true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user