Browse Source

paths of migration changed

feature/refractoring
Paul Rock 7 years ago committed by Chocobozzz
parent
commit
0c0cba75f8
  1. 14
      scripts/migration.php

14
scripts/migration.php

@ -7,9 +7,9 @@
$www = $argv[1];
require("$www/include/config.php");
require("$www/include/connect.php");
require("$www/include/functions.php");
require("$www/app/config.php");
require("$www/app/connect.php");
require("$www/app/functions.php");
$migrations = getMigrationSchemas();
@ -22,8 +22,7 @@
if ($data['sql_schema']) {
$sql_schema = $data['sql_schema'];
}
}
// Table does not exist
} // Table does not exist
catch (Exception $e) {
$sql_schema = -1;
}
@ -39,8 +38,7 @@
try {
$sql = file_get_contents($sql_file);
$bdd->exec($sql);
}
catch (PDOException $e) {
} catch (PDOException $e) {
printError($e->getMessage());
exit(1);
}
@ -51,5 +49,3 @@
echo "Moved to schema $migration_value\n";
}
}
?>

Loading…
Cancel
Save