mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Allow self references
This commit is contained in:
@@ -46,7 +46,8 @@ import {
|
||||
jsonToMySQL,
|
||||
jsonToPostgreSQL,
|
||||
jsonToSQLite,
|
||||
jsonToMariaDB
|
||||
jsonToMariaDB,
|
||||
jsonToSQLServer
|
||||
} from "../utils";
|
||||
import {
|
||||
AreaContext,
|
||||
@@ -1010,7 +1011,21 @@ export default function ControlPanel({
|
||||
}));
|
||||
},
|
||||
},
|
||||
{ DBML: () => { } },
|
||||
{
|
||||
"SQL Server": () => {
|
||||
setVisible(MODAL.CODE);
|
||||
const src = jsonToSQLServer({
|
||||
tables: tables,
|
||||
references: relationships,
|
||||
types: types,
|
||||
});
|
||||
setExportData((prev) => ({
|
||||
...prev,
|
||||
data: src,
|
||||
extension: "sql",
|
||||
}));
|
||||
}
|
||||
},
|
||||
],
|
||||
function: () => { },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user