From ea42017e4f293285260f344f5a088c3279a06507 Mon Sep 17 00:00:00 2001 From: guillermo Date: Thu, 12 Sep 2024 09:42:10 +0200 Subject: [PATCH] feat: refs #7562 Requested changes --- myt-version.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/myt-version.js b/myt-version.js index 9dba08f..2b3ae16 100644 --- a/myt-version.js +++ b/myt-version.js @@ -43,7 +43,7 @@ class Version extends Command { versionCreated: function(versionName) { console.log(`New version created: ${versionName}`); }, - deprecate: 'Generating SQL for deprecate.' + deprecate: 'Generating SQL for deprecated objects deletion.' }; async run(myt, opts) { @@ -132,8 +132,7 @@ class Version extends Command { if (opts.deprecate) { this.emit('deprecate'); await deprecate(conn, opts, newVersionDir); - } - else + } else await fs.writeFile( `${newVersionDir}/00-firstScript.sql`, '-- Place your SQL code here\n'