1 person reported

All time, since Oct 13.

Pull mangles expression defaults

“The pulled schema file then does not compile, or it holds a string or an invalid Date where the database holds an expression.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/drizzle/issues/12197/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Pull writes expression column defaults as code or strings. The pulled schema file then does not compile, or generate and push emit SET DEFAULT although the database did not change.

Is this your bug?

File my report
Where
drizzle-kit pull
Error text
error TS2304: Cannot find name 'random'.
Versions
1.0.0-rc.5
How bad
Breaks a normal workflow.

Not quite your bug?

  1. No-op migration after kit up3 people

Original reports2, newest first

  1. PostgreSQL: after drizzle-kit pull, generate and push emit SET DEFAULT for a numeric column with an expression default#6495
  2. drizzle-kit pull writes an expression default as plain code or as a string for several column types (PostgreSQL, CockroachDB, SQLite, MySQL)#6493

Do you work on Drizzle?

Claim its RAP Sheet to see what your users report and answer them in one place.