Allow the referenced table to be the same as the local table in one to many relationship for ERD Tool. Fixes #6495

This commit is contained in:
Aditya Toshniwal 2021-08-24 18:19:03 +05:30 committed by Akshay Joshi
parent 7efef73ff7
commit 94b40775a1
2 changed files with 1 additions and 3 deletions

View File

@ -11,6 +11,7 @@ New features
| `Issue #4264 <https://redmine.postgresql.org/issues/4264>`_ - Make code folding case insensitive in the code mirror.
| `Issue #4629 <https://redmine.postgresql.org/issues/4629>`_ - Added database and server information on the Maintenance process watcher dialog.
| `Issue #6495 <https://redmine.postgresql.org/issues/6495>`_ - Allow the referenced table to be the same as the local table in one to many relationship for ERD Tool.
| `Issue #6691 <https://redmine.postgresql.org/issues/6691>`_ - Set PSQLRC and PSQL_HISTORY env vars to apt. user storage path in the server mode.
Housekeeping

View File

@ -63,9 +63,6 @@ export default class OneToManyDialog {
editable: true, options: (view)=>{
let retOpts = [];
_.forEach(tableNodesDict, (node, uid)=>{
if(uid === view.model.get('local_table_uid')) {
return;
}
let [schema, name] = node.getSchemaTableName();
retOpts.push({value: uid, label: `(${schema}) ${name}`});
});