Updated angel_migration

This commit is contained in:
thomashii 2021-07-19 12:32:45 +08:00
parent cd5c120f8f
commit 7d815a2aa0
4 changed files with 40 additions and 17 deletions

View file

@ -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
# 4.0.0-beta.1
## 4.0.0-beta.1
* 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
# 2.0.0
## 2.0.0
* Bump to `2.0.0`.
# 2.0.0-rc.0
## 2.0.0-rc.0
* 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`.
# 2.0.0-alpha
Dart 2 update.
## 2.0.0-alpha
Dart 2 update.

View file

@ -1,8 +1,13 @@
# angel3_migration
# Angel3 Migration
[![version](https://img.shields.io/badge/pub-v4.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_migration)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](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

View file

@ -3,22 +3,25 @@ import 'package:angel3_orm/angel3_orm.dart';
class MigrationColumn extends Column {
final List<MigrationColumnReference> _references = [];
late bool _nullable;
IndexType? _index;
late IndexType _index;
dynamic _defaultValue;
@override
bool get isNullable => _nullable;
@override
IndexType get indexType => _index!;
IndexType get indexType => _index;
dynamic get defaultValue => _defaultValue;
List<MigrationColumnReference> get externalReferences =>
List<MigrationColumnReference>.unmodifiable(_references);
MigrationColumn(ColumnType? type,
{bool isNullable = true, int? length, IndexType? indexType, defaultValue})
MigrationColumn(ColumnType type,
{bool isNullable = true,
int length = 256,
IndexType indexType = IndexType.standardIndex,
defaultValue})
: super(type: type, length: length) {
_nullable = isNullable;
_index = indexType;

View file

@ -1,7 +1,8 @@
name: angel3_migration
version: 4.0.0-beta.2
description: Database migration runtime for Angel's ORM. Use this package to define schemas.
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/orm/angel_migration
version: 4.0.0-beta.3
description: Database migration runtime for Angel3 ORM. Use this package to define schemas.
homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/orm/angel_migration
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies: