Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
dba0c38a16 | |||
d8b0331d5e |
2 changed files with 36 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
<name>Groupfolder Filesystem Snapshots</name>
|
<name>Groupfolder Filesystem Snapshots</name>
|
||||||
<summary>Allows restoring a groupfolder to a previous snapshot in the filesystem</summary>
|
<summary>Allows restoring a groupfolder to a previous snapshot in the filesystem</summary>
|
||||||
<description>App proving a PHP API for other apps, that allows (partially) restoring a groupfolder to a previous snapshot in the filesystem. Requires a filesystem with snapshot support (tested with and made for ZFS). It is made for other apps to integrate with, IT DOES NOT WORK STANDALONE</description>
|
<description>App proving a PHP API for other apps, that allows (partially) restoring a groupfolder to a previous snapshot in the filesystem. Requires a filesystem with snapshot support (tested with and made for ZFS). It is made for other apps to integrate with, IT DOES NOT WORK STANDALONE</description>
|
||||||
<version>1.3.0</version>
|
<version>1.3.1</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author homepage="https://verdigado.com/">verdigado eG</author>
|
<author homepage="https://verdigado.com/">verdigado eG</author>
|
||||||
<author mail="jonathan.treffler@verdigado.com">Jonathan Treffler</author>
|
<author mail="jonathan.treffler@verdigado.com">Jonathan Treffler</author>
|
||||||
|
|
35
lib/Migration/Version131Date20250219152900.php
Normal file
35
lib/Migration/Version131Date20250219152900.php
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace OCA\GroupfolderFilesystemSnapshots\Migration;
|
||||||
|
|
||||||
|
use Closure;
|
||||||
|
use OCP\DB\ISchemaWrapper;
|
||||||
|
use OCP\Migration\SimpleMigrationStep;
|
||||||
|
use OCP\Migration\IOutput;
|
||||||
|
|
||||||
|
class Version131Date20250219152900 extends SimpleMigrationStep {
|
||||||
|
|
||||||
|
const RESULTS_TABLE = "groupfolder_snapshots_task_results";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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();
|
||||||
|
|
||||||
|
$table = $schema->getTable(self::RESULTS_TABLE);
|
||||||
|
|
||||||
|
$table->modifyColumn('before_path', [
|
||||||
|
'length' => 2000,
|
||||||
|
]);
|
||||||
|
$table->modifyColumn('current_path', [
|
||||||
|
'length' => 2000,
|
||||||
|
]);
|
||||||
|
|
||||||
|
return $schema;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue