1 | 'use strict';
|
2 |
|
3 | var dbm;
|
4 | var type;
|
5 | var seed;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | exports.setup = function(options, seedLink) {
|
12 | dbm = options.dbmigrate;
|
13 | type = dbm.dataType;
|
14 | seed = seedLink;
|
15 | };
|
16 |
|
17 | exports.up = function(db) {
|
18 | return db.createTable('login', {
|
19 | id: { type: 'int', primaryKey: true, autoIncrement: true},
|
20 | uid: { type: 'int'},
|
21 | type: { type: 'int'},
|
22 | time: {type: 'string', length: 50},
|
23 | });
|
24 | };
|
25 |
|
26 | exports.down = function(db) {
|
27 | return db.dropTable('login').then(
|
28 | function(result) {
|
29 | },
|
30 | function(err) {
|
31 | }
|
32 | );
|
33 | };
|
34 |
|
35 | exports._meta = {
|
36 | "version": 1
|
37 | };
|