Respect PG selection in create-app for search.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2022-03-04 11:27:43 +01:00
parent 0e39d0b4fe
commit c543fe3ff2
6 changed files with 32 additions and 3 deletions
+9 -3
View File
@@ -420,9 +420,15 @@ async function testBackendStart(appDir: string, isPostgres: boolean) {
if (isPostgres) {
print('Dropping old DBs');
await Promise.all(
['catalog', 'scaffolder', 'auth', 'identity', 'proxy', 'techdocs'].map(
name => dropDB(`backstage_plugin_${name}`),
),
[
'catalog',
'scaffolder',
'auth',
'identity',
'proxy',
'techdocs',
'search',
].map(name => dropDB(`backstage_plugin_${name}`)),
);
print('Created DBs');
}