bloom_migrate 0.1.4
bloom_migrate: ^0.1.4 copied to clipboard
Database migrations CLI and library for Bloom applications using bloom_db.
Changelog #
0.1.4 - 2026-09-04 #
Changed #
- Empty
-- upmigration warning (#15): a migration whose-- upsection parses empty (usually a marker typo such as-- UP) now emits a loud warning at parse time, since it previously applied nothing yet recorded as applied. _ensureChecksumColumnno longer swallows all errors (#15): after a failedALTER TABLEit verifies the column is actually present and readable; any other failure (read-only database, missing permissions) now raises aStateErrorinstead of hiding behind "column exists".
0.1.3 - 2026-09-04 #
Changed #
- Replaced the hand-rolled SHA-256 checksum implementation with
package:crypto(sha256.convert(utf8.encode(...))). Digests are byte-identical to the previous implementation, so checksums stored in existingbloom_migrationstables remain valid. Fixes #13.
0.1.2 - 2026-08-31 #
- Added checksum validation to reject modified applied migrations.
- Added deployment locking and PostgreSQL dollar-quoted SQL parsing.
0.1.1 - 2026-08-23 #
- Fixed
CREATE INDEXstatement generation for column lists.
All notable changes to this project will be documented in this file.
0.1.0 #
- Initial release of
bloom_migrate. - Dialect-aware SQL DDL generation for SQLite and PostgreSQL from
bloom_dbModelMetaandFieldMeta. - Migration file parser for
migrations/<app>/NNNN_name.sqlsupporting-- upand-- down(as well as-- no-down) sections mirroringcloud-backendconvention. - Transactional migration runner with
bloom_migrationshistory tracking table. - CLI tool
bloom_migrateprovidingmakemigrations,migrate,rollback, andstatuscommands.