do not add ON UPDATE CURRENT_TIMESTAMP twice
This commit is contained in:
@@ -7,6 +7,7 @@ $Source$
|
|||||||
|
|
||||||
2005-03-20 Marc Delisle <lem9@users.sourceforge.net>
|
2005-03-20 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/spanish: Updated, thanks to Daniel Hinostroza (hinostroza).
|
* 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>
|
2005-03-19 Alexander M. Turek <me@derrabus.de>
|
||||||
* lang/german-*.inc.php: Translations #1120157 (bad translation of
|
* lang/german-*.inc.php: Translations #1120157 (bad translation of
|
||||||
|
@@ -331,7 +331,7 @@ for ($i = 0 ; $i < $num_fields; $i++) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Dynamically add ON UPDATE CURRENT_TIMESTAMP to the possible attributes
|
// 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';
|
$cfg['AttributeTypes'][] = 'ON UPDATE CURRENT_TIMESTAMP';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user