-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Training] displays duration in hours
- Loading branch information
Showing
6 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Claroline\CursusBundle\Installation\Updater; | ||
|
||
use Claroline\InstallationBundle\Updater\Updater; | ||
use Doctrine\DBAL\Connection; | ||
|
||
class Updater130800 extends Updater | ||
{ | ||
private Connection $connection; | ||
|
||
public function __construct( | ||
Connection $connection | ||
) { | ||
$this->connection = $connection; | ||
} | ||
|
||
public function preUpdate(): void | ||
{ | ||
$this->connection->executeQuery('UPDATE claro_cursusbundle_course SET session_duration = (session_duration * 24) WHERE session_duration IS NOT NULL'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
services: | ||
_defaults: | ||
tags: [ 'claroline.platform.updater' ] | ||
|
||
Claroline\CursusBundle\Installation\Updater\Updater130001: | ||
arguments: | ||
- '@Claroline\AppBundle\Persistence\ObjectManager' | ||
- '@logger' | ||
tags: ['claroline.platform.updater'] | ||
|
||
Claroline\CursusBundle\Installation\Updater\Updater130013: | ||
arguments: | ||
- '@Claroline\AppBundle\Persistence\ObjectManager' | ||
- '@Claroline\CoreBundle\Manager\PlanningManager' | ||
tags: [ 'claroline.platform.updater' ] | ||
|
||
Claroline\CursusBundle\Installation\Updater\Updater130100: | ||
arguments: | ||
- '@Claroline\AppBundle\Persistence\ObjectManager' | ||
tags: [ 'claroline.platform.updater' ] | ||
|
||
Claroline\CursusBundle\Installation\Updater\Updater130800: | ||
arguments: | ||
- '@doctrine.dbal.default_connection' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters