// from the sample app, annotated
function doClick(e) {
var m = Alloy.createModel('books');
m.fetch({id: e.row.rowid}) // rowid is the alloy_id primary key
Ti.API.info(JSON.stringify(m.toJSON()));
// {"title":"Changed","alloy_id":"d6bfe744-8e7a-9b24-c958-1e4275318276","pagecount":null}
m.save({title: 'Changed', pagecount: 200});
Ti.API.info(JSON.stringify(m.toJSON()));
// {"title":"Changed","alloy_id":"d6bfe744-8e7a-9b24-c958-1e4275318276","pagecount":200}
// but looking in the app's db, the pagecount column is still null
Alloy.Collections.books.fetch();
}
Sample / test app attached. Also, screenshot of app's database after migration has been applied and a few new models have been added (any labeled Changed were added after the migration and should have a pagecount)
This behavior is present with Alloy 1.6.0-dev, 1.5.1, 1.4.1, and 1.3.1.