1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Ensure Backup/Restore process section attachments

New DB column c_sectionid means something new to backup and restore.
This commit is contained in:
Harvey Kandola 2019-04-21 11:53:48 +01:00
parent 4de83beba4
commit 8e4ad6422b
4 changed files with 1139 additions and 1139 deletions

View file

@ -766,7 +766,7 @@ func (b backerHandler) dmzDocument(files *[]backupItem) (err error) {
at := []attachment.Attachment{}
err = b.Runtime.Db.Select(&at, `
SELECT id, c_refid AS refid,
c_orgid AS orgid, c_docid AS documentid, c_job AS job, c_fileid AS fileid,
c_orgid AS orgid, c_docid AS documentid, c_sectionid AS sectionid, c_job AS job, c_fileid AS fileid,
c_filename AS filename, c_data AS data, c_extension AS extension,
c_created AS created, c_revised AS revised
FROM dmz_doc_attachment`+w)