Remove database choice from create-app command

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-04-20 15:08:20 +02:00
parent 08e7fc564c
commit 00fa0dada0
7 changed files with 29 additions and 33 deletions
-8
View File
@@ -50,15 +50,7 @@ export default async (opts: OptionValues): Promise<void> => {
return true;
},
},
{
type: 'list',
name: 'dbType',
message: chalk.blue('Select database for the backend [required]'),
choices: ['SQLite', 'PostgreSQL'],
},
]);
answers.dbTypePG = answers.dbType === 'PostgreSQL';
answers.dbTypeSqlite = answers.dbType === 'SQLite';
const templateDir = paths.resolveOwn('templates/default-app');
const tempDir = resolvePath(os.tmpdir(), answers.name);