Remove unnecessary fields in datatype

This commit is contained in:
1ilit 2024-06-15 04:41:06 +03:00
parent 7953b7fdc0
commit bff10e6fe9
2 changed files with 1 additions and 31 deletions

View File

@ -51,10 +51,7 @@ export default function ImportSource({
} }
limit={1} limit={1}
/> />
<div> <div className="mt-2">
<div className="text-xs mb-3 mt-1 opacity-80">
{t("only_mysql_supported")}
</div>
<Checkbox <Checkbox
aria-label="overwrite checkbox" aria-label="overwrite checkbox"
checked={importData.overwrite} checked={importData.overwrite}

View File

@ -14,7 +14,6 @@ export const defaultTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
canIncrement: true, canIncrement: true,
}, },
SMALLINT: { SMALLINT: {
@ -25,7 +24,6 @@ export const defaultTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
canIncrement: true, canIncrement: true,
}, },
BIGINT: { BIGINT: {
@ -36,7 +34,6 @@ export const defaultTypes = {
isSized: false, isSized: false,
hasCheck: true, hasCheck: true,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
canIncrement: true, canIncrement: true,
}, },
DECIMAL: { DECIMAL: {
@ -47,7 +44,6 @@ export const defaultTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: true, hasPrecision: true,
defaultSize: null,
}, },
NUMERIC: { NUMERIC: {
type: "NUMERIC", type: "NUMERIC",
@ -57,7 +53,6 @@ export const defaultTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: true, hasPrecision: true,
defaultSize: null,
}, },
FLOAT: { FLOAT: {
type: "FLOAT", type: "FLOAT",
@ -67,7 +62,6 @@ export const defaultTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: true, hasPrecision: true,
defaultSize: null,
}, },
DOUBLE: { DOUBLE: {
type: "DOUBLE", type: "DOUBLE",
@ -77,7 +71,6 @@ export const defaultTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: true, hasPrecision: true,
defaultSize: null,
}, },
REAL: { REAL: {
type: "REAL", type: "REAL",
@ -87,7 +80,6 @@ export const defaultTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
}, },
CHAR: { CHAR: {
type: "CHAR", type: "CHAR",
@ -134,7 +126,6 @@ export const defaultTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
hasQuotes: true, hasQuotes: true,
}, },
TIMESTAMP: { TIMESTAMP: {
@ -153,7 +144,6 @@ export const defaultTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
hasQuotes: true, hasQuotes: true,
}, },
DATE: { DATE: {
@ -164,7 +154,6 @@ export const defaultTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
hasQuotes: true, hasQuotes: true,
}, },
DATETIME: { DATETIME: {
@ -183,7 +172,6 @@ export const defaultTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
hasQuotes: true, hasQuotes: true,
}, },
BOOLEAN: { BOOLEAN: {
@ -197,7 +185,6 @@ export const defaultTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
}, },
BINARY: { BINARY: {
type: "BINARY", type: "BINARY",
@ -231,7 +218,6 @@ export const defaultTypes = {
isSized: false, isSized: false,
hasCheck: false, hasCheck: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
noDefault: true, noDefault: true,
}, },
JSON: { JSON: {
@ -240,7 +226,6 @@ export const defaultTypes = {
isSized: false, isSized: false,
hasCheck: false, hasCheck: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
noDefault: true, noDefault: true,
}, },
UUID: { UUID: {
@ -249,7 +234,6 @@ export const defaultTypes = {
isSized: false, isSized: false,
hasCheck: false, hasCheck: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
noDefault: true, noDefault: true,
}, },
ENUM: { ENUM: {
@ -260,7 +244,6 @@ export const defaultTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
hasQuotes: true, hasQuotes: true,
}, },
SET: { SET: {
@ -275,7 +258,6 @@ export const defaultTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
noDefault: true, noDefault: true,
}, },
}; };
@ -381,7 +363,6 @@ export const sqliteTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
canIncrement: true, canIncrement: true,
}, },
REAL: { REAL: {
@ -392,7 +373,6 @@ export const sqliteTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: true, hasPrecision: true,
defaultSize: null,
}, },
NUMERIC: { NUMERIC: {
type: "NUMERIC", type: "NUMERIC",
@ -402,7 +382,6 @@ export const sqliteTypes = {
hasCheck: true, hasCheck: true,
isSized: false, isSized: false,
hasPrecision: true, hasPrecision: true,
defaultSize: null,
}, },
BOOLEAN: { BOOLEAN: {
type: "BOOLEAN", type: "BOOLEAN",
@ -415,7 +394,6 @@ export const sqliteTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
}, },
VARCHAR: { VARCHAR: {
type: "VARCHAR", type: "VARCHAR",
@ -451,7 +429,6 @@ export const sqliteTypes = {
isSized: false, isSized: false,
hasCheck: false, hasCheck: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
noDefault: true, noDefault: true,
}, },
@ -463,7 +440,6 @@ export const sqliteTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
hasQuotes: true, hasQuotes: true,
}, },
TIMESTAMP: { TIMESTAMP: {
@ -482,7 +458,6 @@ export const sqliteTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
hasQuotes: true, hasQuotes: true,
}, },
DATE: { DATE: {
@ -493,7 +468,6 @@ export const sqliteTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
hasQuotes: true, hasQuotes: true,
}, },
DATETIME: { DATETIME: {
@ -512,7 +486,6 @@ export const sqliteTypes = {
hasCheck: false, hasCheck: false,
isSized: false, isSized: false,
hasPrecision: false, hasPrecision: false,
defaultSize: null,
hasQuotes: true, hasQuotes: true,
}, },
}; };