1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 17:44:07 +02:00

Selectable ON UPDATE CURRENT_TIMESTAMP field in create table

This commit is contained in:
Jakub Vrana
2013-04-17 09:41:58 -07:00
parent 7af362554a
commit 46a7e7eea0
5 changed files with 6 additions and 10 deletions

View File

@@ -365,6 +365,9 @@ function editingTypeChange(type) {
if (el.name == name + '[unsigned]') {
el.className = (/(int|float|double|decimal)$/.test(text) ? '' : 'hidden');
}
if (el.name == name + '[on_update]') {
el.className = (text == 'timestamp' ? '' : 'hidden');
}
if (el.name == name + '[on_delete]') {
el.className = (/`/.test(text) ? '' : 'hidden');
}