Version Policy Update - Postgres 18 to 14

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin
2025-10-16 18:44:29 -05:00
parent 498e1e8d61
commit d57b13b2d4
26 changed files with 56 additions and 42 deletions
@@ -510,6 +510,7 @@ export class TestCaches {
// @public
export type TestDatabaseId =
| 'POSTGRES_18'
| 'POSTGRES_17'
| 'POSTGRES_16'
| 'POSTGRES_15'
@@ -131,7 +131,7 @@ export class TestDatabases {
* Returns a fresh, unique, empty logical database on an instance of the
* given database ID platform.
*
* @param id - The ID of the database platform to use, e.g. 'POSTGRES_13'
* @param id - The ID of the database platform to use, e.g. 'POSTGRES_14'
* @returns A `Knex` connection object
*/
async init(id: TestDatabaseId): Promise<Knex> {
@@ -28,6 +28,7 @@ export interface Engine {
* @public
*/
export type TestDatabaseId =
| 'POSTGRES_18'
| 'POSTGRES_17'
| 'POSTGRES_16'
| 'POSTGRES_15'
@@ -48,6 +49,13 @@ export type TestDatabaseProperties = {
export const allDatabases: Record<TestDatabaseId, TestDatabaseProperties> =
Object.freeze({
POSTGRES_18: {
name: 'Postgres 18.x',
driver: 'pg',
dockerImageName: getDockerImageForName('postgres:18'),
connectionStringEnvironmentVariableName:
'BACKSTAGE_TEST_DATABASE_POSTGRES18_CONNECTION_STRING',
},
POSTGRES_17: {
name: 'Postgres 17.x',
driver: 'pg',