MDL-78324 core: Convert core/tag to esm
[moodle.git] / backup / upgrade.txt
blob6fda6cb208a04bca125f38913db91c403d66324a
1 This files describes API changes in /backup/*,
2 information provided here is intended especially for developers.
4 === 4.3 ===
6 * The function get_async_backup_links_backup has a new param of $backupid and is part of a fix to
7   async backups (See MDL-69983).
8 * During restore the function create_included_users has been updated to convert backups containing
9   legacy MD5 hashed passwords to the new password hashing scheme (See MDL-79134).
11 === 4.1 ===
13 * The class core_backup\copy\copy in backup/util/ui/classes/copy.php has been deprecated, please use copy_helper
14   from backup/util/helper/copy_helper.class.php instead.
15 * The method set_copy() in backup/controller/base_controller.class.php has been deprecated, please use a restore
16   controller for storing copy information instead.
17 * The method get_copy() in backup/controller/base_controller.class.php has been deprecated, please use get_copy()
18   from backup/controller/restore_controller.class.php instead.
20 === 4.0 ===
22 * Backup UI labels now accept empty/whitespace-only contents.
24 === 3.11 ===
26  * New setting called "Include permission overrides" has been implemented. The default
27    settings is OFF for import, and ON for restore.
29 === 3.10 ===
31  * Local plugins can now hook into a backup and restore process of grade items by
32    using define_grade_item_plugin_structure method (See MDL-69418).
34 === 3.1 ===
36 * New close() method added to loggers so they can close any open resource. Previously
37   any backup and restore operation using the file logger may be leaving unclosed files.
38 * New destroy() method added to loggers, normally called from backup and restore controllers
39   own destroy() method to ensure that all references in the chained loggers are deleted
40   and any open resource within them is closed properly.
42 === 3.0 ===
44 * The backup_auto_keep setting, in automated backups configuration, is now
45   renamed to backup_auto_max_kept as part of a rationalise of naming (see MDL-50602)
47 === 2.6 ===
49 * The backup_controller_dbops::create_temptable_from_real_table()
50   method is not available anymore. Temp tables must be created
51   inline always.
53 * Using the info field from backup_ids_temp or backup_files_temp
54   must now go via backup_controller_dbops::decode_backup_temp_info() and
55   backup_controller_dbops::encode_backup_temp_info(). The implementation
56   of the encoding has changed.  These new functions encapsulate any future
57   changes to the encoding.
59 === 2.5 ===
61 * New optional param $sortby in backup set_source_table() allows to
62     specify the ORDER BY clause to be used. Previously it was required
63     to use the set_source_sql() more complex alternative in places
64     requiring ordering.
65 * The old 1.9 files backuplib.php, lib.php and restorelib.php and the bb directory,
66     (all under /backup) have been deleted and no code should rely on them anymore.
68 === 2.4 ===
70 * Since 2.3.1+ the backup file name schema has changed. The ID of the course will always be part of
71     the filename regardless of the setting 'backup_shortname'. See MDL-33812.
73 === 2.3 ===
75 * Since 2.3.1+ the backup file name schema has changed. The ID of the course will always be part of
76     the filename regardless of the setting 'backup_shortname'. See MDL-33812.
78 === 2.2 ===
80 * Since 2.2.4+ the backup file name schema has changed. The ID of the course will always be part of
81     the filename regardless of the setting 'backup_shortname'. See MDL-33812.