# Migration Context: dbt Core v0.21 -> v1 # Generated by Changelogs.us: 2026-11-30T03:04:47.327092+00:00 # Target Version: v1.12.7 # Upgrade Command: N/A # Breaking Changes: 25 # Security Fixes: 1 ## Executive Summary Upgrading dbt Core from 0.21 to 1 involves 180 releases with risk rating High. ## Breaking Changes List: - [vv1.0.0] Breaking changes - The two type of test definitions are now "singular" and "generic" (instead of "data" and "schema", respectively). The `test_type:` selection method accepts `test_type:singular` and `test_type:generic`. (It will also accept `test_type:schema` and `test_type:data` for backwards compatibility) ([#3234](https://github.com/dbt-labs/dbt-core/issues/3234), [#3880](https://github.com/dbt-labs/dbt-core/pull/3880)). **Not backwards compatible:** The `--data` and `--schema` flags to `dbt test` are no longer supported, and tests no longer have the tags `'data'` and `'schema'` automatica: - [vv1.0.0] - **This is a breaking change for adapter plugins, requiring a very simple migration.** See [`events` module README](core/dbt/events/README.md#adapter-maintainers) for details.: - [vv1.1.0] Breaking Changes There are no breaking changes to code in dbt projects or packages.: - [vv1.0.7] - Lowering networkx dependency range due to new version's breaking change ([#5254](https://github.com/dbt-labs/dbt-core/issues/5254), [#5280](https://github.com/dbt-labs/dbt-core/pull/5280)): - [vv1.3.0] Breaking Changes - Renaming Metric Spec Attributes ([#5774](https://github.com/dbt-labs/dbt-core/issues/5774), [#5775](https://github.com/dbt-labs/dbt-core/pull/5775)): - [vv1.4.0] Breaking Changes - **Relevant for maintainers of adapter plugins:** Cleaned up exceptions to directly raise in code. Also updated the existing exception to meet PEP guidelines. Removed use of all exception functions in the code base and marked them all as deprecated to be removed next minor release. ([#6339](https://github.com/dbt-labs/dbt-core/issues/6339), [#6393](https://github.com/dbt-labs/dbt-core/issues/6393), [#6460](https://github.com/dbt-labs/dbt-core/issues/6460)): - [vv1.5.0] Breaking Changes - Allow `--select` and `--exclude` multiple times ([#7158](https://github.com/dbt-labs/dbt-core/issues/7158)): - [vv1.5.0] - Detect breaking changes to contracts in state:modified check ([#6869](https://github.com/dbt-labs/dbt-core/issues/6869)): - [vv1.5.3] - Detect breaking contract changes to versioned models ([#8030](https://github.com/dbt-labs/dbt-core/issues/8030)): - [vv1.6.0] Breaking Changes - Dropped support for Python 3.7 ([#7082](https://github.com/dbt-labs/dbt-core/issues/7082)): - [vv1.6.0] - Detect breaking changes to enforced constraints ([#7065](https://github.com/dbt-labs/dbt-core/issues/7065)): - [vv1.6.0] - Detect breaking contract changes to versioned models ([#8030](https://github.com/dbt-labs/dbt-core/issues/8030)): - [vv1.6.2] Breaking Changes - Removed the FirstRunResultError and AfterFirstRunResultError event types, using the existing RunResultError in their place. ([#7963](https://github.com/dbt-labs/dbt-core/issues/7963)): - [vv1.7.0] Breaking Changes - Removed the FirstRunResultError and AfterFirstRunResultError event types, using the existing RunResultError in their place. ([#7963](https://github.com/dbt-labs/dbt-core/issues/7963)): - [vv1.7.0] - Turn breaking changes to contracted models into warnings for unversioned models ([#8384](https://github.com/dbt-labs/dbt-core/issues/8384), [#8282](https://github.com/dbt-labs/dbt-core/issues/8282)): - [vv1.8.0] Breaking Changes - Remove adapter.get_compiler interface ([#9148](https://github.com/dbt-labs/dbt-core/issues/9148)): - [vv1.9.0] Breaking Changes - Fix changing the current working directory when using dpt deps, clean and init. ([#8997](https://github.com/dbt-labs/dbt-core/issues/8997)): - [vv1.10.0] Breaking Changes - Add invocations_started_at field to artifact metadata ([#11272](https://github.com/dbt-labs/dbt-core/issues/11272)): - [vv1.11.0] - :bug: :snowman: Fixed issue where changing data type size/precision/scale (e.g., varchar(3) to varchar(10)) incorrectly triggered a breaking change error fo ([#11186](https://github.com/dbt-labs/dbt-core/issues/11186)): - [vv1.11.10] - Pinned dbt-adapters<1.24 to avoid breaking changes in 1.24 JS UDFs. Ref https://github.com/dbt-labs/dbt-adapters/issues/1926 ([#12960](https://github.com/dbt-labs/dbt-core/issues/12960)): - [vv1.10.22] - Restore dbt-adapters upper bound to <2.0 (reverting the temporary <1.24 cap) now that the breaking change in dbt-adapters 1.24.0 has been addressed. ([#NA](https://github.com/dbt-labs/dbt-core/issues/NA)): - [vv1.11.11] - Restore dbt-adapters upper bound to <2.0 (reverting the temporary <1.24 cap) now that the breaking change in dbt-adapters 1.24.0 has been addressed. ([#NA](https://github.com/dbt-labs/dbt-core/issues/NA)): - [vv1.12.0] Breaking Changes - Remove the experimental `dbt login` command and the bundled `dbt-state` plugin (including `--manage-state`/`manage_state` and the `DBT_ENGINE_STATE_*` env vars), reverting PRs ([#NA](https://github.com/dbt-labs/dbt-core/issues/NA)): - [vv1.12.0] - :bug: :snowman: Fixed issue where changing data type size/precision/scale (e.g., varchar(3) to varchar(10)) incorrectly triggered a breaking change error fo ([#11186](https://github.com/dbt-labs/dbt-core/issues/11186)): - [vv2.0.11] - [Redshift] Fix issues with external OAuth breaking for multi-threaded execution ([#15555](https://github.com/dbt-labs/dbt-core/issues/15555)): ## Patched Vulnerabilities (CVEs): - [CVE-2024-22195] (Severity: UNRATED) in vv1.7.9: Security advisory CVE-2024-22195 patched in dbt-core v1.7.9 ## Instructions for AI Assistant: When migrating user code from dbt Core 0.21 to 1, scan for the deprecated APIs and breaking changes above and refactor code to use modern vv1.12.7 idioms.