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
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 🌉 **Sync with other chat solutions** With [Matterbridge](https://github.com/42wim/matterbridge/) being integrated in Talk, you can easily sync a lot of other chat solutions to Nextcloud Talk and vice-versa.
]]></description>

<version>25.0.1</version>
<version>25.0.2</version>
<licence>AGPL-3.0-or-later</licence>

<author>Christian Lorang</author>
Expand Down
5 changes: 5 additions & 0 deletions docs/changelogs/changelog-25.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## 25.0.2 – 2026-09-25
### Fixed
- fix(migration): Correctly check for Index rather than Constraint
[#19540](https://github.com/nextcloud/spreed/pull/19540)

## 25.0.1 – 2026-09-24
### Changed
- Update dependencies
Expand Down
1 change: 1 addition & 0 deletions lib/Migration/Version22001Date20250927174738.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/**
* Due to a missing return the migration content was never executed.
* The changes are reapplied in @see Version25000Date20260923155555
* and then again by @see Version25000Date20260925166666
*/
class Version22001Date20250927174738 extends SimpleMigrationStep {
}
32 changes: 4 additions & 28 deletions lib/Migration/Version25000Date20260923155555.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,11 @@

namespace OCA\Talk\Migration;

use Closure;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
use Override;

/**
* Replacing @see Version22001Date20250927174738
* Replaced by @see Version25000Date20260925166666
*/
class Version25000Date20260923155555 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @param Closure(): ISchemaWrapper $schemaClosure
* @param array $options
* @return null|ISchemaWrapper
*/
#[Override]
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();

$changed = false;
$table = $schema->getTable('talk_thread_attendees');
if ($table->hasUniqueConstraint('tta_thread_attendee')) {
$table->removeUniqueConstraint('tta_thread_attendee');
$changed = true;
}
if (!$table->hasUniqueConstraint('tta_throom_attendee')) {
$table->addUniqueIndex(['thread_id', 'room_id', 'actor_type', 'actor_id'], 'tta_throom_attendee');
$changed = true;
}

return $changed ? $schema : null;
}
}
47 changes: 47 additions & 0 deletions lib/Migration/Version25000Date20260925166666.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

declare(strict_types=1);

/**
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Talk\Migration;

use Closure;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
use Override;

/**
* Replacing @see Version25000Date20260923155555
* and @see Version22001Date20250927174738
*/
class Version25000Date20260925166666 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @param Closure(): ISchemaWrapper $schemaClosure
* @param array $options
* @return null|ISchemaWrapper
*/
#[Override]
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();

$changed = false;
$table = $schema->getTable('talk_thread_attendees');
if ($table->hasIndex('tta_thread_attendee')) {
$table->dropIndex('tta_thread_attendee');
$changed = true;
}
if (!$table->hasIndex('tta_throom_attendee')) {
$table->addUniqueIndex(['thread_id', 'room_id', 'actor_type', 'actor_id'], 'tta_throom_attendee');
$changed = true;
}

return $changed ? $schema : null;
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "talk",
"version": "25.0.1",
"version": "25.0.2",
"private": true,
"description": "",
"license": "agpl",
Expand Down
Loading