mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-12-21 01:07:24 +08: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([]);
|
setRedoStack([]);
|
||||||
const incr =
|
const incr =
|
||||||
data.increment && dbToTypes[database][value].canIncrement;
|
data.increment && !!dbToTypes[database][value].canIncrement;
|
||||||
|
|
||||||
if (value === "ENUM" || value === "SET") {
|
if (value === "ENUM" || value === "SET") {
|
||||||
updateField(tid, index, {
|
updateField(tid, index, {
|
||||||
type: value,
|
type: value,
|
||||||
|
|||||||
Reference in New Issue
Block a user