Changelog - 2026-10-26
NOTE
devz codemod model-settings, named on this page, was removed in @venizia/dev-configs 0.4.7-5; on that release or later it exits 2 as an unknown codemod. Run it from an earlier release, or move the keys by hand with the table in the old @model keys are removed.
type is optional, skipMigrate becomes migration.use
EnhancementDeprecationIn one line. Drop type: 'entity' from @model: it is optional now. Replace skipMigrate: true with migration: { use: false }; the old key still works in this release and warns at boot.
What changed
typeis optional.ModelTypes.ENTITY('entity') is the only value and the default. The decorator throws on any other value,'view'included: views are not in the relational query interface.ModelTypesandTModelTypeare exported from the kernel package.migration: { use }replacesskipMigrate.usedefaults totrue.falsemarks the model as one your migration tooling leaves alone.- IGNIS generates no migrations.
drizzle-kitreads the schema file you give it; neithertypenormigrationchanges what it does.migration.useis a marker in the public registry (MetadataRegistry.getAllModels()) for tooling of yours. See Migrations. skipMigrateis deprecated. The decorator maps it tomigration: { use: !skipMigrate }and the application logs one warning per model at boot:
[deprecated] model Product uses skipMigrate | use migration: { use: false } instead | removed in 0.4.4- Both keys together throw. A model that sets
skipMigrateandmigrationis refused. BaseMetaLinkModelusesmigration: { use: false }. IGNIS creates no MetaLink table, so export its schema to yourdrizzle-kitfile or create it by hand.
Who is affected
| You wrote | Now |
|---|---|
@model({ type: 'entity' }) | Works. type can be removed. |
@model({ type: 'view' }) | Throws. Views were never supported. |
@model({ skipMigrate: true }) | Works, warns at boot. Write migration: { use: false }. |
@model({ skipMigrate: false }) | Works, warns at boot. Remove the key. |
Migrate
bunx devz codemod model-settings # dry run: lists the files that would change, writes nothing
bunx devz codemod model-settings --write # rewrites them
bunx devz codemod model-settings --check # dry run that exits 1 if anything would change (CI)The codemod turns skipMigrate: true into migration: { use: false } and removes skipMigrate: false. It leaves a value it cannot read for sure (a variable, a shorthand, a model that already has migration) and prints its file and line. Removing type: 'entity' is optional and left to you.