brick_sqlite_abstract 1.0.0+1
brick_sqlite_abstract: ^1.0.0+1 copied to clipboard
Support for Brick SQLite that does not rely on dart:mirrors
Unreleased #
1.0.0+1 #
- Null safety cleanup and refactor
- Fixes foreign key column bug introduced in 1.0.0: explicitly declared column names are no longer regenerated
1.0.0 #
- Null safety
0.1.0 #
- Declare a custom
columnTypewith@Sqlite. Because this feature overrides Brick assumptions about the column type, the field will be inserted (toSqlite) as is and returned as is from deserialization (fromSqlite). - BREAKING CHANGE Positional argument
typeis no longer accepted when initializingSchemaColumn. The type was converted to a SQLite column type and rendered as the SQLite type in generators. Instead, explicitly define thecolumnTypeto use, such asColumn.integer. For existing implementations,SchemaColumnshould only be declared in generatedschema.g.dartfiles. If the schema has not been committed to VCS (as recommended), no update steps will be necessary. Migrations remain unaffected.
0.0.9+1 #
- Escape tables created with reserved names in the index statement. For example:
CREATE INDEX IF NOT EXISTS index_Group_on_id \Group`(`id`)`
0.0.9 #
- Remove
Migration.wrapInTransactionstatic method. This was a misleading and unused method. - Add
index:option in@Sqlitefor creating an index on a column.
0.0.8+1 #
- Add a
DropIndexcommand to revertCreateIndexchanges - Detect
CreateIndexchanges and generate a migration
0.0.8 #
- When joins tables are created, add a unique index by both columns to ensure no duplicates are inserted. Prior applications will need to manually specify
CreateIndexin a custom migration for existing joins tables. When new joins tables are generated in migrations,CreateIndexwill also be generated.
0.0.7+4 #
- Fix a bug where a many-to-many association shared the same class name
0.0.7+2, 0.0.7+3 #
- Define
onDeleteSetDefaulton the field annotation. This 1) generates a new migration and 2) allows the schema to regenerate from user preferences instead of strictly historic migrations.
0.0.7+1 #
- Define
onDeleteCascadeon the field annotation. This 1) generates a new migration and 2) allows the schema to regenerate from user preferences instead of strictly historic migrations.
0.0.7 #
- When defining the migration for
InsertForeignKey,onDeleteCascadecan be set to determine whether the deletion of the record will delete all referencing children records. Defaultsfalse.
0.0.4 #
Sqlite#defaultValueupdated to reflectFieldSerializable#defaultValuechange
0.0.2 #
- Use single quotes when generating
Migration#versionto comply with default analyzer options - Fix linter hints
0.0.1+1 #
- SqliteModel moved to this package from
brick_offline_first_abstract