Hotfix, version match, sql script template

This commit is contained in:
Juan Ferrer 2021-10-26 13:03:15 +02:00
parent 381ada4411
commit 8c83e79bd7
3 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ class Push {
if (versionDir == 'README.md')
continue;
const match = versionDir.match(/^([0-9])-([a-zA-Z0-9]+)?$/);
const match = versionDir.match(/^([0-9]+)-([a-zA-Z0-9]+)?$/);
if (!match) {
logVersion('[W]'.yellow, '?????', versionDir);
continue;

View File

@ -118,7 +118,7 @@ class Version {
await fs.mkdir(versionDir);
await fs.writeFile(
`${versionDir}/00-firstScript.sql`,
'--Place your SQL code here\n'
'-- Place your SQL code here\n'
);
console.log(`New version created: ${versionFolder}`);

View File

@ -1,6 +1,6 @@
{
"name": "myvc",
"version": "1.2.1",
"version": "1.2.2",
"author": "Verdnatura Levante SL",
"description": "MySQL Version Control",
"license": "GPL-3.0",