Skip to content

chore: version packages - #152

Merged
Makisuo merged 1 commit into
mainfrom
changeset-release/main
Nov 25, 2026
Merged

Makisuo merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@maple-dev/[email protected]

Minor Changes

  • 05fbd7a: MySQL and MariaDB generated columns: MySQL.column(type, { generated: { as, stored? } }) declares a GENERATED ALWAYS AS (<as>) STORED | VIRTUAL column. as is SQL, or a DSL callback that may read the row's columns. The column is computed, as a ClickHouse MATERIALIZED one is: an insert row, an update SET or onDuplicateKeyUpdate that writes it is a type error and refused at runtime, excludedAll skips it, and tableSchemas(table).insert / .update leave it out; selects read it. It works on external: true tables, where it only marks the column computed, so an insert into a table another tool owns no longer sends a column MySQL refuses.

    On an owned table the DDL writes `col` <type> GENERATED ALWAYS AS (<expr>) STORED|VIRTUAL with no NOT NULL (MariaDB refuses it there) and no default, so declare MySQL.nullable(...) unless the expression cannot be NULL. Definition problems: a default, defaultExpr, defaultFn or onUpdate beside it (also a type error), an empty as, a generated primary key or tenant column, and, for a callback only, one that reads itself, a generated column declared after it, or a nullable column into a non-nullable type. A string as is not checked.

    effect-orm generate creates and adds such columns (a new generated one AFTER the column before it), and MODIFYs a changed expression or type, and a base column made STORED (which needs confirm_data_loss) or a STORED one made base (which keeps its values). A column made VIRTUAL, or a VIRTUAL one made STORED or base, is dropped and added back in one ALTER TABLE, in its place and with its indexes around it; to or from base needs confirm_data_loss, and a VIRTUAL column made base under a UNIQUE key is refused as unsupported. The ops are ordered around what generated columns read: base columns are added first and generated ones dropped first, and the generated columns reading a column that is renamed or dropped and added back (including ones renamed or replaced themselves) are dropped before it, last declared first, and added back after in declaration order. MySQL.ComputedColumnsOf and MySQL.GeneratedColumn are new types, and MysqlSchemaTable takes the computed columns as a new last type parameter. MysqlColumnEntity has an optional generated: { expr, stored, reads? } (reads: the columns a callback read), absent on other columns, so existing snapshots keep their ids. MysqlMigrationOp has a replace_column op, and add_column an optional after.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7ccb399a-2cde-4c05-ac3a-5902c2db3452

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Makisuo
Makisuo merged commit 8834415 into main Nov 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant