Skip to content

Commit

Permalink
Changed my mind, missing up/down method is non-fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Sep 7, 2008
1 parent 033f2fa commit e300936
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Classes/FmdbMigration.m
Expand Up @@ -20,13 +20,11 @@ + (id)migration {
#pragma mark up/down methods

- (void)up {
NSString *reason = [NSString stringWithFormat:@"%s: -up method not implemented", [self className]];
@throw [NSException exceptionWithName:@"MigrationMethodMissing" reason:reason userInfo:nil];
NSLog([NSString stringWithFormat:@"%s: -up method not implemented", [self className]]);
}

- (void)down {
NSString *reason = [NSString stringWithFormat:@"%s: -down method not implemented", [self className]];
@throw [NSException exceptionWithName:@"MigrationMethodMissing" reason:reason userInfo:nil];
NSLog([NSString stringWithFormat:@"%s: -down method not implemented", [self className]]);
}

- (void)upWithDatabase:(FMDatabase *)db {
Expand Down

0 comments on commit e300936

Please sign in to comment.