File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ - (void)setLastETag:(NSString *)lastETag {
151151}
152152
153153- (void )setLastETagUpdateTime : (NSTimeInterval )lastETagUpdateTime  {
154-   NSLog (@" setter: %f "  , lastETagUpdateTime);
155154  [_userDefaultsManager setLastETagUpdateTime: lastETagUpdateTime];
156155}
157156
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ open class ConfigDBManager: NSObject {
323323  @objc   public 
324324  func  deleteRecord( withBundleIdentifier bundleIdentifier:  String , 
325325                    namespace:  String )  { 
326-     let  sql  =  " DELETE FROM fetch_metadata  WHERE bundle_identifier = ? and namespace = ? " 
326+     let  sql  =  " DELETE FROM fetch_metadata_v2  WHERE bundle_identifier = ? and namespace = ? " 
327327    let  params  =  [ bundleIdentifier,  namespace] 
328328    Task  { 
329329      await  self . databaseActor. executeQuery ( sql,  withParams:  params) 
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ actor DatabaseActor {
8585
8686  func  insertMetadataTable( withValues columnNameToValue:  [ String :  Any ] )  ->  Bool  { 
8787    let  sql  =  """ 
88-     INSERT into fetch_metadata  ( \ 
88+     INSERT into fetch_metadata_v2  ( \ 
8989      bundle_identifier,  \ 
9090      namespace,  \ 
9191      fetch_time,  \ 
@@ -333,12 +333,12 @@ actor DatabaseActor {
333333    var  sql :  String 
334334    switch  option { 
335335    case  . applyTime: 
336-       sql =  " UPDATE fetch_metadata  SET last_apply_time = ? WHERE namespace = ? " 
336+       sql =  " UPDATE fetch_metadata_v2  SET last_apply_time = ? WHERE namespace = ? " 
337337    case  . defaultTime: 
338-       sql =  " UPDATE fetch_metadata  SET last_set_defaults_time = ? WHERE namespace = ? " 
338+       sql =  " UPDATE fetch_metadata_v2  SET last_set_defaults_time = ? WHERE namespace = ? " 
339339    case  . fetchStatus: 
340340      sql = 
341-         " UPDATE fetch_metadata  SET last_fetch_status = ?, last_fetch_error = ? WHERE namespace = ? " 
341+         " UPDATE fetch_metadata_v2  SET last_fetch_status = ?, last_fetch_error = ? WHERE namespace = ? " 
342342    } 
343343
344344    var  statement :  OpaquePointer ?   =  nil 
@@ -389,7 +389,7 @@ actor DatabaseActor {
389389      last_fetch_error,  \ 
390390      last_apply_time,  \ 
391391      last_set_defaults_time  \ 
392-     FROM fetch_metadata   \ 
392+     FROM fetch_metadata_v2   \ 
393393    WHERE bundle_identifier = ? AND namespace = ? 
394394     """ 
395395    var  statement :  OpaquePointer ? 
@@ -703,7 +703,7 @@ actor DatabaseActor {
703703     """ 
704704
705705    let  createMetadata  =  """ 
706-     CREATE TABLE IF NOT EXISTS fetch_metadata  ( 
706+     CREATE TABLE IF NOT EXISTS fetch_metadata_v2  ( 
707707      _id INTEGER PRIMARY KEY, 
708708      bundle_identifier TEXT, 
709709      namespace TEXT, 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments