Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit a346432

Browse files
Merge pull request drizzle-team#4090 from drizzle-team/main
Beta
2 parents 5ffd0bd + 555e4ff commit a346432

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

changelogs/drizzle-orm/0.39.2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- To be compatible with latest Neon Auth feature we renamed the pre-defined schema internally, from `neon_identity` to `neon_auth` - thanks @pffigueiredo

drizzle-orm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "drizzle-orm",
3-
"version": "0.39.1",
3+
"version": "0.39.2",
44
"description": "Drizzle ORM package for SQL databases",
55
"type": "module",
66
"scripts": {

drizzle-orm/src/neon/neon-identity.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { jsonb, pgSchema, text, timestamp } from '~/pg-core/index.ts';
22

3-
const neonIdentitySchema = pgSchema('neon_identity');
3+
const neonAuthSchema = pgSchema('neon_auth');
44

55
/**
6-
* Table schema of the `users_sync` table used by Neon Identity.
6+
* Table schema of the `users_sync` table used by Neon Auth.
77
* This table automatically synchronizes and stores user data from external authentication providers.
88
*
9-
* @schema neon_identity
9+
* @schema neon_auth
1010
* @table users_sync
1111
*/
12-
export const usersSync = neonIdentitySchema.table('users_sync', {
12+
export const usersSync = neonAuthSchema.table('users_sync', {
1313
rawJson: jsonb('raw_json').notNull(),
1414
id: text().primaryKey().notNull(),
1515
name: text(),

integration-tests/tests/bun/bun-sql.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4761,13 +4761,13 @@ test('neon: policy', () => {
47614761
}
47624762
});
47634763

4764-
test('neon: neon_identity', () => {
4764+
test('neon: neon_auth', () => {
47654765
const usersSyncTable = usersSync;
47664766

47674767
const { columns, schema, name } = getTableConfig(usersSyncTable);
47684768

47694769
expect(name).toBe('users_sync');
4770-
expect(schema).toBe('neon_identity');
4770+
expect(schema).toBe('neon_auth');
47714771
expect(columns).toHaveLength(6);
47724772
});
47734773

integration-tests/tests/pg/pg-common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5139,13 +5139,13 @@ export function tests() {
51395139
}
51405140
});
51415141

5142-
test('neon: neon_identity', () => {
5142+
test('neon: neon_auth', () => {
51435143
const usersSyncTable = usersSync;
51445144

51455145
const { columns, schema, name } = getTableConfig(usersSyncTable);
51465146

51475147
expect(name).toBe('users_sync');
5148-
expect(schema).toBe('neon_identity');
5148+
expect(schema).toBe('neon_auth');
51495149
expect(columns).toHaveLength(6);
51505150
});
51515151

0 commit comments

Comments
 (0)