Skip to content

Commit 675df3f

Browse files
committed
Rename Neon Auth schema
Rename Neon Auth schema from `neon_identity` to `neon_auth`
1 parent 4d72640 commit 675df3f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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)