PHRAS-1055 #time 2h

- change lone argument (databox) to option "--databox" (mandatory)
- add option "--missing_only" to create missing subdefs after structure change.
- add option "--garbage_collect" to remove orphan subdefs left by structure change.
This commit is contained in:
Jean-Yves Gaulier
2016-03-31 19:30:11 +02:00
parent 81b636d4de
commit 4e37af6386
3 changed files with 76 additions and 17 deletions

View File

@@ -691,7 +691,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
}
$rs = $this->getDataboxConnection()->fetchAll(
'SELECT name FROM subdef s LEFT JOIN record r ON s.record_id = r.record_id WHERE r.record_id = :record_id',
'SELECT name FROM subdef WHERE record_id = :record_id',
['record_id' => $this->getRecordId()]
);