Parcourir la source

fix script

master
peter il y a 5 ans
Parent
révision
236a4042c9
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1
    3
      migrations/000_signups_addColumn_memo_timestamp.js

+ 1
- 3
migrations/000_signups_addColumn_memo_timestamp.js Voir le fichier

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

Chargement…
Annuler
Enregistrer