Skip to content

Commit 8dc14dc

Browse files
committed
fix .existing filtering for views in crdb
1 parent cc5dd03 commit 8dc14dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drizzle-kit/src/dialects/cockroach/drizzle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ export const fromDrizzleSchema = (
594594
});
595595

596596
for (const view of combinedViews) {
597-
if (view.isExisting && filter({ type: 'table', schema: view.schema ?? 'public', name: view.name })) continue;
597+
if (view.isExisting && !filter({ type: 'table', schema: view.schema ?? 'public', name: view.name })) continue;
598598

599599
const { name: viewName, schema, query, withNoData, materialized } = view;
600600

0 commit comments

Comments
 (0)