Skip to content

Commit

Permalink
3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Aug 19, 2021
1 parent 6583055 commit dee004f
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,7 +1,7 @@
# Changelog
All notable changes to the Audio Player project will be documented in this file.

## 3.2.0 - 2021-08-xx
## 3.2.0 - 2021-08-19
### Added
- NC22
- Dashboard Widget [#548](https://github.com/rello/audioplayer/issues/548)
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Expand Up @@ -16,7 +16,7 @@
- [ID3 editor](https://github.com/rello/audioplayer_editor) via add-on
See [README](https://github.com/rello/audioplayer/blob/master/README.md) file for all supported MIME types and additional information.]]></description>
<version>3.1.0</version>
<version>3.2.0</version>
<licence>agpl</licence>
<author>Marcel Scherello</author>
<namespace>audioplayer</namespace>
Expand Down
68 changes: 68 additions & 0 deletions lib/Migration/Version3002Date20210019213332.php
@@ -0,0 +1,68 @@
<?php

declare(strict_types=1);

namespace OCA\audioplayer\Migration;

use Closure;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
use OCP\IDBConnection;

/**
* Auto-generated migration step: Please modify to your needs!
*/
class Version3002Date20210019213332 extends SimpleMigrationStep
{

/** @var IDBConnection */
private $connection;

public function __construct(IDBConnection $connection)
{
$this->connection = $connection;
}

/**
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
*/
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options)
{
}

/**
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
* @return null|ISchemaWrapper
*/
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options)
{
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();

return $schema;
}

/**
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
*/
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options)
{
$query = $this->connection->getQueryBuilder();
$query->insert('audioplayer_whats_new')
->values([
'version' => $query->createNamedParameter('2.11.0'),
'data' => $query->createNamedParameter('{"changelogURL":"https:\/\/github.com\/rello\/audioplayer\/blob\/master\/CHANGELOG.md","whatsNew":{
"en":{"regular":["Collaborative tags support","Dashboard widget"],"admin":["New Features apply to users"]},
"de":{"regular":["Collaborative tags support","Dashboard widget"],"admin":["Nur User Features"]}
}}'),
])
->execute();
}
}

0 comments on commit dee004f

Please sign in to comment.