$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";
}
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
}
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
}
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
$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);