123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- declare(strict_types=1);
- namespace OC\Core\Migrations;
- use Closure;
- use OCP\IDBConnection;
- use OCP\Migration\IOutput;
- use OCP\Migration\SimpleMigrationStep;
- class Version24000Date20211210141942 extends SimpleMigrationStep {
- public function __construct(
- protected IDBConnection $connection,
- ) {
- }
-
- public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
- $update = $this->connection->getQueryBuilder();
- $update->update('preferences')
- ->set('configvalue', $update->func()->lower('configvalue'))
- ->where($update->expr()->eq('appid', $update->createNamedParameter('settings')))
- ->andWhere($update->expr()->eq('configkey', $update->createNamedParameter('email')));
- $update->executeStatement();
- }
- }
|