Reload sidebar if anything gets dropped/created

This commit is contained in:
Dan Sosedoff
2016-01-20 21:33:36 -06:00
parent eccb430a9b
commit 111d2cecf9

View File

@@ -493,9 +493,9 @@ function runQuery() {
$("#results").addClass("no-crop"); $("#results").addClass("no-crop");
} }
var re = /(create|drop) table/i; var re = /(create|drop)\s/i;
// Refresh tables list if table was added or removed // Reload objects list if anything was created/deleted
if (query.match(re)) { if (query.match(re)) {
loadSchemas(); loadSchemas();
} }