Moodle

Some user-related tables aren't in backup/restore

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7
  • Fix Version/s: 1.9
  • Component/s: Backup
  • Labels:
    None
  • Affected Branches:
    MOODLE_17_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

I was checking MDL-6854 when I "discovered" some new tables:

  • mdl_user_info_field
  • mdl_user_info_category
  • mdl_user_info_data

They seem to be there in order to support new field for the user profile (or something similar).

The question for this bug is... should all this information be supported by backup/restore? If not, NP. Else...

Activity

Hide
Yu Zhang added a comment -

If I remember correctly Shane said these fields won't be used in 1.7, but will be in for 1.8 ...

Show
Yu Zhang added a comment - If I remember correctly Shane said these fields won't be used in 1.7, but will be in for 1.8 ...
Hide
Martin Dougiamas added a comment -

Bumping to 1.8

Show
Martin Dougiamas added a comment - Bumping to 1.8
Hide
Martin Dougiamas added a comment -

Shane, have you had any thoughts about how backup/restore could/should work?

I think we talked about this and decided that

  • it worked fine already on the same server
  • didn't make a lot of sense on another server

yes?

Show
Martin Dougiamas added a comment - Shane, have you had any thoughts about how backup/restore could/should work? I think we talked about this and decided that
  • it worked fine already on the same server
  • didn't make a lot of sense on another server
yes?
Hide
Martin Dougiamas added a comment -

Thanks, Eloy! $

Show
Martin Dougiamas added a comment - Thanks, Eloy! $
Hide
Eloy Lafuente (stronk7) added a comment -

Oki, now both user profile fields and user tags are included in backup.

The strategy to restore (tomorrow) will be:

1-Only restore that info (both) when the user is being created.
2-Only restore user profile fileds if there is one profile field with the same name & type in destination server
3-Only restore user tags if tags are enable in destination server.

How does it sound? Ciao

Show
Eloy Lafuente (stronk7) added a comment - Oki, now both user profile fields and user tags are included in backup. The strategy to restore (tomorrow) will be: 1-Only restore that info (both) when the user is being created. 2-Only restore user profile fileds if there is one profile field with the same name & type in destination server 3-Only restore user tags if tags are enable in destination server. How does it sound? Ciao
Hide
Martin Dougiamas added a comment -

Sounds perfect! +1 thanks!

Show
Martin Dougiamas added a comment - Sounds perfect! +1 thanks!
Hide
Eloy Lafuente (stronk7) added a comment -

Done, the logic above is now implemented in 19_STABLE and HEAD.

Closing. Ciao

Show
Eloy Lafuente (stronk7) added a comment - Done, the logic above is now implemented in 19_STABLE and HEAD. Closing. Ciao

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: