sqlite_schema_forge 0.1.1
sqlite_schema_forge: ^0.1.1 copied to clipboard
Declarative SQLite schema and auto-migration for Dart: define tables as immutable objects and let the differ plan and apply safe CREATE, ALTER, and rebuild steps.
0.1.1 #
- Fix
migrate()skippingonUpgrade/onDowngradeand thePRAGMA user_versionstamp when the plan has no DDL steps:MigrationPlan.isUpToDateis nowfromVersion == toVersion && steps.isEmpty, so a version gap alone (e.g. a data-only or column-affinity migration) counts as out of date.applyPlan()keeps its DDL-only no-op behavior. - New
migrate(disableForeignKeys:)option (defaultfalse): turnsPRAGMA foreign_keysoff before the migration transaction and restores it afterwards, soonUpgrade/onDowngradedata moves andDROP/CREATErebuilds don't trip on transient violations.
0.1.0 #
- Initial release in the
the_forge_ecosystemmonorepo (reset from prior standalone versioning). - Declarative schema definition (
Schema,Table,Column,Index,VirtualTable,Trigger,RawSql) withCREATEDDL generation. - Auto-migration engine:
migrate,plan,applyPlanover a driver-agnosticDatabaseExecutor, withPRAGMA user_versiontracking and foreign-key helper.