@famgia/omnify-cli 2.0.41 → 2.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/cli.js
CHANGED
|
@@ -2135,14 +2135,12 @@ async function runGenerate(options) {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
2137
|
for (const migData of createMigrations) {
|
|
2138
|
-
const
|
|
2139
|
-
|
|
2140
|
-
);
|
|
2141
|
-
if (Object.keys(migrationSchemas).length === 0) {
|
|
2138
|
+
const schemaExists = migData.schemas.some((name) => name in schemas);
|
|
2139
|
+
if (!schemaExists) {
|
|
2142
2140
|
logger.warn(` Cannot regenerate ${migData.fileName}: schema not found`);
|
|
2143
2141
|
continue;
|
|
2144
2142
|
}
|
|
2145
|
-
const regenerated = generateMigrations(
|
|
2143
|
+
const regenerated = generateMigrations(schemas, {
|
|
2146
2144
|
timestamp: migData.timestamp,
|
|
2147
2145
|
customTypes: customTypesMap2
|
|
2148
2146
|
});
|