@nyffels/mynodeorm
Advanced tools
Comparing version 1.0.0-alpha64 to 1.0.0-alpha65
@@ -35,3 +35,3 @@ import 'reflect-metadata'; | ||
}; | ||
export declare function foreignKey<T>(table: T, column: keyof T, onDelete: ForeignKeyOption.Restrict, onUpdate?: ForeignKeyOption): { | ||
export declare function foreignKey<T>(table: T, column: keyof T, onDelete?: ForeignKeyOption, onUpdate?: ForeignKeyOption): { | ||
(target: Function): void; | ||
@@ -38,0 +38,0 @@ (target: Object, propertyKey: string | symbol): void; |
@@ -52,3 +52,3 @@ "use strict"; | ||
} | ||
function foreignKey(table, column, onDelete, onUpdate = ForeignKeyOption.Restrict) { | ||
function foreignKey(table, column, onDelete = ForeignKeyOption.Restrict, onUpdate = ForeignKeyOption.Restrict) { | ||
return Reflect.metadata(foreignKeyMetaDatakey, JSON.stringify({ table, column, onDelete, onUpdate })); | ||
@@ -55,0 +55,0 @@ } |
{ | ||
"name": "@nyffels/mynodeorm", | ||
"version": "1.0.0-alpha64", | ||
"version": "1.0.0-alpha65", | ||
"description": "A full-fledged ORM framework for NodeJS and MySQL with develop friendly code aimed to handle database migrations, MySQL Query builder / helper and property mapping.", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
111547