How to handle initial undefined state
Constraint does not exist when running migration
Docker build error with sveltekit
0.187 ...
serial primary key start from
id: serial('id').primaryKey()
id: serial('id').primaryKey()
Multiple exports with the same name
ERROR: Multiple exports with the same name "lessonsRelations"
but there's only one export as seen in the screenshot.
How can I fix this? No idea what's happening....Reusable values for `with` property in findFirst and findMany
const result = await db.query.users.findFirst({ with: { usersMeta: true }});
I want to achieve something like this:
```ts...Identifying error due to Serializable isolation failure in postgres
db.transaction((tx) => {....}, {isolationLevel: "serializable"})
db.transaction((tx) => {....}, {isolationLevel: "serializable"})
numeric as number instead of a string
numerals: numeric().array().notNull()
Now while I know that internally the DB treats numeric
as strings, on the TS side of things I would rather deal with it as a number
...Pull from an existing schema, but skip in migrations?
Is there a way to pull in an existing schema, but to skip it when it comes to migrations?
Essentially, I just want to be able to build relations, and ideally create row-level security policies. thanks!...
Place relations into seperate file?
relations.ts
and also have schema.ts
and then do...
```ts
import * as relations from '$lib/db/relations.js';...Grant Privileges to Role
pgRole()
in order to enable RLS on my database. After running the migration my user has no privileges on my tables and cannot access them. How can I grant all privileges to my role?How can I skip columns I don't want to have generated?
drizzle-seed
(btw, there's no tag yet in the Discord help space) and I don't want some columns generated (default).
How can I specify this?
Currently, the script fails with column with type xata_file is not supported for now.
Even though the table that has a count > 0 has no such columns....I wonder I don't get reply_to_id in my tables after I migrate and push
How to deal with initial undefined data
Struggling with Complex Query Filters in Drizzle: Need Help with Global and Specific Conditions
Need advice on how to work with timezones, please
2025-01-16T23:10
....this.client.migrate is not a function
I'm receiving error when trying to do a self referencing
Error: D1_ERROR: too many SQL variables at offset 460: SQLITE_ERROR
[Solved] applying migrations...error: type "application_status" does not exist