From 0c48f0c6f705e3fa56422d20ebe7a0f1aa524ea8 Mon Sep 17 00:00:00 2001 From: Gabri Di Stefano Date: Wed, 6 May 2015 21:28:30 +0200 Subject: [PATCH] Missing `readonly` on Property update --- lib/db/class/property.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/db/class/property.js b/lib/db/class/property.js index b512d56..e631b7a 100644 --- a/lib/db/class/property.js +++ b/lib/db/class/property.js @@ -214,6 +214,9 @@ Property.update = function (property, reload) { if (property.type !== undefined) { promises.push(this.db.exec(prefix + 'TYPE ' + property.type)); } + if (property.readonly !== undefined) { + promises.push(this.db.exec(prefix + 'READONLY ' + (property.readonly ? 'true' : 'false'))); + } if (property.mandatory !== undefined) { promises.push(this.db.exec(prefix + 'MANDATORY ' + (property.mandatory ? 'true' : 'false'))); }