File tree Expand file tree Collapse file tree
content/docs/protocol/objectql Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -508,6 +508,15 @@ directly. `datetime` on PostgreSQL/MySQL keeps the native `now()`, which is
508508already UTC — the driver pins every MySQL connection with
509509` SET time_zone = '+00:00'` .
510510
511+ Both `os generate migration` formats reproduce the PostgreSQL arm of this
512+ translation, so a table built from a generated migration carries the same
513+ default as one the driver creates. That holds for a plain literal
514+ ` defaultValue` too — and for the two shapes that deliberately get **no** column
515+ default on either producer, because the engine resolves them per insert :
516+ `defaultValue : ' current_user' ` (which must stay unset when there is no
517+ authenticated user) and an Expression envelope (` { dialect, source }`). An
518+ option-level `default : true` on a `select` is likewise engine-only.
519+
511520<Callout type="warn">
512521A DDL default only governs **newly created** columns. A column created before
513522this convention keeps its legacy default and can still emit a zone-naive value on
You can’t perform that action at this time.
0 commit comments