cond-disable ER diagram and query design #386

This commit is contained in:
Jan Prochazka 2022-10-08 08:09:45 +02:00
parent 2adca64159
commit 13d4d34453

View File

@ -127,6 +127,9 @@ registerCommand({
name: 'Query design',
menuName: 'New query design',
onClick: () => newQueryDesign(),
testEnabled: () =>
getCurrentDatabase() &&
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
});
registerCommand({
@ -144,6 +147,9 @@ registerCommand({
icon: 'img diagram',
name: 'ER Diagram',
menuName: 'New ER diagram',
testEnabled: () =>
getCurrentDatabase() &&
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
onClick: () => newDiagram(),
});