Skip to content

Commit

Permalink
Fix jdl import with sqllite (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas63 authored Feb 7, 2025
1 parent bfbb3b9 commit a6ee06b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ exports[`SubGenerator bootstrap-application of dotnetcore JHipster blueprint > r
"prettierJava": undefined,
"prettierTabWidth": undefined,
"primaryKeyType": "long",
"prodDatabaseType": "sqllite",
"prodDatabaseType": "sql",
"prodDatabaseTypeAny": false,
"prodDatabaseTypeMariadb": false,
"prodDatabaseTypeMssql": false,
Expand Down
2 changes: 1 addition & 1 deletion generators/bootstrap-application/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class extends BaseApplicationGenerator {
// - lint-staged paths needs adjusts.
this.jhipsterConfig.skipCommitHook = true;
this.jhipsterConfig.databaseType ??= this.jhipsterConfig.prodDatabaseType ?? 'sqllite';

this.jhipsterConfig.prodDatabaseType = this.jhipsterConfig.databaseType === 'mongodb' ? 'mongodb' : 'sql'; // set only for jdl-importer compatibility
if (this.jhipsterConfig.dtoSuffix === undefined || this.jhipsterConfig.dtoSuffix === 'DTO') {
this.jhipsterConfig.dtoSuffix = 'Dto';
}
Expand Down

0 comments on commit a6ee06b

Please sign in to comment.