goby-database 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -590,6 +590,9 @@ class Project{
|
|
|
590
590
|
this.db.prepare(`DELETE FROM system_root WHERE id = ${id}`).run();
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
+
action_set_root_item_value(id,value){
|
|
594
|
+
this.db.prepare(`UPDATE system_root set value = ? WHERE id = ?`).run(value,id);
|
|
595
|
+
}
|
|
593
596
|
|
|
594
597
|
action_add_row(class_id,class_name){
|
|
595
598
|
//first add new row to root and get id
|
|
@@ -723,7 +726,7 @@ class Project{
|
|
|
723
726
|
let items=this.db.prepare(`SELECT system_root.*
|
|
724
727
|
FROM system_root
|
|
725
728
|
LEFT JOIN workspace_${id}
|
|
726
|
-
ON system_root.id =
|
|
729
|
+
ON system_root.id = workspace_${id}.concept_id
|
|
727
730
|
WHERE workspace_${id}.type = 'item';
|
|
728
731
|
`).all();
|
|
729
732
|
// get any relevant classes (going to hold off from this for now)
|