# kysely/release
Kysely v0.30.0-beta.1
importance: highbreakingdeprecationfeatureprerelease
This release introduces a new `transactionMode` property for the `Migrator` class, allowing more granular control over transaction behavior during migrations. It also adds support for `mysql2/promise` and introduces a `defineMigration` helper function for easier migration writing.
affected
Users relying on `disableTransactions` or using `BLOB` columns with SQLite JSON helpers are affected.
action
Update migration configurations to use `transactionMode` instead of `disableTransactions`.
release_signals
-`disableTransactions` is deprecated. Use `transactionMode: 'none'` or `transactionMode: 'per-migration'` with `config: { transaction: false }`.
-Passing records with `BLOB` columns in SQLite JSON helpers now emits compile-time errors.
!`disableTransactions` is deprecated.
+Added `transactionMode: 'per-run' | 'per-migration' | 'none'` property for `Migrator`.
+Introduced `defineMigration` helper function for writing migrations.
+Support for `mysql2/promise` in `MysqlDialect`.
+Added `migrateTo(name, { direction: 'Up' | 'Down' })` to enforce migration direction.
+Denied passing BLOB-like columns to SQLite JSON helpers.
code_snippet
import { defineMigration } from 'kysely/migration'
export default defineMigration({
up: async (db) => {
// ...
},
config: { transaction: false }, // <--------------------
})# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.