From 968219a2e965bd87dabde78606b1978c03a2fc17 Mon Sep 17 00:00:00 2001 From: "ondrej.zara" Date: Fri, 9 Apr 2010 06:46:01 +0000 Subject: [PATCH] #90 multifield sqlite PKs; sqlite FKs; bugfix in css class 'key' --HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%40101 --- db/sqlite/output.xsl | 40 +++++++++++++++++++++++++++------------- js/wwwsqldesigner.js | 1 + 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/db/sqlite/output.xsl b/db/sqlite/output.xsl index f134459..32c5ffe 100644 --- a/db/sqlite/output.xsl +++ b/db/sqlite/output.xsl @@ -10,50 +10,65 @@ ( + + - - NOT NULL + NOT NULL - DEFAULT + DEFAULT - - + - + - PRIMARY KEY + PRIMARY KEY - AUTOINCREMENT + AUTOINCREMENT + + + REFERENCES + + ( + + ) + + + + , - + - + , - UNIQUE ( + + PRIMARY KEY + UNIQUE + + ( @@ -73,7 +88,6 @@ - @@ -95,4 +109,4 @@ - \ No newline at end of file + diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index f4df04c..6ab249f 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -270,6 +270,7 @@ SQL.Row.prototype.redraw = function() { var color = this.getColor(); this.dom.container.style.backgroundColor = color; OZ.DOM.removeClass(this.dom.container,"primary"); + OZ.DOM.removeClass(this.dom.container,"key"); if (this.isPrimary()) { OZ.DOM.addClass(this.dom.container,"primary"); } if (this.isKey()) { OZ.DOM.addClass(this.dom.container,"key"); } this.dom.selected.style.display = (this.selected ? "" : "none");