timestamp w/ tz
This commit is contained in:
parent
6468522b5a
commit
9d2829b34d
3 changed files with 3 additions and 1 deletions
|
@ -83,6 +83,7 @@ class ColumnType {
|
||||||
static const ColumnType DATE = const ColumnType('date');
|
static const ColumnType DATE = const ColumnType('date');
|
||||||
static const ColumnType TIME = const ColumnType('time');
|
static const ColumnType TIME = const ColumnType('time');
|
||||||
static const ColumnType TIME_STAMP = const ColumnType('timestamp');
|
static const ColumnType TIME_STAMP = const ColumnType('timestamp');
|
||||||
|
static const ColumnType TIME_STAMP_WITH_TIME_ZONE = const ColumnType('timestamp with time zone');
|
||||||
|
|
||||||
// Strings
|
// Strings
|
||||||
static const ColumnType CHAR = const ColumnType('char');
|
static const ColumnType CHAR = const ColumnType('char');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel_orm
|
name: angel_orm
|
||||||
version: 1.0.0-alpha+8
|
version: 1.0.0-alpha+9
|
||||||
description: Runtime support for Angel's ORM.
|
description: Runtime support for Angel's ORM.
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/orm
|
homepage: https://github.com/angel-dart/orm
|
||||||
|
|
|
@ -177,6 +177,7 @@ class MigrationGenerator extends GeneratorForAnnotation<ORM> {
|
||||||
literal(relationship.foreignTable),
|
literal(relationship.foreignTable),
|
||||||
literal(relationship.foreignKey),
|
literal(relationship.foreignKey),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (relationship.cascadeOnDelete != false && relationship.isSingular)
|
if (relationship.cascadeOnDelete != false && relationship.isSingular)
|
||||||
ref = ref.invoke('onDeleteCascade', []);
|
ref = ref.invoke('onDeleteCascade', []);
|
||||||
return closure.addStatement(ref);
|
return closure.addStatement(ref);
|
||||||
|
|
Loading…
Reference in a new issue