diff options
author | Greg Soltis <gsoltis@google.com> | 2018-01-30 14:36:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-30 14:36:22 -0800 |
commit | 3cbdbf2652202a3473271ed298ff50e5797cce68 (patch) | |
tree | 3b24b8feff76b3f7551bd17ffd8f1caa38c552ad /Firestore/Source/Local/FSTLevelDBKey.h | |
parent | 6474a82fd6e0e10b2cf97c4dc531e837ec97792b (diff) |
Schema migrations for LevelDB (#728)
* Implement schema versions
* Style fixes
* newlines, copyrights, assumptions
* Fix nullability
* Raw ptr -> shared_ptr
* kVersionTableGlobal -> kVersionGlobalTable
* Drop utils, move into static methods
* Drop extra include
* Add a few more comments
* Move version constant into migrations file
* formatting?
* Fix comment
Diffstat (limited to 'Firestore/Source/Local/FSTLevelDBKey.h')
-rw-r--r-- | Firestore/Source/Local/FSTLevelDBKey.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Firestore/Source/Local/FSTLevelDBKey.h b/Firestore/Source/Local/FSTLevelDBKey.h index 2e9b9b2..e5e7fbb 100644 --- a/Firestore/Source/Local/FSTLevelDBKey.h +++ b/Firestore/Source/Local/FSTLevelDBKey.h @@ -82,6 +82,14 @@ NS_ASSUME_NONNULL_BEGIN @end +/** A key to a singleton row storing the version of the schema. */ +@interface FSTLevelDBVersionKey : NSObject + +/** Returns the key pointing to the singleton row storing the schema version. */ ++ (std::string)key; + +@end + /** A key in the mutations table. */ @interface FSTLevelDBMutationKey : NSObject |