Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// if (!reactive) {
// opts.push({
// value: 'no',
// name: 'No database'
// });
// }
return opts;
},
default: 0
},
{
when: response => response.databaseType === 'sql',
type: 'list',
name: 'prodDatabaseType',
message: `Which ${chalk.yellow('*production*')} database would you like to use?`,
choices: constants.SQL_DB_OPTIONS,
default: 0
},
{
when: response => response.databaseType === 'sql',
type: 'list',
name: 'devDatabaseType',
message: `Which ${chalk.yellow('*development*')} database would you like to use?`,
choices: response =>
[
{
value: 'h2Disk',
name: 'H2 with disk-based persistence'
},
{
value: 'h2Memory',
name: 'H2 with in-memory persistence'
choices: response =>
[
{
value: 'h2Disk',
name: 'H2 with disk-based persistence'
},
{
value: 'h2Memory',
name: 'H2 with in-memory persistence'
}
].concat(constants.SQL_DB_OPTIONS.find(it => it.value === response.prodDatabaseType)),
default: 0