mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-08-29 10:43:56 +00:00
Fix increment being deleted when type is updated
This commit is contained in:
@@ -89,7 +89,8 @@ export default function TableField({ data, tid, index }) {
|
||||
]);
|
||||
setRedoStack([]);
|
||||
const incr =
|
||||
data.increment && dbToTypes[database][value].canIncrement;
|
||||
data.increment && !!dbToTypes[database][value].canIncrement;
|
||||
|
||||
if (value === "ENUM" || value === "SET") {
|
||||
updateField(tid, index, {
|
||||
type: value,
|
||||
|
Reference in New Issue
Block a user