Swap INTEGER for INT in generic diagrams to maintain backward compatibility

This commit is contained in:
1ilit
2024-06-24 05:10:39 +03:00
parent d8128f5010
commit 9e2684e7a9
4 changed files with 40 additions and 21 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { createContext, useState } from "react";
import { Action, ObjectType, defaultBlue } from "../data/constants";
import { Action, DB, ObjectType, defaultBlue } from "../data/constants";
import useTransform from "../hooks/useTransform";
import useUndoRedo from "../hooks/useUndoRedo";
import useSelect from "../hooks/useSelect";
@@ -35,7 +35,7 @@ export default function TablesContextProvider({ children }) {
fields: [
{
name: "id",
type: "INTEGER",
type: database === DB.GENERIC ? "INT" : "INTEGER",
default: "",
check: "",
primary: true,