Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ addons:
apt:
packages:
- libxml2-utils

env:
global:
- CORE_BRANCH=master
- CORE_BRANCH=stable13
- APP_NAME=polls
matrix:
- DB=mysql
- DB=sqlite
- DB=pgsql
- DB=sqlite

cache:
directories:
Expand Down
8 changes: 4 additions & 4 deletions lib/Migration/Version009000Date20171202105141.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace OCA\Polls\Migration;

use Doctrine\DBAL\Types\Type;
use OC\DB\SchemaWrapper;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\SimpleMigrationStep;
use OCP\Migration\IOutput;

Expand All @@ -35,13 +35,13 @@ class Version009000Date20171202105141 extends SimpleMigrationStep {

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

if (!$schema->hasTable('polls_events')) {
Expand Down