Skip to content

Instantly share code, notes, and snippets.

Created October 27, 2014 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3725eb34583439c2cfe0 to your computer and use it in GitHub Desktop.
Save anonymous/3725eb34583439c2cfe0 to your computer and use it in GitHub Desktop.
var app = require('../app');
var dataSource = app.dataSources.statsguy;
function handleError (error) {
if (error) throw error
}
// Use .autoupdate to update tables without destroying old date
// .automigrate to completely re-create the tables
dataSource.autoupdate('accessToken', handleError);
dataSource.autoupdate('userCredential', handleError);
dataSource.autoupdate('userIdentity', handleError);
dataSource.autoupdate('user', handleError);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment