Added ERD Diagram support with basic table fields, primary key, foreign key, and DDL SQL generation. Fixes #1802

This commit is contained in:
Aditya Toshniwal
2021-01-16 17:06:50 +05:30
committed by Akshay Joshi
parent 065bda37b4
commit 0c8226ff39
78 changed files with 9289 additions and 1472 deletions

View File

@@ -2651,6 +2651,12 @@ define('tools.querytool', [
}
});
} else if(url_params.sql_id) {
let sqlValue = localStorage.getItem(url_params.sql_id);
localStorage.removeItem(url_params.sql_id);
if(sqlValue) {
self.gridView.query_tool_obj.setValue(sqlValue);
}
}
}
else {
@@ -2668,7 +2674,7 @@ define('tools.querytool', [
},
set_value_to_editor: function(query) {
if (this.gridView && this.gridView.query_tool_obj && !_.isUndefined(query)) {
if (this.gridView && this.gridView.query_tool_obj && !_.isUndefined(query) && query != '') {
this.gridView.query_tool_obj.setValue(query);
}
},