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'))); }