From 03c26476b352ba5b65a4e060eeda1483f0b8a8ba Mon Sep 17 00:00:00 2001 From: Yevhenii Moroziuk Date: Fri, 1 Nov 2024 09:39:38 +0200 Subject: [PATCH] HCK-8608: Revert comments logic for a plain view (#142) * HCK-8608: revert comment label for plain view --- forward_engineering/ddlProvider/ddlProvider.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/forward_engineering/ddlProvider/ddlProvider.js b/forward_engineering/ddlProvider/ddlProvider.js index 9230563..3e99967 100644 --- a/forward_engineering/ddlProvider/ddlProvider.js +++ b/forward_engineering/ddlProvider/ddlProvider.js @@ -615,9 +615,7 @@ module.exports = (baseProvider, options, app) => { }, constructViewObjectForComment({ viewData }) { - const object = 'VIEW'; - - return viewData.materialized ? 'MATERIALIZED ' + object : object; + return viewData.materialized ? 'MATERIALIZED VIEW' : 'TABLE'; }, createView(viewData, dbData, isActivated) {