Remove types from mssql

This commit is contained in:
1ilit
2024-07-06 16:12:09 +03:00
parent a3976bf250
commit 982cac1d3a
2 changed files with 2 additions and 11 deletions

View File

@@ -2,16 +2,7 @@ import { dbToTypes } from "../../data/datatypes";
import { parseDefault } from "./shared";
export function toMSSQL(diagram) {
const typeStatements = diagram.types
.map(
(type) =>
`CREATE TYPE [${type.name}] AS TABLE (\n${type.fields
.map((f) => `\t[${f.name}] ${f.type}`)
.join("\n")}\n);\n`,
)
.join("\n");
return `${typeStatements}${diagram.tables
return `${diagram.tables
.map(
(table) =>
`${