MDL-22151 backup - clean old data backup & restore code
[moodle.git] / mod / data / restorelib.php
CommitLineData
bd7a95dd 1<?php
c65d1af5 2//This php script contains all the stuff to backup/restore data mod
1ecea976 3
c65d1af5 4 //This is the "graphical" structure of the data mod:
816039b5 5 //
6 // data
7 // (CL,pk->id)
8 // |
9 // |
10 // |
11 // ---------------------------------------------------------------------------------
12 // | |
13 //data_records (UL,pk->id, fk->data) data_fields (pk->id, fk->data)
14 // | |
15 // | |
16 // ----------------------------------------------------------------------------- |
17 // | | | |
18 //data_ratings(fk->recordid, pk->id) data_comments (fk->recordid, pk->id) | |
19 // data_content(pk->id, fk->recordid, fk->fieldid)
20 //
21 //
22 //
23 // Meaning: pk->primary key field of the table
24 // fk->foreign key to link with parent
25 // nt->nested field (recursive data)
26 // CL->course level info
27 // UL->user level info
28 // files->table may have files)
29 //
30 //-----------------------------------------------------------
31
bd7a95dd
EL
32// !! data module never has had this in previous versions of restore. Amazing!
33function data_restore_logs($restore,$log) {
34 // nothing here, just a reminder for work todo in 2.0
e3f042fb 35}