Hotfix, version match, sql script template
This commit is contained in:
parent
381ada4411
commit
8c83e79bd7
|
@ -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;
|
||||
|
|
|
@ -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}`);
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue