mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 07:56:28 +00:00
refDeleteAction, refUpdateAction
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
"build:web:docker": "yarn workspace dbgate-web build",
|
"build:web:docker": "yarn workspace dbgate-web build",
|
||||||
"build:plugins:frontend": "workspaces-run --only=\"dbgate-plugin-*\" -- yarn build:frontend",
|
"build:plugins:frontend": "workspaces-run --only=\"dbgate-plugin-*\" -- yarn build:frontend",
|
||||||
"build:plugins:frontend:watch": "workspaces-run --parallel --only=\"dbgate-plugin-*\" -- yarn build:frontend:watch",
|
"build:plugins:frontend:watch": "workspaces-run --parallel --only=\"dbgate-plugin-*\" -- yarn build:frontend:watch",
|
||||||
"storage-json": "dbmodel model-to-json storage-db packages/api/src/storageModel.json",
|
"storage-json": "dbmodel model-to-json storage-db packages/api/src/storageModel.js --commonjs",
|
||||||
"plugins:copydist": "workspaces-run --only=\"dbgate-plugin-*\" -- yarn copydist",
|
"plugins:copydist": "workspaces-run --only=\"dbgate-plugin-*\" -- yarn copydist",
|
||||||
"build:app:local": "yarn plugins:copydist && cd app && yarn build:local",
|
"build:app:local": "yarn plugins:copydist && cd app && yarn build:local",
|
||||||
"start:app:local": "cd app && yarn start:local",
|
"start:app:local": "cd app && yarn start:local",
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ export interface ColumnInfoYaml {
|
|||||||
length?: number;
|
length?: number;
|
||||||
autoIncrement?: boolean;
|
autoIncrement?: boolean;
|
||||||
references?: string;
|
references?: string;
|
||||||
|
refDeleteAction?: string;
|
||||||
|
refUpdateAction?: string;
|
||||||
primaryKey?: boolean;
|
primaryKey?: boolean;
|
||||||
default?: string;
|
default?: string;
|
||||||
}
|
}
|
||||||
@@ -104,6 +106,8 @@ function convertForeignKeyFromYaml(
|
|||||||
constraintType: 'foreignKey',
|
constraintType: 'foreignKey',
|
||||||
pureName: table.name,
|
pureName: table.name,
|
||||||
refTableName: col.references,
|
refTableName: col.references,
|
||||||
|
deleteAction: col.refDeleteAction,
|
||||||
|
updateAction: col.refUpdateAction,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
columnName: col.name,
|
columnName: col.name,
|
||||||
|
|||||||
@@ -188,6 +188,7 @@
|
|||||||
'img app-query': 'mdi mdi-view-comfy color-icon-magenta',
|
'img app-query': 'mdi mdi-view-comfy color-icon-magenta',
|
||||||
'img connection': 'mdi mdi-connection color-icon-blue',
|
'img connection': 'mdi mdi-connection color-icon-blue',
|
||||||
'img profiler': 'mdi mdi-gauge color-icon-blue',
|
'img profiler': 'mdi mdi-gauge color-icon-blue',
|
||||||
|
'img users': 'mdi mdi-account-multiple color-icon-blue',
|
||||||
'img role': 'mdi mdi-account-group color-icon-blue',
|
'img role': 'mdi mdi-account-group color-icon-blue',
|
||||||
'img admin': 'mdi mdi-security color-icon-blue',
|
'img admin': 'mdi mdi-security color-icon-blue',
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user