mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
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:
@@ -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()]
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user