@@ -431,8 +435,9 @@ export default function Table(props) {
fid: j,
undo: { notNull: f.notNull },
redo: { notNull: !f.notNull },
- message: `Edit table field to${f.notNull ? "" : " not"
- } null`,
+ message: `Edit table field to${
+ f.notNull ? "" : " not"
+ } null`,
},
]);
setRedoStack([]);
@@ -458,8 +463,9 @@ export default function Table(props) {
fid: j,
undo: { primary: f.primary },
redo: { primary: !f.primary },
- message: `Edit table field to${f.primary ? " not" : ""
- } primary`,
+ message: `Edit table field to${
+ f.primary ? " not" : ""
+ } primary`,
},
]);
setRedoStack([]);
@@ -691,8 +697,9 @@ export default function Table(props) {
[checkedValues.target.value]:
checkedValues.target.checked,
},
- message: `Edit table field to${f.unique ? " not" : ""
- } unique`,
+ message: `Edit table field to${
+ f.unique ? " not" : ""
+ } unique`,
},
]);
setRedoStack([]);
@@ -732,8 +739,9 @@ export default function Table(props) {
[checkedValues.target.value]:
checkedValues.target.checked,
},
- message: `Edit table field to${f.primary ? " not" : ""
- } auto increment`,
+ message: `Edit table field to${
+ f.primary ? " not" : ""
+ } auto increment`,
},
]);
setRedoStack([]);
@@ -896,10 +904,10 @@ export default function Table(props) {
indices: props.tableData.indices.map((index) =>
index.id === k
? {
- ...index,
- fields: [...value],
- name: `${value.join("_")}_index`,
- }
+ ...index,
+ fields: [...value],
+ name: `${value.join("_")}_index`,
+ }
: index
),
});
@@ -936,8 +944,9 @@ export default function Table(props) {
[checkedValues.target.value]:
checkedValues.target.checked,
},
- message: `Edit table field to${idx.unique ? " not" : ""
- } unique`,
+ message: `Edit table field to${
+ idx.unique ? " not" : ""
+ } unique`,
},
]);
setRedoStack([]);
@@ -945,10 +954,10 @@ export default function Table(props) {
indices: props.tableData.indices.map((index) =>
index.id === k
? {
- ...index,
- [checkedValues.target.value]:
- checkedValues.target.checked,
- }
+ ...index,
+ [checkedValues.target.value]:
+ checkedValues.target.checked,
+ }
: index
),
});
@@ -1038,7 +1047,7 @@ export default function Table(props) {
-
+
Theme
+
@@ -1231,10 +1243,11 @@ export default function Table(props) {
function field(fieldData, index) {
return (
{
setHoveredField(index);
props.setOnRect({