From 7f74187e226d408dc7f27fb2d3b1e3bfbf046e3b Mon Sep 17 00:00:00 2001 From: thomashii Date: Sun, 25 Jul 2021 18:57:49 +0800 Subject: [PATCH] Updated orm generator --- packages/orm/angel_orm_generator/CHANGELOG.md | 4 ++++ .../orm/angel_orm_generator/lib/src/orm_build_context.dart | 5 ++++- packages/orm/angel_orm_generator/pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/orm/angel_orm_generator/CHANGELOG.md b/packages/orm/angel_orm_generator/CHANGELOG.md index 983770c7..3d9acd7c 100644 --- a/packages/orm/angel_orm_generator/CHANGELOG.md +++ b/packages/orm/angel_orm_generator/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 4.0.0-beta.5 + +* Fixed `ColumnType` incorrect constructor + ## 4.0.0-beta.4 * Fixed `build.yaml` diff --git a/packages/orm/angel_orm_generator/lib/src/orm_build_context.dart b/packages/orm/angel_orm_generator/lib/src/orm_build_context.dart index b093f54f..2c2c76cd 100644 --- a/packages/orm/angel_orm_generator/lib/src/orm_build_context.dart +++ b/packages/orm/angel_orm_generator/lib/src/orm_build_context.dart @@ -402,7 +402,10 @@ class _ColumnType implements ColumnType { @override final String name; - _ColumnType(this.name); + @override + final bool hasSize; + + _ColumnType(this.name, [this.hasSize = false]); } class RelationFieldImpl extends ShimFieldImpl { diff --git a/packages/orm/angel_orm_generator/pubspec.yaml b/packages/orm/angel_orm_generator/pubspec.yaml index cc849171..b8be50c6 100644 --- a/packages/orm/angel_orm_generator/pubspec.yaml +++ b/packages/orm/angel_orm_generator/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_orm_generator -version: 4.0.0-beta.4 +version: 4.0.0-beta.5 description: Code generators for Angel3 ORM. Generates query builder classes. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/orm/angel_orm_generator