2018-12-31 22:04:05 +03:00
|
|
|
//
|
2020-01-01 04:23:48 +03:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2020
|
2018-12-31 22:04:05 +03:00
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace td {
|
|
|
|
|
2020-05-29 11:26:08 +03:00
|
|
|
constexpr int32 MTPROTO_LAYER = 114;
|
2019-08-15 18:16:09 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
enum class Version : int32 {
|
|
|
|
Initial,
|
|
|
|
StoreFileId,
|
|
|
|
AddKeyHashToSecretChat,
|
|
|
|
AddDurationToAnimation,
|
|
|
|
FixStoreGameWithoutAnimation,
|
|
|
|
AddAccessHashToSecretChat,
|
|
|
|
StoreFileOwnerId,
|
|
|
|
StoreFileEncryptionKey,
|
|
|
|
NetStatsCountDuration,
|
|
|
|
FixWebPageInstantViewDatabase,
|
|
|
|
FixMinUsers,
|
|
|
|
FixPageBlockAudioEmptyFile,
|
|
|
|
AddMessageInvoiceProviderData,
|
2018-01-30 20:06:54 +03:00
|
|
|
AddCaptionEntities,
|
2018-04-09 21:06:37 +03:00
|
|
|
AddVenueType,
|
2018-06-07 21:42:17 +03:00
|
|
|
AddTermsOfService,
|
2018-06-26 00:10:53 +03:00
|
|
|
AddContactVcard,
|
2018-12-25 20:47:37 +03:00
|
|
|
AddMessageUnsupportedVersion,
|
2019-02-06 21:00:00 +03:00
|
|
|
SupportInstantView2_0,
|
2019-04-02 01:05:31 +03:00
|
|
|
AddNotificationGroupInfoMaxRemovedMessageId,
|
2019-03-01 22:51:33 +03:00
|
|
|
SupportMinithumbnails,
|
2019-06-08 12:26:35 +03:00
|
|
|
AddVideoCallsSupport,
|
2019-06-12 14:42:06 +03:00
|
|
|
AddPhotoSizeSource,
|
2019-08-26 20:08:51 +03:00
|
|
|
AddFolders,
|
2020-01-11 03:46:26 +03:00
|
|
|
SupportPolls2_0,
|
2020-04-18 08:45:41 +03:00
|
|
|
AddDiceEmoji,
|
2020-05-29 11:51:51 +03:00
|
|
|
AddAnimationStickers,
|
2018-12-31 22:04:05 +03:00
|
|
|
Next
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class DbVersion : int32 {
|
|
|
|
DialogDbCreated = 3,
|
|
|
|
MessagesDbMediaIndex,
|
|
|
|
MessagesDb30MediaIndex,
|
|
|
|
MessagesDbFts,
|
|
|
|
MessagesCallIndex,
|
|
|
|
FixFileRemoteLocationKeyBug,
|
2018-11-28 20:18:50 +03:00
|
|
|
AddNotificationsSupport,
|
2019-08-26 20:08:51 +03:00
|
|
|
AddFolders,
|
2019-12-02 03:33:35 +03:00
|
|
|
AddScheduledMessages,
|
2020-05-03 01:10:54 +03:00
|
|
|
StorePinnedDialogsInBinlog,
|
2018-12-31 22:04:05 +03:00
|
|
|
Next
|
|
|
|
};
|
|
|
|
|
2018-10-08 16:29:44 +03:00
|
|
|
inline constexpr int32 current_db_version() {
|
2018-12-31 22:04:05 +03:00
|
|
|
return static_cast<int32>(DbVersion::Next) - 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace td
|