mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-10-22 03:16:33 +00:00
Validate field default values
This commit is contained in:
@@ -389,6 +389,20 @@ export default function Table(props) {
|
||||
length: 255,
|
||||
increment: incr,
|
||||
});
|
||||
} else if (
|
||||
f.type === "BLOB" ||
|
||||
f.type === "JSON" ||
|
||||
f.type === "GEOMETRY" ||
|
||||
f.type === "TEXT" ||
|
||||
incr
|
||||
) {
|
||||
updateField(props.tableData.id, j, {
|
||||
type: value,
|
||||
increment: incr,
|
||||
default: "",
|
||||
length: "",
|
||||
values: [],
|
||||
});
|
||||
} else {
|
||||
updateField(props.tableData.id, j, {
|
||||
type: value,
|
||||
@@ -542,7 +556,7 @@ export default function Table(props) {
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
{f.type === "VARCHAR" && (
|
||||
{(f.type === "VARCHAR" || f.type === "CHAR") && (
|
||||
<>
|
||||
<div className="font-semibold">Length</div>
|
||||
<InputNumber
|
||||
|
Reference in New Issue
Block a user