增加群聊置顶、免打扰和应用内提醒
This commit is contained in:
1 parent
ced6e9030d
commit
f54077ce46
17 files changed
+228
-42
No files matched your search
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE group_members
|
||||
ADD COLUMN pinned boolean NOT NULL DEFAULT false,
|
||||
ADD COLUMN muted boolean NOT NULL DEFAULT false,
|
||||
ADD CHECK (state = 'active' OR (NOT pinned AND NOT muted));
|
||||
@@ -34,6 +34,9 @@ var groupTransportMigration string
|
||||
//go:embed 009_group_attachments.sql
|
||||
var groupAttachmentsMigration string
|
||||
|
||||
//go:embed 010_group_preferences.sql
|
||||
var groupPreferencesMigration string
|
||||
|
||||
func Migrate(ctx context.Context, pool *pgxpool.Pool) error {
|
||||
tx, err := pool.Begin(ctx)
|
||||
if err != nil {
|
||||
@@ -48,7 +51,7 @@ func Migrate(ctx context.Context, pool *pgxpool.Pool) error {
|
||||
}
|
||||
for index, migration := range []string{
|
||||
identityMigration, contactsMigration, deliveryMigration, keyPackagesMigration, mlsCredentialsMigration,
|
||||
attachmentsMigration, groupsMigration, groupTransportMigration, groupAttachmentsMigration,
|
||||
attachmentsMigration, groupsMigration, groupTransportMigration, groupAttachmentsMigration, groupPreferencesMigration,
|
||||
} {
|
||||
version := index + 1
|
||||
var applied bool
|
||||
|
||||
Reference in new issue
Block a user