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
11 changes: 6 additions & 5 deletions files/acp/database/install_com.woltlab.wcf.conversation.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

/**
* @author Tim Duesterhus
* @copyright 2001-2021 WoltLab GmbH
* @license WoltLab License <http://www.woltlab.com/license-agreement.html>
* @author Tim Duesterhus
* @copyright 2001-2025 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/

use wcf\system\database\table\column\DefaultFalseBooleanDatabaseTableColumn;
Expand All @@ -15,7 +15,6 @@
use wcf\system\database\table\column\NotNullVarchar255DatabaseTableColumn;
use wcf\system\database\table\column\ObjectIdDatabaseTableColumn;
use wcf\system\database\table\column\SmallintDatabaseTableColumn;
use wcf\system\database\table\column\TextDatabaseTableColumn;
use wcf\system\database\table\column\TinyintDatabaseTableColumn;
use wcf\system\database\table\column\VarcharDatabaseTableColumn;
use wcf\system\database\table\DatabaseTable;
Expand Down Expand Up @@ -57,7 +56,6 @@
MediumintDatabaseTableColumn::create('participants')
->notNull()
->defaultValue(0),
TextDatabaseTableColumn::create('participantSummary'),
DefaultFalseBooleanDatabaseTableColumn::create('participantCanInvite'),
DefaultFalseBooleanDatabaseTableColumn::create('isClosed'),
DefaultFalseBooleanDatabaseTableColumn::create('isDraft'),
Expand All @@ -83,6 +81,7 @@
]),
DatabaseTable::create('wcf1_conversation_to_user')
->columns([
ObjectIdDatabaseTableColumn::create('conversationParticipantID'),
NotNullInt10DatabaseTableColumn::create('conversationID'),
IntDatabaseTableColumn::create('participantID')
->length(10),
Expand All @@ -104,6 +103,8 @@
DefaultTrueBooleanDatabaseTableColumn::create('leftByOwnChoice'),
])
->indices([
DatabaseTablePrimaryIndex::create()
->columns(['conversationID']),
DatabaseTableIndex::create('participantID')
->columns(['participantID', 'conversationID'])
->type(DatabaseTableIndex::UNIQUE_TYPE),
Expand Down
27 changes: 27 additions & 0 deletions files/acp/database/update_com.woltlab.wcf.conversation_6.2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/**
* @author Marcel Werk
* @copyright 2001-2025 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/

use wcf\system\database\table\column\ObjectIdDatabaseTableColumn;
use wcf\system\database\table\column\TextDatabaseTableColumn;
use wcf\system\database\table\index\DatabaseTablePrimaryIndex;
use wcf\system\database\table\PartialDatabaseTable;

return [
PartialDatabaseTable::create('wcf1_conversation')
->columns([
TextDatabaseTableColumn::create('participantSummary')->drop(),
]),
PartialDatabaseTable::create('wcf1_conversation_to_user')
->columns([
ObjectIdDatabaseTableColumn::create('conversationParticipantID'),
])
->indices([
DatabaseTablePrimaryIndex::create()
->columns(['conversationParticipantID']),
]),
];

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

26 changes: 26 additions & 0 deletions files/js/WoltLabSuite/Core/Conversation/Component/MarkAsRead.js

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

35 changes: 0 additions & 35 deletions files/js/WoltLabSuite/Core/Conversation/Ui/MarkAsRead.js

This file was deleted.

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

Loading