do not add ON UPDATE CURRENT_TIMESTAMP twice

This commit is contained in:
Marc Delisle
2005-03-20 12:14:42 +00:00
parent 5040606721
commit 4e0379461d
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2005-03-20 Marc Delisle <lem9@users.sourceforge.net>
* lang/spanish: Updated, thanks to Daniel Hinostroza (hinostroza).
* tbl_properties.inc.php: do not add ON UPDATE CURRENT_TIMESTAMP twice
2005-03-19 Alexander M. Turek <me@derrabus.de>
* lang/german-*.inc.php: Translations #1120157 (bad translation of

View File

@@ -331,7 +331,7 @@ for ($i = 0 ; $i < $num_fields; $i++) {
}
// Dynamically add ON UPDATE CURRENT_TIMESTAMP to the possible attributes
if (PMA_MYSQL_INT_VERSION >= 40102) {
if (PMA_MYSQL_INT_VERSION >= 40102 && !in_array('ON UPDATE CURRENT_TIMESTAMP', $cfg['AttributeTypes'])) {
$cfg['AttributeTypes'][] = 'ON UPDATE CURRENT_TIMESTAMP';
}