From 8c83e79bd74f03f4fcc9af603f0103bc5ed6a445 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Tue, 26 Oct 2021 13:03:15 +0200 Subject: [PATCH] Hotfix, version match, sql script template --- myvc-push.js | 2 +- myvc-version.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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",