Skip to content

Commit

Permalink
fix php5 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Aug 9, 2018
1 parent d219766 commit b5c77c5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/Migration/Version103000Date20180806161724.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace OCA\GroupFolders\Migration;

use OCP\DB\ISchemaWrapper;
Expand All @@ -16,14 +17,6 @@ public function __construct(IDBConnection $connection) {
$this->connection = $connection;
}

public function name(): string {
return 'rename "group_folders_applicable" to "group_folders_groups"';
}

public function description(): string {
return 'rename "group_folders_applicable" to fit within oracle limitations';
}

public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
Expand Down Expand Up @@ -84,7 +77,7 @@ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array
'permissions' => $query->createParameter('permissions')
]);

foreach($this->applicableData as $data) {
foreach ($this->applicableData as $data) {
$query->setParameter('folder', $data['folder_id']);
$query->setParameter('group', $data['group_id']);
$query->setParameter('permissions', $data['permissions']);
Expand Down

0 comments on commit b5c77c5

Please sign in to comment.