]> git.mjollnir.org Git - moodle.git/commitdiff
Deleting some default comments that the XMLDB editor was
authorstronk7 <stronk7>
Mon, 24 Sep 2007 18:40:49 +0000 (18:40 +0000)
committerstronk7 <stronk7>
Mon, 24 Sep 2007 18:40:49 +0000 (18:40 +0000)
generating here and there. Only the table one remains. MDL-11385

admin/xmldb/actions/create_xml_file/create_xml_file.class.php
admin/xmldb/actions/new_field/new_field.class.php
admin/xmldb/actions/new_index/new_index.class.php
admin/xmldb/actions/new_key/new_key.class.php
admin/xmldb/actions/new_table/new_table.class.php

index 8cc6390c86ab45278c426b0eb67506567903ce2f..dc4a9d0e27282924e9a357ff3dde41a1d31f6646 100644 (file)
@@ -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";
index d590a355b78b0150cc2cc3541bb0a8e05ea5ee5a..4384dc51e0e4f81b58ff0bb2c8d380e6bc9e2c19 100644 (file)
@@ -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
index 08decba315649da49e55dc4508cdccc143758b6c..80eeb4284c8e6f0b0dfa079b5edde9caec0df3e3 100644 (file)
@@ -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
index 8b720bdfdcb9181cd1b62a810e8db590dcaa2e8a..7a00cfc083c8b0dc055db6d03e9bf6ac28632195 100644 (file)
@@ -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
index 6a6b2736d91b48420e537586dfc489779a5f7197..7c01d14e635f18ee5a10ceffd05cef67c21cc0a3 100644 (file)
@@ -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);