NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev
The implementation of database migration for Angel3 framework. Designed to work with Angel3 ORM.
Latest stable
10.0.1
Last release 21 days ago
01 Nov 2026
Release timing varies
gaps range from 2 weeks to 10 months
Nearly every release is documented
notes for 23 of 23 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
26 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Breaking: MySqlMigrationRunner, MariaDbMigrationRunner and MariaDbSchema.run use mysql_dart 4, so pass a MySQLConnection of mysql_dart 4. With TLS (se
MySqlMigrationRunner, MariaDbMigrationRunner and MariaDbSchema.run use mysql_dart 4, so pass a MySQLConnection of mysql_dart 4. With TLS (secure: true, its default), it verifies the server's certificate, and connect() fails with a HandshakeException for the self-signed certificate that MySQL and MariaDB generate, as in Docker. Pass verifyServerCertificate: false for such a server, or trust your own CA with securityContext. See the READMEDeprecated the unused connected parameter of the runners. Removed ModifyingAlterTable.modifications and the charcode dependency
dart:mirrors, so they run in programs compiled with dart compile exe. A migration is recorded by its Migration.name (default: its class name), where it was its absolute source path and class name, which changed when the project moved. Paths recorded by earlier versions are renamed on start (by legacyPath, or the only migration of the class name); an ambiguous path throws a StateError rather than guess. See the READMEMySqlMigrationRunner uses mysql_dart 3 instead of mysql_client, and MariaDbMigrationRunner and MariaDbSchema.run use it instead of mysql1: pass its MySQLConnection, and import package:mysql_dart/mysql_dart.dartup of every runner throws when a migration fails, and runs none after it, where the PostgreSQL and MariaDB runners only logged it. MySqlSchema.run throws when its SQL failsStateError, including two of a class that takes arguments without their own nameString default is always a literal: give SQL as RawSql (defaultsTo(RawSql('CURRENT_TIMESTAMP'))), and give defaultsTo('active'), not "'active'". Other defaults are literals of their toString(); a DateTime is a date literal, with its offset on PostgreSQL when UTCnumeric and decimal columns are created with their precision and scale, where MySQL and MariaDB rounded values to whole numbers; without them, numeric(17, 3) on MySQL and MariaDB, unbounded on PostgreSQL. A precision without a scale has a scale of 3. Values above a database's limits throw an ArgumentErrorchangeColumnType takes the precision, scale and length of the new type (default length 255), the constraints after the change, and using (PostgreSQL)`shop`.`orders`), PostgreSQL by schema ("audit"."events"); a name already quoted is quoted once. A PostgreSQL table with a . in its own name is given in double quotes. rename keeps a table in its schemaSqlMigrationRunner<S>, which all the runners extend, and MySqlFamilyMigrationRunner, MySqlFamilySchema, MySqlFamilyGenerator, MySqlFamilyTable and MySqlFamilyIndexes, which those of MySQL and MariaDB sharePostgresSchema.run also takes a Session, such as a transactionchangeColumnType(..., defaultValue: noDefault) removes a column's defaultconnected parameter of the runners. Removed ModifyingAlterTable.modifications and the charcode dependencychangeColumnType on MySQL and MariaDB: The column's NOT NULL, default, AUTO_INCREMENT, ON UPDATE, UNSIGNED, COMMENT, character set, collation, generation expression and (MariaDB) CHECK constraints are kept, read from information_schema when the schema runs, where MODIFY dropped them. It reads servers without GENERATION_EXPRESSION and Aurora's versions, drops defaults a type cannot have, and makes a serial column AUTO_INCREMENT only when it is a keychangeColumnType on PostgreSQL: Keeps the column's constraints, changes to a serial type's integer with a sequence of its own (resized as needed), and handles identity columnssetNotNull and dropNotNull work on MySQL and MariaDB; renameColumn of MariaDB worksbody(100)) and expressions work; REFERENCES are quoted; PostgreSQL doubles quotes in identifiersdropIndex drops an index or unique constraint. A unique index of an expression is a CREATE UNIQUE INDEX, and a primary key of an expression throwsmigrations table are passed as parameters. On PostgreSQL, a migration runs and is recorded in one transaction. rollback and reset undo the newest first, once each. NULL paths and text batch numbers are read# are matched correctly; a migration whose legacyPath matches no path throws a StateErrordoubles are 'NaN'/'Infinity' on PostgreSQL and throw on MySQL and MariaDB; MySQL 8 expression defaults and bit defaults are keptrunMigrations: Closes the runner when a migration fails, and throws that migration's errorYour coding agent can read these notes before it upgrades. Set up the MCP server →
- Require Dart >= 3.13
- Require Dart >= 3.12.0
Updated dependencies to the latest release
lints to 5.0.0lints to 6.0.0[MySQL] Generated int primary key as INT NOT NULL AUTO_INCREMENT
int primary key as INT NOT NULL AUTO_INCREMENTUpdated dependencies to the latest release
lints to 5.0.0@Column(indexType: IndexType.unique) generationAdded addIndex, dropIndex and dropPrimaryIndex
addIndex, dropIndex and dropPrimaryIndexFixed MariaDbMigrationRunner migration issues
MariaDbMigrationRunner migration issuesUpdated PostgresMigrationRunner error handling
PostgresMigrationRunner error handlingMySqlMigrationRunner migration issuesPostgreSQL, MySQL and MariaDBFixed MySQL migration column change PR #127
lints to 4.0.0* Updated pubspec
[BREAKING] Updated postgres to 3.0.0
postgres to 3.0.0lints to 3.0.0Updated: angel3_container_generator
- Require Dart >= 2.17
Fixed issue #70. Incorrectly generated SQL for defaultsTo('Default Value')
defaultsTo('Default Value')MariaDbMigrationRunner to work with MariaDBMySqlMigrationRunner to work with MySQL and MariaDBAdded MariaDbMigrationRunner to support MariaDB migration with mysql1 driver
MariaDbMigrationRunner to support MariaDB migration with mysql1 driverMySqlMigrationRunner to support MySQL migration with mysql_client driver- Require Dart >= 2.16 - Added ORM MySQL
* Updated README
Added support for MySQL and MariaDB database
MySQL and MariaDB database* Updated README
Updated linter to package:lints
package:lintsPublished all packages with angel3_ prefix
angel3_ prefixLogged exception of the db query execution to console
Default database column to varchar type
varchar typevarchar column size to 256Migrated to support Dart >= 2.12 NNBD
One column per quarter.