Updated angel_migration
This commit is contained in:
parent
cd5c120f8f
commit
7d815a2aa0
4 changed files with 40 additions and 17 deletions
packages/orm/angel_migration
|
@ -1,20 +1,34 @@
|
||||||
# 4.0.0-beta.2
|
# Change Log
|
||||||
|
|
||||||
|
## 4.0.0-beta.3
|
||||||
|
|
||||||
|
* Updated README
|
||||||
|
* Fixed NNBD
|
||||||
|
|
||||||
|
## 4.0.0-beta.2
|
||||||
|
|
||||||
* Resolved static analysis warnings
|
* Resolved static analysis warnings
|
||||||
|
|
||||||
# 4.0.0-beta.1
|
## 4.0.0-beta.1
|
||||||
|
|
||||||
* Migrated to support Dart SDK 2.12.x NNBD
|
* Migrated to support Dart SDK 2.12.x NNBD
|
||||||
|
|
||||||
# 3.0.0
|
## 3.0.0
|
||||||
|
|
||||||
* Migrated to work with Dart SDK 2.12.x Non NNBD
|
* Migrated to work with Dart SDK 2.12.x Non NNBD
|
||||||
|
|
||||||
# 2.0.0
|
## 2.0.0
|
||||||
|
|
||||||
* Bump to `2.0.0`.
|
* Bump to `2.0.0`.
|
||||||
|
|
||||||
# 2.0.0-rc.0
|
## 2.0.0-rc.0
|
||||||
|
|
||||||
* Make abstract `Schema.alter` use `MutableTable`.
|
* Make abstract `Schema.alter` use `MutableTable`.
|
||||||
|
|
||||||
# 2.0.0-alpha.1
|
## 2.0.0-alpha.1
|
||||||
|
|
||||||
* Changes to work with `package:angel_orm@2.0.0-dev.15`.
|
* Changes to work with `package:angel_orm@2.0.0-dev.15`.
|
||||||
|
|
||||||
# 2.0.0-alpha
|
## 2.0.0-alpha
|
||||||
Dart 2 update.
|
|
||||||
|
Dart 2 update.
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
# angel3_migration
|
# Angel3 Migration
|
||||||
|
|
||||||
[](https://pub.dartlang.org/packages/angel3_migration)
|
[](https://pub.dartlang.org/packages/angel3_migration)
|
||||||
[](https://dart.dev/null-safety)
|
[](https://dart.dev/null-safety)
|
||||||
[](https://gitter.im/angel_dart/discussion)
|
[](https://gitter.im/angel_dart/discussion)
|
||||||
|
|
||||||
[](https://github.com/dukefirehawk/angel/tree/angel3/packages/orm/angel_migration/LICENSE)
|
[](https://github.com/dukefirehawk/angel/tree/angel3/packages/orm/angel_migration/LICENSE)
|
||||||
|
|
||||||
A PostgreSQL database migration framework built on Angel's ORM.
|
A database migration framework built for Angel3 ORM
|
||||||
|
|
||||||
|
Supported database:
|
||||||
|
|
||||||
|
* postgresql version 9, 10, 11 and 12
|
||||||
|
|
|
@ -3,22 +3,25 @@ import 'package:angel3_orm/angel3_orm.dart';
|
||||||
class MigrationColumn extends Column {
|
class MigrationColumn extends Column {
|
||||||
final List<MigrationColumnReference> _references = [];
|
final List<MigrationColumnReference> _references = [];
|
||||||
late bool _nullable;
|
late bool _nullable;
|
||||||
IndexType? _index;
|
late IndexType _index;
|
||||||
dynamic _defaultValue;
|
dynamic _defaultValue;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool get isNullable => _nullable;
|
bool get isNullable => _nullable;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
IndexType get indexType => _index!;
|
IndexType get indexType => _index;
|
||||||
|
|
||||||
dynamic get defaultValue => _defaultValue;
|
dynamic get defaultValue => _defaultValue;
|
||||||
|
|
||||||
List<MigrationColumnReference> get externalReferences =>
|
List<MigrationColumnReference> get externalReferences =>
|
||||||
List<MigrationColumnReference>.unmodifiable(_references);
|
List<MigrationColumnReference>.unmodifiable(_references);
|
||||||
|
|
||||||
MigrationColumn(ColumnType? type,
|
MigrationColumn(ColumnType type,
|
||||||
{bool isNullable = true, int? length, IndexType? indexType, defaultValue})
|
{bool isNullable = true,
|
||||||
|
int length = 256,
|
||||||
|
IndexType indexType = IndexType.standardIndex,
|
||||||
|
defaultValue})
|
||||||
: super(type: type, length: length) {
|
: super(type: type, length: length) {
|
||||||
_nullable = isNullable;
|
_nullable = isNullable;
|
||||||
_index = indexType;
|
_index = indexType;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
name: angel3_migration
|
name: angel3_migration
|
||||||
version: 4.0.0-beta.2
|
version: 4.0.0-beta.3
|
||||||
description: Database migration runtime for Angel's ORM. Use this package to define schemas.
|
description: Database migration runtime for Angel3 ORM. Use this package to define schemas.
|
||||||
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/orm/angel_migration
|
homepage: https://angel3-framework.web.app/
|
||||||
|
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/orm/angel_migration
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in a new issue