Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6586

Restore file ID number from backup

$
0
0
by Eramir Rasvet.  

Hello!

When I make backup of my module files, I use this line:

$voiceshadow->annotate_files('mod_voiceshadow', 'private', null);

How can I update old ID numbers to new when I make restoring from backup?

For userID I use this line

$data->teacher = $this->get_mappingid('user', $data->teacher);

Should I use this line for updating file IDs?

$data->fileid = $this->get_mappingid('file', $data->fileid);



Viewing all articles
Browse latest Browse all 6586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>