Moodle

Forbid installation of 1.8 if the DB isn't Unicode

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.8
  • Fix Version/s: 1.8
  • Component/s: Installation
  • Labels:
    None
  • Environment:
    Any
  • Database:
    Any
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE

Description

Once the 1.7 branch has been performed we must start to require DB being exclusively UTF-8 under Moodle 1.8 upwards.

This include, IMO, some different actions:

1) Modify install.php to erase the option of continue the installation with the DB not being UTF-8
2) Re-check DB encoding in the admin.php script (before commencing with tables generation)

Note that we can check that with the setup_is_unicodedb() function everywhere (plus some special checks to add to MSSQL DBs, because they NEVER run under UTF-8).

Issue Links

Activity

Hide
Yu Zhang added a comment -

Removed dbencodingtests in install.php as they no longer make sense; encoding check is forced during environment check anyway. Added code in admin/index.php before generating main tables to prevent installation if db is not already in unicode.

Show
Yu Zhang added a comment - Removed dbencodingtests in install.php as they no longer make sense; encoding check is forced during environment check anyway. Added code in admin/index.php before generating main tables to prevent installation if db is not already in unicode.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: