diff --git a/appinfo/info.xml b/appinfo/info.xml index 2ae9761e05a..4de99f98a38 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -11,7 +11,7 @@ - **💾 Open format:** Files are saved as [Markdown](https://en.wikipedia.org/wiki/Markdown), so you can edit them from any other text app too. - **✊ Strong foundation:** We use [🐈 tiptap](https://tiptap.scrumpy.io) which is based on [🦉 ProseMirror](https://prosemirror.net) – huge thanks to them! ]]> - 3.9.0 + 3.9.1 agpl Julius Härtl Text diff --git a/composer/composer/autoload_classmap.php b/composer/composer/autoload_classmap.php index 12a05698cd5..1a882d0c791 100644 --- a/composer/composer/autoload_classmap.php +++ b/composer/composer/autoload_classmap.php @@ -49,6 +49,7 @@ 'OCA\\Text\\Migration\\ResetSessionsBeforeYjs' => $baseDir . '/../lib/Migration/ResetSessionsBeforeYjs.php', 'OCA\\Text\\Migration\\Version010000Date20190617184535' => $baseDir . '/../lib/Migration/Version010000Date20190617184535.php', 'OCA\\Text\\Migration\\Version030001Date20200402075029' => $baseDir . '/../lib/Migration/Version030001Date20200402075029.php', + 'OCA\\Text\\Migration\\Version03009Date20231114150437' => $baseDir . '/../lib/Migration/Version03009Date20231114150437.php', 'OCA\\Text\\Migration\\Version030201Date20201116110353' => $baseDir . '/../lib/Migration/Version030201Date20201116110353.php', 'OCA\\Text\\Migration\\Version030201Date20201116123153' => $baseDir . '/../lib/Migration/Version030201Date20201116123153.php', 'OCA\\Text\\Migration\\Version030501Date20220202101853' => $baseDir . '/../lib/Migration/Version030501Date20220202101853.php', diff --git a/composer/composer/autoload_static.php b/composer/composer/autoload_static.php index 4d34f834925..30d9fde4c2a 100644 --- a/composer/composer/autoload_static.php +++ b/composer/composer/autoload_static.php @@ -64,6 +64,7 @@ class ComposerStaticInitText 'OCA\\Text\\Migration\\ResetSessionsBeforeYjs' => __DIR__ . '/..' . '/../lib/Migration/ResetSessionsBeforeYjs.php', 'OCA\\Text\\Migration\\Version010000Date20190617184535' => __DIR__ . '/..' . '/../lib/Migration/Version010000Date20190617184535.php', 'OCA\\Text\\Migration\\Version030001Date20200402075029' => __DIR__ . '/..' . '/../lib/Migration/Version030001Date20200402075029.php', + 'OCA\\Text\\Migration\\Version03009Date20231114150437' => __DIR__ . '/..' . '/../lib/Migration/Version03009Date20231114150437.php', 'OCA\\Text\\Migration\\Version030201Date20201116110353' => __DIR__ . '/..' . '/../lib/Migration/Version030201Date20201116110353.php', 'OCA\\Text\\Migration\\Version030201Date20201116123153' => __DIR__ . '/..' . '/../lib/Migration/Version030201Date20201116123153.php', 'OCA\\Text\\Migration\\Version030501Date20220202101853' => __DIR__ . '/..' . '/../lib/Migration/Version030501Date20220202101853.php', diff --git a/lib/Migration/Version03009Date20231114150437.php b/lib/Migration/Version03009Date20231114150437.php new file mode 100644 index 00000000000..327fd05dbad --- /dev/null +++ b/lib/Migration/Version03009Date20231114150437.php @@ -0,0 +1,46 @@ + + * + * @authorJulius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +namespace OCA\Text\Migration; + +use Closure; +use OCP\DB\ISchemaWrapper; +use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; + +class Version03009Date20231114150437 extends SimpleMigrationStep { + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { + $schema = $schemaClosure(); + if ($schema->hasTable('text_steps')) { + $table = $schema->getTable('text_steps'); + if ($table->hasIndex('ts_session')) { + $table->dropIndex('ts_session'); + return $schema; + } + } + return null; + } +}