* Init * Test fix * New sync implementation * misc * Includes migration and other servers sync * Misc * Migration fix * Migration is done version 7 * Update app/queries/servers/thread.ts Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/database/operator/server_data_operator/handlers/team_threads_sync.ts Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Feedback changes * Fixes when old thread gets a reply * Fix Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
77 lines
1.8 KiB
TypeScript
77 lines
1.8 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {AppSchema, appSchema} from '@nozbe/watermelondb';
|
|
|
|
import {
|
|
CategorySchema,
|
|
CategoryChannelSchema,
|
|
ChannelInfoSchema,
|
|
ChannelMembershipSchema,
|
|
ChannelSchema,
|
|
ConfigSchema,
|
|
CustomEmojiSchema,
|
|
DraftSchema,
|
|
FileSchema,
|
|
GroupSchema,
|
|
GroupChannelSchema,
|
|
GroupMembershipSchema,
|
|
GroupTeamSchema,
|
|
MyChannelSchema,
|
|
MyChannelSettingsSchema,
|
|
MyTeamSchema,
|
|
PostInThreadSchema,
|
|
PostSchema,
|
|
PostsInChannelSchema,
|
|
PreferenceSchema,
|
|
ReactionSchema,
|
|
RoleSchema,
|
|
SystemSchema,
|
|
TeamChannelHistorySchema,
|
|
TeamMembershipSchema,
|
|
TeamSchema,
|
|
TeamSearchHistorySchema,
|
|
ThreadSchema,
|
|
ThreadInTeamSchema,
|
|
ThreadParticipantSchema,
|
|
TeamThreadsSyncSchema,
|
|
UserSchema,
|
|
} from './table_schemas';
|
|
|
|
export const serverSchema: AppSchema = appSchema({
|
|
version: 7,
|
|
tables: [
|
|
CategorySchema,
|
|
CategoryChannelSchema,
|
|
ChannelInfoSchema,
|
|
ChannelMembershipSchema,
|
|
ChannelSchema,
|
|
ConfigSchema,
|
|
CustomEmojiSchema,
|
|
DraftSchema,
|
|
FileSchema,
|
|
GroupSchema,
|
|
GroupChannelSchema,
|
|
GroupMembershipSchema,
|
|
GroupTeamSchema,
|
|
MyChannelSchema,
|
|
MyChannelSettingsSchema,
|
|
MyTeamSchema,
|
|
PostInThreadSchema,
|
|
PostSchema,
|
|
PostsInChannelSchema,
|
|
PreferenceSchema,
|
|
ReactionSchema,
|
|
RoleSchema,
|
|
SystemSchema,
|
|
TeamChannelHistorySchema,
|
|
TeamMembershipSchema,
|
|
TeamSchema,
|
|
TeamSearchHistorySchema,
|
|
TeamThreadsSyncSchema,
|
|
ThreadSchema,
|
|
ThreadInTeamSchema,
|
|
ThreadParticipantSchema,
|
|
UserSchema,
|
|
],
|
|
});
|