242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
|
$db->exec(file_get_contents(ROOT . '/include/data/0.7.2.sql'));
$db->exec('END;');
}
if (version_compare($v, '0.8.0', '<'))
{
$db->exec('PRAGMA foreign_keys = OFF; BEGIN;');
// Mise à jour base de données
$db->exec(file_get_contents(ROOT . '/include/data/0.8.0.sql'));
// Inscriptin de l'appid
$db->exec('PRAGMA application_id = ' . DB::APPID . ';');
$db->exec('END;');
}
Utils::clearCaches();
$config->setVersion(garradin_version());
echo '<h2>Mise à jour terminée.</h2>
|
|
>
>
|
>
>
|
<
|
>
|
|
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
|
$db->exec(file_get_contents(ROOT . '/include/data/0.7.2.sql'));
$db->exec('END;');
}
if (version_compare($v, '0.8.0', '<'))
{
$db->exec('PRAGMA foreign_keys = OFF;');
// Inscription de l'appid
$db->exec('PRAGMA application_id = ' . DB::APPID . ';');
$db->begin();
$db->import(ROOT . '/include/data/0.8.0.sql');
$db->commit();
// Nettoyage de la base de données
$db->exec('VACUUM;');
}
Utils::clearCaches();
$config->setVersion(garradin_version());
echo '<h2>Mise à jour terminée.</h2>
|