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");