-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Peertube] updater video controls (#2753)
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 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
32 changes: 32 additions & 0 deletions
32
src/integration/peertube/Installation/Updater/Updater141000.php
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,32 @@ | ||
<?php | ||
|
||
namespace Claroline\PeerTubeBundle\Installation\Updater; | ||
|
||
use Claroline\InstallationBundle\Updater\Updater; | ||
use Doctrine\DBAL\Connection; | ||
use Doctrine\DBAL\Exception; | ||
|
||
class Updater141000 extends Updater | ||
{ | ||
private Connection $connection; | ||
|
||
public function __construct( | ||
Connection $connection | ||
) { | ||
$this->connection = $connection; | ||
} | ||
|
||
/** | ||
* @throws Exception | ||
*/ | ||
public function postUpdate(): void | ||
{ | ||
$updateControls = $this->connection->prepare(' | ||
UPDATE claro_peertube_video | ||
AS ptv | ||
SET ptv.controls = true | ||
'); | ||
|
||
$updateControls->executeQuery(); | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/integration/peertube/Resources/config/services/updater.yml
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,7 @@ | ||
services: | ||
_defaults: | ||
tags: [ 'claroline.platform.updater' ] | ||
|
||
Claroline\PeerTubeBundle\Installation\Updater\Updater141000: | ||
arguments: | ||
- '@doctrine.dbal.default_connection' |