feat: refs #7562 Requested changes

This commit is contained in:
Guillermo Bonet 2024-09-12 09:42:10 +02:00
parent 5ac41532d9
commit ea42017e4f
1 changed files with 2 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class Version extends Command {
versionCreated: function(versionName) { versionCreated: function(versionName) {
console.log(`New version created: ${versionName}`); console.log(`New version created: ${versionName}`);
}, },
deprecate: 'Generating SQL for deprecate.' deprecate: 'Generating SQL for deprecated objects deletion.'
}; };
async run(myt, opts) { async run(myt, opts) {
@ -132,8 +132,7 @@ class Version extends Command {
if (opts.deprecate) { if (opts.deprecate) {
this.emit('deprecate'); this.emit('deprecate');
await deprecate(conn, opts, newVersionDir); await deprecate(conn, opts, newVersionDir);
} } else
else
await fs.writeFile( await fs.writeFile(
`${newVersionDir}/00-firstScript.sql`, `${newVersionDir}/00-firstScript.sql`,
'-- Place your SQL code here\n' '-- Place your SQL code here\n'