when running postgres in docker, drizzle cannot connect to it, says database doesnt exist
./start-database.sh
the env updated itself but it says that databse does not exist :/ i checked in docker desktop and the container is runningrecommendation on changing data type of column?
error: column "time_waiting_for_builds" cannot be cast automatically to type double precision
i'm wondering how to go around these kind of things. would editing the resulting migration sql be an anti pattern? is there a recommended approach to do these things?...TypeError unless column is notNull
Update returning with some relation
reference fails with Cannot read properties of undefined (reading 'id')
Drizzle not creating table
Best way to insert thousands of records.
COPY
command....using rqb with pgSchema
How to specify types for raw sql statement?
refine and createInsertSchema
createInsertSchema
accepts and option to further refine the schema
I would like to validate fields against each other like ensuring a completedAt
field is date after a startedAt
field.
```...Changing postgres timestamp mode (string -> date) isn't reflected in migrations
mode: 'date'
in multiple timestamp columns (ex: time: timestamp({ withTimezone: true, mode: 'date' }).notNull(),
). This was mode: 'string'
by default previously.
Now when I run the drizzle-kit generate
command, no migrations are generated. I made this change to multiple columns. ...Conditional queries with $dynamic
``ts
const countQuery = db
.select({
count: sql<number>
count(${recipeTable.id})`.mapWith(Number),...Define a full-text search index using raw SQL concatenation
posts
schema that looks like this:
```
export const post_schema = pgTable(
'posts',
{...CTE / WITH + alias
left join "bar" as cte1
)
without``js
sql
${cte} as cte1`...Can't find ``all`` option on join
.all();
at the end to get more than 1 joined element. I'm trying a very similar thing and there is no all
function:
```js
let orders = await database...Search on user's fullname
search
that can be automatically calculated from these three fields.
I saw something on the docs about something called full-text search, but I don't think that is is needed for my case, I just to be able to find users based on any part of their name provided.
I am not a postgres expert, so I will appreciate any advice if I am wrong....Drizzle is not working properly and not creating tables

securityInvoker
"drizzle-kit": "^0.30.4",
the securityInvoker
field comes as string
while the (documentation)[https://orm.drizzle.team/docs/rls#rls-on-views] says its a bool
. Is there a fix for this?...
What's the hash in the __drizzle_migrations table used for?
drizzle-kit push
and manually update the migration table..
It seems to work by just updating the created_at timestamps to the when
timestamp in the journal.
Is it safe to do this? What is the hash used for and when could this create problems?...