diff --git a/myvc-push.js b/myvc-push.js index 8124ea3..8061d7b 100644 --- a/myvc-push.js +++ b/myvc-push.js @@ -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; diff --git a/myvc-version.js b/myvc-version.js index 33357ae..04633b4 100644 --- a/myvc-version.js +++ b/myvc-version.js @@ -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}`); diff --git a/package.json b/package.json index 5954840..2338366 100644 --- a/package.json +++ b/package.json @@ -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",