Skip to content

Commit da778c2

Browse files
wmadden-electricwmadden
authored andcommitted
TML-2727: fix pgvector test import for __unbound__ branding
Signed-off-by: wmadden-electric <286902546+wmadden-electric@users.noreply.github.com>
1 parent a047d45 commit da778c2

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

packages/3-extensions/pgvector/test/migrations/planner.behavior.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
import type { SqlSchemaIR } from '@prisma-next/sql-schema-ir/types';
2020
import { createPostgresMigrationPlanner } from '@prisma-next/target-postgres/planner';
2121
import { buildBuiltinIdentityValue } from '@prisma-next/target-postgres/planner-identity-values';
22-
import { blindCast } from '@prisma-next/utils/casts';
2322
import { describe, expect, it } from 'vitest';
2423
import pgvectorDescriptor from '../../src/exports/control';
2524

@@ -581,16 +580,16 @@ function createTestContract(
581580
},
582581
};
583582
const { storage: _s, ...rest } = overrides ?? {};
584-
const namespaces = blindCast<SqlStorageInput['namespaces']>(
583+
const namespaces = (
585584
storageInput.namespaces
586585
? buildSqlNamespaceMap(storageInput.namespaces)
587586
: {
588587
[UNBOUND_NAMESPACE_ID]: buildSqlNamespace({
589588
id: UNBOUND_NAMESPACE_ID,
590589
tables: defaultTables,
591590
}),
592-
},
593-
);
591+
}
592+
) as SqlStorageInput['namespaces'];
594593
return {
595594
target: 'postgres',
596595
targetFamily: 'sql',

0 commit comments

Comments
 (0)