Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
dba0c38a16 | |||
d8b0331d5e | |||
19362233f5 | |||
38941c37e8 |
2 changed files with 37 additions and 2 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.2.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>
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
<category>files</category>
|
<category>files</category>
|
||||||
<bugs>https://git.verdigado.com/verdigado-public/nextcloud_groupfolder_filesystem_snapshots/issues</bugs>
|
<bugs>https://git.verdigado.com/verdigado-public/nextcloud_groupfolder_filesystem_snapshots/issues</bugs>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<nextcloud min-version="28" max-version="28"/>
|
<nextcloud min-version="28" max-version="29"/>
|
||||||
<database>pgsql</database>
|
<database>pgsql</database>
|
||||||
<database>sqlite</database>
|
<database>sqlite</database>
|
||||||
<database>mysql</database>
|
<database>mysql</database>
|
||||||
|
|
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