6204-fixturesByEnvironment #2

Merged
jgallego merged 7 commits from 6204-fixturesByEnvironment into master 2023-10-30 06:57:37 +00:00
1 changed files with 2 additions and 10 deletions
Showing only changes of commit 65bd0197de - Show all commits

View File

@ -214,19 +214,11 @@ class Push extends Command {
continue;
}
const skipRealm = match & match[1] && match[1] !== realm;
const skipRealm = match[1] && match[1] !== realm;
if (isUndoScript(script))
if (isUndoScript(script) || skipRealm)
continue;
if (match[1]) {
if (skipRealm)
continue;
if (!realm)
continue;
}
const [[row]] = await conn.query(
`SELECT errorNumber FROM versionLog
jgallego marked this conversation as resolved Outdated
Outdated
Review

/^[0-9]{2}-[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)?\.sql$/

`/^[0-9]{2}-[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)?\.sql$/`
Outdated
Review
const match = script.match(/^[0-9]{2}-[a-zA-Z0-9_]+(?:\.(?!undo)([a-zA-Z0-9_]+))?(?:\.undo)?\.sql$/);
const skipRealm = match[1] && match[1] !== realm;

``` const match = script.match(/^[0-9]{2}-[a-zA-Z0-9_]+(?:\.(?!undo)([a-zA-Z0-9_]+))?(?:\.undo)?\.sql$/); const skipRealm = match[1] && match[1] !== realm; ```
WHERE code = ?