Skip to content

Commit a6ee06b

Browse files
authored
Fix jdl import with sqllite (jhipster#1559)
1 parent bfbb3b9 commit a6ee06b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generators/bootstrap-application/__snapshots__/generator.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ exports[`SubGenerator bootstrap-application of dotnetcore JHipster blueprint > r
401401
"prettierJava": undefined,
402402
"prettierTabWidth": undefined,
403403
"primaryKeyType": "long",
404-
"prodDatabaseType": "sqllite",
404+
"prodDatabaseType": "sql",
405405
"prodDatabaseTypeAny": false,
406406
"prodDatabaseTypeMariadb": false,
407407
"prodDatabaseTypeMssql": false,

generators/bootstrap-application/generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default class extends BaseApplicationGenerator {
4141
// - lint-staged paths needs adjusts.
4242
this.jhipsterConfig.skipCommitHook = true;
4343
this.jhipsterConfig.databaseType ??= this.jhipsterConfig.prodDatabaseType ?? 'sqllite';
44-
44+
this.jhipsterConfig.prodDatabaseType = this.jhipsterConfig.databaseType === 'mongodb' ? 'mongodb' : 'sql'; // set only for jdl-importer compatibility
4545
if (this.jhipsterConfig.dtoSuffix === undefined || this.jhipsterConfig.dtoSuffix === 'DTO') {
4646
this.jhipsterConfig.dtoSuffix = 'Dto';
4747
}

0 commit comments

Comments
 (0)