|
@@ -2077,6 +2077,7 @@ function installSettings(
|
|
* @param string $chamiloVersion
|
|
* @param string $chamiloVersion
|
|
* @param EntityManager $manager
|
|
* @param EntityManager $manager
|
|
* @throws \Doctrine\DBAL\DBALException
|
|
* @throws \Doctrine\DBAL\DBALException
|
|
|
|
+ * @return bool
|
|
*/
|
|
*/
|
|
function migrate($chamiloVersion, EntityManager $manager)
|
|
function migrate($chamiloVersion, EntityManager $manager)
|
|
{
|
|
{
|
|
@@ -2106,7 +2107,6 @@ function migrate($chamiloVersion, EntityManager $manager)
|
|
$to = null; // if $to == null then schema will be migrated to latest version
|
|
$to = null; // if $to == null then schema will be migrated to latest version
|
|
|
|
|
|
echo "<pre>";
|
|
echo "<pre>";
|
|
-
|
|
|
|
try {
|
|
try {
|
|
// Execute migration!
|
|
// Execute migration!
|
|
$migratedSQL = $migration->migrate($to);
|
|
$migratedSQL = $migration->migrate($to);
|
|
@@ -2747,9 +2747,9 @@ function finishInstallation(
|
|
$sysPath = !empty($sysPath) ? $sysPath : api_get_path(SYS_PATH);
|
|
$sysPath = !empty($sysPath) ? $sysPath : api_get_path(SYS_PATH);
|
|
|
|
|
|
$connection = $manager->getConnection();
|
|
$connection = $manager->getConnection();
|
|
-
|
|
|
|
|
|
+ $sql = getVersionTable();
|
|
// Add version table
|
|
// Add version table
|
|
- $connection->executeQuery('CREATE TABLE IF NOT EXISTS version (id int unsigned NOT NULL AUTO_INCREMENT, version varchar(20), PRIMARY KEY(id), UNIQUE(version))');
|
|
|
|
|
|
+ $connection->executeQuery($sql);
|
|
|
|
|
|
// Add tickets defaults
|
|
// Add tickets defaults
|
|
$ticketProject = new TicketProject();
|
|
$ticketProject = new TicketProject();
|