ECDatabaseUpdate.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * Copyright 2005 - 2016 Zarafa and its licensors
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Affero General Public License, version 3,
  6. * as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU Affero General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Affero General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. */
  17. #ifndef ECDATABASEUPDATE_H
  18. #define ECDATABASEUPDATE_H
  19. #include <kopano/zcdefs.h>
  20. #include <kopano/ECLogger.h>
  21. namespace KC {
  22. ECRESULT UpdateDatabaseConvertToUnicode(ECDatabase *);
  23. ECRESULT UpdateDatabaseCreateVersionsTable(ECDatabase *lpDatabase);
  24. ECRESULT UpdateDatabaseCreateSearchFolders(ECDatabase *lpDatabase);
  25. ECRESULT UpdateDatabaseFixUserNonActive(ECDatabase *lpDatabase);
  26. ECRESULT UpdateDatabaseCreateSearchFoldersFlags(ECDatabase *lpDatabase);
  27. ECRESULT UpdateDatabasePopulateSearchFolders(ECDatabase *lpDatabase);
  28. ECRESULT UpdateDatabaseCreateChangesTable(ECDatabase *lpDatabase);
  29. ECRESULT UpdateDatabaseCreateSyncsTable(ECDatabase *lpDatabase);
  30. ECRESULT UpdateDatabaseCreateIndexedPropertiesTable(ECDatabase *lpDatabase);
  31. ECRESULT UpdateDatabaseCreateSettingsTable(ECDatabase *lpDatabase);
  32. ECRESULT InsertServerGUID(ECDatabase *lpDatabase);
  33. ECRESULT UpdateDatabaseCreateServerGUID(ECDatabase *lpDatabase);
  34. ECRESULT UpdateDatabaseCreateSourceKeys(ECDatabase *lpDatabase);
  35. ECRESULT UpdateDatabaseConvertEntryIDs(ECDatabase *lpDatabase);
  36. ECRESULT CreateRecursiveStoreEntryIds(ECDatabase *lpDatabase, unsigned int ulStoreHierarchyId, unsigned char* lpStoreGuid);
  37. ECRESULT UpdateDatabaseSearchCriteria(ECDatabase *lpDatabase);
  38. ECRESULT UpdateDatabaseAddUserObjectType(ECDatabase *lpDatabase);
  39. ECRESULT UpdateDatabaseAddUserSignature(ECDatabase *lpDatabase);
  40. ECRESULT UpdateDatabaseAddSourceKeySetting(ECDatabase *lpDatabase);
  41. ECRESULT UpdateDatabaseRestrictExternId(ECDatabase *lpDatabase);
  42. ECRESULT UpdateDatabaseAddUserCompany(ECDatabase *lpDatabase);
  43. ECRESULT UpdateDatabaseAddObjectRelationType(ECDatabase *lpDatabase);
  44. ECRESULT UpdateDatabaseDelUserCompany(ECDatabase *lpDatabase);
  45. ECRESULT UpdateDatabaseAddCompanyToStore(ECDatabase *lpDatabase);
  46. ECRESULT UpdateDatabaseAddIMAPSequenceNumber(ECDatabase *lpDatabase);
  47. ECRESULT UpdateDatabaseKeysChanges(ECDatabase *lpDatabase);
  48. ECRESULT UpdateDatabaseMoveFoldersInPublicFolder(ECDatabase *lpDatabase);
  49. ECRESULT UpdateDatabaseAddExternIdToObject(ECDatabase *lpDatabase);
  50. ECRESULT UpdateDatabaseCreateReferences(ECDatabase *lpDatabase);
  51. ECRESULT UpdateDatabaseLockDistributed(ECDatabase *lpDatabase);
  52. ECRESULT UpdateDatabaseCreateABChangesTable(ECDatabase *lpDatabase);
  53. ECRESULT UpdateDatabaseSetSingleinstanceTag(ECDatabase *lpDatabase);
  54. ECRESULT UpdateDatabaseCreateSyncedMessagesTable(ECDatabase *lpDatabase);
  55. ECRESULT UpdateDatabaseForceAbResync(ECDatabase *lpDatabase);
  56. ECRESULT UpdateDatabaseRenameObjectTypeToObjectClass(ECDatabase *lpDatabase);
  57. ECRESULT UpdateDatabaseConvertObjectTypeToObjectClass(ECDatabase *lpDatabase);
  58. ECRESULT UpdateDatabaseAddMVPropertyTable(ECDatabase *lpDatabase);
  59. ECRESULT UpdateDatabaseCompanyNameToCompanyId(ECDatabase *lpDatabase);
  60. ECRESULT UpdateDatabaseOutgoingQueuePrimarykey(ECDatabase *lpDatabase);
  61. ECRESULT UpdateDatabaseACLPrimarykey(ECDatabase *lpDatabase);
  62. ECRESULT UpdateDatabaseBlobExternId(ECDatabase *lpDatabase);
  63. ECRESULT UpdateDatabaseKeysChanges2(ECDatabase *lpDatabase);
  64. ECRESULT UpdateDatabaseMVPropertiesPrimarykey(ECDatabase *lpDatabase);
  65. ECRESULT UpdateDatabaseFixDBPluginGroups(ECDatabase *lpDatabase);
  66. ECRESULT UpdateDatabaseFixDBPluginSendAs(ECDatabase *lpDatabase);
  67. ECRESULT UpdateDatabaseMoveSubscribedList(ECDatabase *lpDatabase);
  68. ECRESULT UpdateDatabaseSyncTimeIndex(ECDatabase *lpDatabase);
  69. ECRESULT UpdateDatabaseAddStateKey(ECDatabase *lpDatabase);
  70. ECRESULT UpdateDatabaseConvertStoreUsername(ECDatabase *lpDatabase);
  71. ECRESULT UpdateDatabaseConvertRules(ECDatabase *lpDatabase);
  72. ECRESULT UpdateDatabaseConvertSearchFolders(ECDatabase *lpDatabase);
  73. ECRESULT UpdateDatabaseConvertProperties(ECDatabase *lpDatabase);
  74. ECRESULT UpdateDatabaseCreateCounters(ECDatabase *lpDatabase);
  75. ECRESULT UpdateDatabaseCreateCommonProps(ECDatabase *lpDatabase);
  76. ECRESULT UpdateDatabaseCheckAttachments(ECDatabase *lpDatabase);
  77. ECRESULT UpdateDatabaseCreateTProperties(ECDatabase *lpDatabase);
  78. ECRESULT UpdateDatabaseConvertHierarchy(ECDatabase *lpDatabase);
  79. ECRESULT UpdateDatabaseCreateDeferred(ECDatabase *lpDatabase);
  80. ECRESULT UpdateDatabaseConvertChanges(ECDatabase *lpDatabase);
  81. ECRESULT UpdateDatabaseConvertNames(ECDatabase *lpDatabase);
  82. ECRESULT UpdateDatabaseReceiveFolderToUnicode(ECDatabase *lpDatabase);
  83. ECRESULT UpdateDatabaseClientUpdateStatus(ECDatabase *lpDatabase);
  84. ECRESULT UpdateDatabaseConvertStores(ECDatabase *lpDatabase);
  85. ECRESULT UpdateDatabaseUpdateStores(ECDatabase *lpDatabase);
  86. ECRESULT UpdateWLinkRecordKeys(ECDatabase *lpDatabase);
  87. ECRESULT UpdateVersionsTbl(ECDatabase *db);
  88. ECRESULT UpdateChangesTbl(ECDatabase *db);
  89. ECRESULT UpdateABChangesTbl(ECDatabase *db);
  90. extern _kc_export bool searchfolder_restart_required;
  91. } /* namespace */
  92. #endif // #ifndef ECDATABASEUPDATE_H