Moodle
  1. Moodle
  2. MDL-23590

cli scripts should handle config.php existing but no database

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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
    • Rank:
      27049

      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.

        Activity

        Hide
        Petr Škoda 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
        Petr Škoda 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
        Petr Škoda added a comment - - edited

        install_database.php probably

        Show
        Petr Škoda added a comment - - edited install_database.php probably
        Hide
        Petr Škoda added a comment -

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

        Show
        Petr Škoda 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: