mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-06-01 02:00:44 +08:00
Swap INTEGER for INT in generic diagrams to maintain backward compatibility
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user