Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfccfb8
commit 87164bb
Showing
1 changed file
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
// create the tables if required | ||
|
||
// for testing purpose | ||
//var db = Titanium.Database.open('xavcc'); | ||
//db.execute('DROP TABLE IF EXISTS shorturl'); | ||
//db.close(); | ||
// increment the number below each time you push a new model version | ||
// (forces rebuild on phone) | ||
var current_migration_version = 6; | ||
|
||
joli.models.initialize(); | ||
// create the tables if required | ||
joli.models.migrate(current_migration_version); | ||
joli.models.initialize(); |