Overview
Comment: | Renommage du fichier de base de données |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
25db7dcbc2421a9140cea8274a98f6ef |
User & Date: | bohwaz on 2013-01-04 07:33:00 |
Other Links: | manifest | tags |
Context
2013-01-13
| ||
15:37 | Avancement sur les champs membres personnalisés + réflexion sur la suite des cotisations... check-in: 932ea4a33e user: bohwaz tags: trunk | |
2013-01-04
| ||
07:33 | Renommage du fichier de base de données check-in: 25db7dcbc2 user: bohwaz tags: trunk | |
07:16 | Passage du stockage des champs membres de JSON à INI, c'est plus intuitif quand même check-in: 21f2c46eb2 user: bohwaz tags: trunk | |
Changes
Modified include/init.php from [758771e85c] to [861ecaf607].
︙ | ︙ | |||
53 54 55 56 57 58 59 | if (!defined('GARRADIN_ROOT')) { define('GARRADIN_ROOT', dirname(__DIR__)); } if (!defined('GARRADIN_DB_FILE')) { | | | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | if (!defined('GARRADIN_ROOT')) { define('GARRADIN_ROOT', dirname(__DIR__)); } if (!defined('GARRADIN_DB_FILE')) { define('GARRADIN_DB_FILE', GARRADIN_ROOT . '/association.sqlite'); } if (!defined('GARRADIN_DB_SCHEMA')) { define('GARRADIN_DB_SCHEMA', GARRADIN_ROOT . '/include/data/schema.sql'); } |
︙ | ︙ |
Modified www/admin/install.php from [225d41a52b] to [36b266b4e9].
1 2 3 4 5 6 7 8 | <?php /* * Tests : vérification que les conditions pour s'exécuter sont remplies */ $tests = array( 'La version de PHP installée est inférieure à 5.3 !' => version_compare(phpversion(), '5.3', '<'), | > > | 1 2 3 4 5 6 7 8 9 10 | <?php namespace Garradin; /* * Tests : vérification que les conditions pour s'exécuter sont remplies */ $tests = array( 'La version de PHP installée est inférieure à 5.3 !' => version_compare(phpversion(), '5.3', '<'), |
︙ | ︙ | |||
37 38 39 40 41 42 43 | if (PHP_SAPI != 'cli') echo '</pre>'; exit; } | < < > | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | if (PHP_SAPI != 'cli') echo '</pre>'; exit; } define('GARRADIN_INSTALL_PROCESS', true); require_once __DIR__ . '/../../include/init.php'; $tpl = Template::getInstance(); if (file_exists(GARRADIN_DB_FILE)) { $tpl->assign('disabled', true); } else { |
︙ | ︙ |
Modified www/admin/upgrade.php from [21884f4944] to [356a7e6c9b].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <?php namespace Garradin; define('GARRADIN_UPGRADE_PROCESS', true); require_once __DIR__ . '/../../include/init.php'; if (!file_exists(GARRADIN_DB_FILE)) { utils::redirect('/admin/install.php'); } $config = Config::getInstance(); $v = $config->getVersion(); if (version_compare($v, garradin_version(), '>=')) { | > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <?php namespace Garradin; define('GARRADIN_UPGRADE_PROCESS', true); require_once __DIR__ . '/../../include/init.php'; if (!file_exists(GARRADIN_DB_FILE)) { // Renommage du fichier sqlite à la version 0.5.0 $old_file = str_replace('.sqlite', '.db', GARRADIN_DB_FILE); if (!file_exists($old_file)) { utils::redirect('/admin/install.php'); } else { rename($old_file, GARRADIN_DB_FILE); } } $config = Config::getInstance(); $v = $config->getVersion(); if (version_compare($v, garradin_version(), '>=')) { |
︙ | ︙ |