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')
|
if (versionDir == 'README.md')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const match = versionDir.match(/^([0-9])-([a-zA-Z0-9]+)?$/);
|
const match = versionDir.match(/^([0-9]+)-([a-zA-Z0-9]+)?$/);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
logVersion('[W]'.yellow, '?????', versionDir);
|
logVersion('[W]'.yellow, '?????', versionDir);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -118,7 +118,7 @@ class Version {
|
||||||
await fs.mkdir(versionDir);
|
await fs.mkdir(versionDir);
|
||||||
await fs.writeFile(
|
await fs.writeFile(
|
||||||
`${versionDir}/00-firstScript.sql`,
|
`${versionDir}/00-firstScript.sql`,
|
||||||
'--Place your SQL code here\n'
|
'-- Place your SQL code here\n'
|
||||||
);
|
);
|
||||||
console.log(`New version created: ${versionFolder}`);
|
console.log(`New version created: ${versionFolder}`);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "myvc",
|
"name": "myvc",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"author": "Verdnatura Levante SL",
|
"author": "Verdnatura Levante SL",
|
||||||
"description": "MySQL Version Control",
|
"description": "MySQL Version Control",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|
Loading…
Reference in New Issue