Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • Formatting was changed.

...

Tip
titleKeeping your SVN install up to date

If you are running a version of CiviCRM that is under active development there will be periodic (possibly frequent) changes in the schema / database objects. An easy way to update your schema and the automatically created DAO files is to run the provided setup.sh shell script whenever you notice schema changes in svn updates (anytime a file in xml/schema is updated - you've gotten some kind of schema change). The script will generate a fresh copy of all the DAO's (running GenCode.php) as well as sql/civicrm.mysql and sql/civicrm_data.mysql - and then drop / rebuild your database.

Note

If this is an svn install from scratch and you decided to skip step 1 installing from a tarball first, then as of CiviCRM 4.3 note that setup.sh will fail at the end because it requires the civicrm module to be enabled already. Your installation may still work, but some features that depend on triggers or stored procedures may not.

 

Configure setup.sh (for CiviCRM < v4.3)

  • $ cp bin/setup.sh.txt bin/setup.sh
  • edit setup.sh - adding the correct values for DBNAME, DBUSER and DBPASS (for your CiviCRM database)
  • make sure setup.sh has execute permissions

Configure setup.conf (for CiviCRM >= v4.3)

  • $ cp bin/setup.conf.txt bin/setup.conf
  • edit setup.conf - adding the correct values for DBNAME, DBUSER and DBPASS (for your CiviCRM database)
  • make sure setup.sh has execute permissions

Run setup.sh

  • $ cd bin
  • $ ./setup.sh
Info
titlesetup.sh on Windows
You can't use setup.sh on Windows. You will need to manually run the commands as described in the document at the link above installing manually, but start down at step 6 there.