UNPKG

@titanium/turbo

Version:

<p align="center"> <img src="https://cdn.secure-api.org/images/turbo-title_400.png" /><br> <a href="https://www.npmjs.com/package/@titanium/turbo"> <img src="https://img.shields.io/npm/v/@titanium/turbo.png" /> </a> </p>

27 lines (25 loc) 509 B
migration.up = function(migrator) { migrator.createTable({ 'columns': { 'username':'text primary key', 'realname':'text', 'email':'text', 'loggedIn':'integer', 'loggedInSince':'text', 'authKey':'text', 'theme':'integer' } }); migrator.insertRow({ 'username':'user', 'realname':'Jane Smith', 'email':'jane.smith@appcelerator.com', 'loggedIn':0, 'loggedInSince':'', 'authKey':'', 'theme':0 }); }; migration.down = function(migrator) { migrator.dropTable('user'); };