Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-23590

cli scripts should handle config.php existing but no database

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Installation
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      There are a lot of scenarios where config.php exists but there are no database tables (one example is debian packaging).

      There are a few different options:

      • install.php should either be split into createconfig.php and installdb.php,
      • upgrade.php should handle upgrading from 0
      • some of the code in install.php should be abstracted so it can be reused by a new script.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            skodak Petr Skoda added a comment -

            install.php and upgrade.php is going to be kept as is, instead I am going to add new script install_something.php that handles the installation when config.php exists and refactor the code from install.php a bit.

            Show
            skodak Petr Skoda added a comment - install.php and upgrade.php is going to be kept as is, instead I am going to add new script install_something.php that handles the installation when config.php exists and refactor the code from install.php a bit.
            Hide
            skodak Petr Skoda added a comment - - edited

            install_database.php probably

            Show
            skodak Petr Skoda added a comment - - edited install_database.php probably
            Hide
            skodak Petr Skoda added a comment -

            in cvs together with some other minor fixes, please test
            thanks for the report

            Show
            skodak Petr Skoda added a comment - in cvs together with some other minor fixes, please test thanks for the report

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10