@insforge/cli 0.1.29 → 0.1.30
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2281,7 +2281,7 @@ async function downloadGitHubTemplate(templateName, projectConfig, json) {
|
|
|
2281
2281
|
await fs3.writeFile(path3.join(cwd, ".env.local"), envContent);
|
|
2282
2282
|
}
|
|
2283
2283
|
s?.stop(`${templateName} template downloaded`);
|
|
2284
|
-
const migrationPath = path3.join(cwd, "migrations", "
|
|
2284
|
+
const migrationPath = path3.join(cwd, "migrations", "db_init.sql");
|
|
2285
2285
|
const migrationExists = await fs3.stat(migrationPath).catch(() => null);
|
|
2286
2286
|
if (migrationExists) {
|
|
2287
2287
|
const dbSpinner = !json ? clack10.spinner() : null;
|
|
@@ -2294,7 +2294,7 @@ async function downloadGitHubTemplate(templateName, projectConfig, json) {
|
|
|
2294
2294
|
dbSpinner?.stop("Database migration failed");
|
|
2295
2295
|
if (!json) {
|
|
2296
2296
|
clack10.log.warn(`Migration failed: ${err.message}`);
|
|
2297
|
-
clack10.log.info('You can run the migration manually: insforge db query --unrestricted "$(cat migrations/
|
|
2297
|
+
clack10.log.info('You can run the migration manually: insforge db query --unrestricted "$(cat migrations/db_init.sql)"');
|
|
2298
2298
|
} else {
|
|
2299
2299
|
throw err;
|
|
2300
2300
|
}
|