2018-12-31 20:04:05 +01:00
|
|
|
//
|
2018-12-31 23:02:34 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2019
|
2018-12-31 20:04:05 +01: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 {
|
|
|
|
|
|
|
|
enum class Version : int32 {
|
|
|
|
Initial,
|
|
|
|
StoreFileId,
|
|
|
|
AddKeyHashToSecretChat,
|
|
|
|
AddDurationToAnimation,
|
|
|
|
FixStoreGameWithoutAnimation,
|
|
|
|
AddAccessHashToSecretChat,
|
|
|
|
StoreFileOwnerId,
|
|
|
|
StoreFileEncryptionKey,
|
|
|
|
NetStatsCountDuration,
|
|
|
|
FixWebPageInstantViewDatabase,
|
|
|
|
FixMinUsers,
|
|
|
|
FixPageBlockAudioEmptyFile,
|
|
|
|
AddMessageInvoiceProviderData,
|
2018-01-30 18:06:54 +01:00
|
|
|
AddCaptionEntities,
|
2018-04-09 20:06:37 +02:00
|
|
|
AddVenueType,
|
2018-06-07 20:42:17 +02:00
|
|
|
AddTermsOfService,
|
2018-06-25 23:10:53 +02:00
|
|
|
AddContactVcard,
|
2018-12-25 18:47:37 +01:00
|
|
|
AddMessageUnsupportedVersion,
|
2018-12-31 20:04:05 +01:00
|
|
|
Next
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class DbVersion : int32 {
|
|
|
|
DialogDbCreated = 3,
|
|
|
|
MessagesDbMediaIndex,
|
|
|
|
MessagesDb30MediaIndex,
|
|
|
|
MessagesDbFts,
|
|
|
|
MessagesCallIndex,
|
|
|
|
FixFileRemoteLocationKeyBug,
|
2018-11-28 18:18:50 +01:00
|
|
|
AddNotificationsSupport,
|
2018-12-31 20:04:05 +01:00
|
|
|
Next
|
|
|
|
};
|
|
|
|
|
2018-10-08 15:29:44 +02:00
|
|
|
inline constexpr int32 current_db_version() {
|
2018-12-31 20:04:05 +01:00
|
|
|
return static_cast<int32>(DbVersion::Next) - 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace td
|