drizzle-team / drizzle-team/drizzle-orm

[BUG]: `drizzle-kit pull` working incorrectly for Supabase

Open
#4,482 1 comment 6 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [x] I have verified that the bug I'm about to report hasn't been filed before.

### What version of `drizzle-orm` are you using?

0.42.0

### What version of `drizzle-kit` are you using?

0.31.0

### Other packages

_No response_

### Describe the Bug

Hi 👋
I have recently tried and failed to start using Drizzle for my project.
There are 3 problems I have encountered after using `npx drizzle-kit pull`
1. Every reference to `auth.users.id` in tables mapped to `users.id` which doesn't exist. The correct way should be with importing this special table:
```typescript
import { authUsers } from 'drizzle-orm/supabase';
// foreignColumns: [authUsers.id]
// instead of
// foreignColumns: [users.id]
```
2. Default empty array values mapped to (RAY is not existing):
```
chunks: integer('chunks').array().default([RAY]).notNull()
```
3. `.enableRLS()` is absent, even though RLS is enabled.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.