BUG 7395 cambiar un dato en la BD a autoincrementable

This issue was completed, the autoIncrement option was added.
This commit is contained in:
Carlos Pacha
2011-08-10 15:39:31 -04:00
parent 823e7813b7
commit 18ef1e590a
3 changed files with 34 additions and 7 deletions

View File

@@ -327,7 +327,20 @@ Ext.onReady(function(){
editor: new fm.NumberField({
allowBlank: true
})
}, {
xtype: 'booleancolumn',
header: _('ID_AUTO_INCREMENT'),
dataIndex: 'field_bai',
align: 'center',
width: 50,
trueText: 'Yes',
falseText: 'No',
editor: {
xtype: 'checkbox'
}
}
];
//if permissions plugin is enabled
@@ -367,6 +380,7 @@ Ext.onReady(function(){
{name: 'field_type'},
{name: 'field_size', type: 'float'},
{name: 'field_null', type: 'float'},
{name: 'field_bai', type: 'float'},
{name: 'field_filter', type: 'string'}
]
});
@@ -1217,6 +1231,7 @@ function loadTableRowsFromArray(records)
field_size : records[i].FLD_SIZE,
field_key : records[i].FLD_KEY,
field_null : records[i].FLD_NULL,
field_bai : records[i].FLD_AUTO_INCREMENT == '1' ? true : false,
field_filter: records[i].FLD_FILTER == '1' ? true : false,
_index : ''
});
@@ -1318,4 +1333,4 @@ function in_array(needle, haystack) {
if(haystack[i] == needle) return true;
}
return false;
}
}