mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-11 02:00:37 +08:00
Remove types from mssql
This commit is contained in:
@@ -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) =>
|
||||
`${
|
||||
|
||||
Reference in New Issue
Block a user