Skip to content
Snippets Groups Projects
Commit 525a5ab4 authored by Antonin's avatar Antonin
Browse files

Merge branch 'Issue187' into 'develop'

Install framadate in non empty database

Modifications pour l'issue #187.

See merge request !139
parents 2b946dda f2562ce5
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class From_0_0_to_0_8_Migration implements Migration {
* @return bool true is the Migration should be executed.
*/
function preCondition(\PDO $pdo) {
$stmt = $pdo->query('SHOW TABLES');
$stmt = $pdo->query('SHOW TABLES like \'' . TABLENAME_PREFIX . '%\''); //issue187 : pouvoir installer framadate dans une base contenant d'autres tables.
$tables = $stmt->fetchAll(\PDO::FETCH_COLUMN);
// Check if there is no tables but the MIGRATION_TABLE one
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment