瀏覽代碼

fix script

master
peter 5 年之前
父節點
當前提交
236a4042c9
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      migrations/000_signups_addColumn_memo_timestamp.js

+ 1
- 3
migrations/000_signups_addColumn_memo_timestamp.js 查看文件

28
                                         table.boolean('late')
28
                                         table.boolean('late')
29
                                         table.timestamp('timestamp').defaultTo(knex.fn.now())
29
                                         table.timestamp('timestamp').defaultTo(knex.fn.now())
30
                                         table.string('memo').nullable()
30
                                         table.string('memo').nullable()
31
-                                        return table
32
-                                    }).then(_ => {
33
-                                        knex('signups').insert(rows).then(res)
31
+                                        res()
34
                                     }).catch(rej)
32
                                     }).catch(rej)
35
                                 })
33
                                 })
36
                             })
34
                             })

Loading…
取消
儲存