Title / Description
Code // Setup database location NSString *dbName = @"cartracker.sqlite3"; NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDir = [documentPaths objectAtIndex:0]; NSString *databasePath = [documentsDir stringByAppendingPathComponent:dbName]; //Run Migrations [FmdbMigrationManager executeForDatabasePath:databasePath withMigrations:migrations];
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code