Add changeset
Signed-off-by: Daniel Dias Branco Arthaud <arthaud@gmail.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend': minor
|
||||
---
|
||||
|
||||
Fixed a bug in plugin-scaffolder-backend where it ignores the skip migration database options.
|
||||
|
||||
To use this new implementation you need to create the instance of `DatabaseTaskStore` using the `PluginDatabaseManager` instead of `Knex`;
|
||||
|
||||
```
|
||||
import { DatabaseManager, getRootLogger, loadBackendConfig } from '@backstage/backend-common';
|
||||
import { DatabaseTaskStore } from '@backstage/plugin-scaffolder-backend';
|
||||
|
||||
const config = await loadBackendConfig({ argv: process.argv, logger: getRootLogger() });
|
||||
const databaseManager = DatabaseManager.fromConfig(config, { migrations: { skip: true } });
|
||||
const databaseTaskStore = await DatabaseTaskStore.create(databaseManager);
|
||||
```
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
'@backstage/plugin-search-backend-module-pg': minor
|
||||
---
|
||||
|
||||
Fixed a bug in search-backend-module-pg where it ignores the skip migration database options when using the database.
|
||||
|
||||
To use this new implementation you need to create the instance of `DatabaseDocumentStore` using the `PluginDatabaseManager` instead of `Knex`;
|
||||
|
||||
```
|
||||
import { DatabaseManager, getRootLogger, loadBackendConfig } from '@backstage/backend-common';
|
||||
import { DatabaseDocumentStore } from '@backstage/plugin-search-backend-module-pg';
|
||||
|
||||
const config = await loadBackendConfig({ argv: process.argv, logger: getRootLogger() });
|
||||
const databaseManager = DatabaseManager.fromConfig(config, { migrations: { skip: true } });
|
||||
const databaseDocumentStore = await DatabaseDocumentStore.create(databaseManager);
|
||||
```
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
'@backstage/backend-tasks': patch
|
||||
'@backstage/plugin-app-backend': patch
|
||||
'@backstage/plugin-bazaar-backend': patch
|
||||
'@backstage/plugin-code-coverage-backend': patch
|
||||
'@backstage/plugin-tech-insights-backend': patch
|
||||
---
|
||||
|
||||
Fixed a bug where the database option to skip migrations was ignored.
|
||||
Reference in New Issue
Block a user