pushSchema from drizzle-kit/api is not working if pgSchema specified in the schema.ts file
pgSchema
in schema.ts file the pushSchema still tries to apply to the default public
schema ignoring the pgSchema declaration:
my schema.ts:
```
export const schema = pgSchema('custom_schema_name');...Generic base repository abstract class
LibsqlError: SERVER_ERROR: Server returned HTTP status 404
Order By Relational Data
TypeError: Cannot read properties of null (reading 'constructor')
drizzle-kit
generate, getting errors which I'm struggling to debug. Confirmed with colleague on same branch of the project, working on their machine.
Done fresh installs of Drizzle-orm and Drizzle-kit, both locally and globally.
Versions tried: ...can't push changes to SQLite database
How to use in browser environment?
How to deal with conflicts in db migrations between environments
Error Handling In Drizzle
drizzle-seed thinks I'm not using MySQL.
Error: The drizzle-seed package currently supports only PostgreSQL, MySQL, and SQLite databases. Please ensure your database is one of these supported types
at seedFunc (/Users/user/Code/starter/node_modules/src/index.ts:393:9)
at SeedPromise.then (/Users/user/Code/starter/node_modules/src/index.ts:167:10)
Error: The drizzle-seed package currently supports only PostgreSQL, MySQL, and SQLite databases. Please ensure your database is one of these supported types
at seedFunc (/Users/user/Code/starter/node_modules/src/index.ts:393:9)
at SeedPromise.then (/Users/user/Code/starter/node_modules/src/index.ts:167:10)
Error when fetching data from database view
NeonDbError: invalid input syntax for type integer: "NaN"
The schema of database and view is
```...
Can a CHECK constraint take sql builders (eq, lt, isNull)?
SQL | undefined
, while the check takes in SQL
, so there is a type mismatch.
The docs use
```import { sql } from "drizzle-orm";
import { check, int, sqliteTable, text } from "drizzle-orm/sqlite-core";
export const users = sqliteTable(...How to handle multiple Durable Objects (with different schemas and migrations)
[BUG]: PgTable types don't work well when come from generics
Drizzle-kit incorrectly defaulting to @neondatabase/serverless driver
DATABASE_URL=postgres://<user>:<password>@localhost:5432/drizzle-db
```...Security issue GHSA-67mh-4wv8-2f99
Drizzle alongside Electron, Vite and Nuxt
Generated Column Unique Constraint
drizzle-kit push Cloudflare d1 local
Type Error when Generating Typebox
createSchemaFactory
from drizzle-typebox with PostgreSQL tables, I'm getting type errors when trying to create schemas. But in Runtime it Works without any Problems, i also Tried to edit my tsconfig to:
```json
{
"compilerOptions": {...