Skip to content

Commit c79adaa

Browse files
committed
Correct feeds & migrate database to version 25
Correct feeds with creation date of 1.1.1970
1 parent 97ec237 commit c79adaa

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Vienna/Sources/Database/Database+Migration.m

+4-3
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,13 @@ + (void)migrateDatabase:(FMDatabase *)database
250250
database.userVersion = (uint32_t)23;
251251
NSLog(@"Updated database schema to version 23.");
252252
}
253-
case 24: {
253+
case 24:
254+
case 25: {
254255
//correct articles that were saved with updatedDate is 1.1.1970 00:00
255256
[database executeStatements:@"UPDATE messages SET date = createddate WHERE date = 0"];
256257

257-
database.userVersion = (uint32_t)24;
258-
NSLog(@"Updated database schema to version 24.");
258+
database.userVersion = (uint32_t)25;
259+
NSLog(@"Updated database schema to version 25.");
259260
}
260261
}
261262
}

Vienna/Sources/Database/Database.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ + (NSString *)databasePath;
5858

5959
// The current database version number
6060
static NSInteger const VNAMinimumSupportedDatabaseVersion = 12;
61-
static NSInteger const VNACurrentDatabaseVersion = 24;
61+
static NSInteger const VNACurrentDatabaseVersion = 25;
6262

6363
@implementation Database
6464

0 commit comments

Comments
 (0)