mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
refDeleteAction, refUpdateAction
This commit is contained in:
@@ -11,6 +11,8 @@ export interface ColumnInfoYaml {
|
||||
length?: number;
|
||||
autoIncrement?: boolean;
|
||||
references?: string;
|
||||
refDeleteAction?: string;
|
||||
refUpdateAction?: string;
|
||||
primaryKey?: boolean;
|
||||
default?: string;
|
||||
}
|
||||
@@ -104,6 +106,8 @@ function convertForeignKeyFromYaml(
|
||||
constraintType: 'foreignKey',
|
||||
pureName: table.name,
|
||||
refTableName: col.references,
|
||||
deleteAction: col.refDeleteAction,
|
||||
updateAction: col.refUpdateAction,
|
||||
columns: [
|
||||
{
|
||||
columnName: col.name,
|
||||
|
||||
Reference in New Issue
Block a user