Skip to content

Commit 398f37c

Browse files
committed
updated db schema
1 parent a5ca91b commit 398f37c

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

cassandra-schema.cql

+1
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,7 @@ CREATE TABLE galley_test.conversation (
16121612
access_role int,
16131613
access_roles_v2 set<int>,
16141614
cells_state int,
1615+
channel_add_permission int,
16151616
cipher_suite int,
16161617
creator uuid,
16171618
deleted boolean,

services/galley/galley.cabal

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ library
280280
Galley.Schema.V95_TeamFeatureDataMigrationState
281281
Galley.Schema.V96_GroupConversationType
282282
Galley.Schema.V97_CellsConversation
283+
Galley.Schema.V98_ChannelAddPermission
283284
Galley.Types.Clients
284285
Galley.Types.ToUserRole
285286
Galley.Types.UserList

services/galley/src/Galley/Schema/Run.hs

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ import Galley.Schema.V94_DomainRegistrationConfig qualified as V94_DomainRegistr
9898
import Galley.Schema.V95_TeamFeatureDataMigrationState qualified as V95_TeamFeatureDataMigrationState
9999
import Galley.Schema.V96_GroupConversationType qualified as V96_GroupConversationType
100100
import Galley.Schema.V97_CellsConversation qualified as V97_CellsConversation
101+
import Galley.Schema.V98_ChannelAddPermission qualified as V98_ChannelAddPermission
101102
import Imports
102103
import Options.Applicative
103104
import System.Logger.Extended qualified as Log
@@ -196,7 +197,8 @@ migrations =
196197
V94_DomainRegistrationConfig.migration,
197198
V95_TeamFeatureDataMigrationState.migration,
198199
V96_GroupConversationType.migration,
199-
V97_CellsConversation.migration
200+
V97_CellsConversation.migration,
201+
V98_ChannelAddPermission.migration
200202
-- FUTUREWORK: once #1726 has made its way to master/production,
201203
-- the 'message' field in connections table can be dropped.
202204
-- See also https://github.com/wireapp/wire-server/pull/1747/files
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
-- This file is part of the Wire Server implementation.
2+
--
3+
-- Copyright (C) 2023 Wire Swiss GmbH <[email protected]>
4+
--
5+
-- This program is free software: you can redistribute it and/or modify it under
6+
-- the terms of the GNU Affero General Public License as published by the Free
7+
-- Software Foundation, either version 3 of the License, or (at your option) any
8+
-- later version.
9+
--
10+
-- This program is distributed in the hope that it will be useful, but WITHOUT
11+
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12+
-- FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13+
-- details.
14+
--
15+
-- You should have received a copy of the GNU Affero General Public License along
16+
-- with this program. If not, see <https://www.gnu.org/licenses/>.
17+
module Galley.Schema.V98_ChannelAddPermission
18+
( migration,
19+
)
20+
where
21+
22+
import Cassandra.Schema
23+
import Imports
24+
import Text.RawString.QQ
25+
26+
migration :: Migration
27+
migration =
28+
Migration 98 "add column channel_add_permission to conversation" $ do
29+
schema'
30+
[r| ALTER TABLE conversation ADD (
31+
channel_add_permission int
32+
)
33+
|]

0 commit comments

Comments
 (0)