Skip to content

Commit

Permalink
make use of joli.js migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Feb 22, 2011
1 parent dfccfb8 commit 87164bb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Resources/js/lib/install.js
@@ -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();

0 comments on commit 87164bb

Please sign in to comment.