From abe4a423c19db7abedd85283f0969a5f1a5e595b Mon Sep 17 00:00:00 2001 From: "ondrej.zara" Date: Tue, 9 Jun 2009 11:27:26 +0000 Subject: [PATCH] unique columns may create foreign keys, fixes #20 --HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4042 --- js/wwwsqldesigner.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index b411a68..51c39cd 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -430,6 +430,15 @@ SQL.Row.prototype.isPrimary = function() { return false; } +SQL.Row.prototype.isUnique = function() { + for (var i=0;i 1) { this.dom.title.removeChild(this.dom.title.childNodes[1]) } + while (this.dom.title.childNodes.length > 1) { this.dom.title.removeChild(this.dom.title.childNodes[1]); } var txt = OZ.DOM.text(title); this.dom.title.appendChild(txt);