mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-23 01:16:43 +00:00
Update index.js
This commit is contained in:
parent
217598170f
commit
f6d1249196
@ -4,6 +4,8 @@ var path = require('path');
|
||||
var stateStore = path.join(process.cwd(), '.migrate');
|
||||
var migrationsDirectory = path.join(__dirname, 'migrations');
|
||||
|
||||
// let Fiber = require('fibers');
|
||||
|
||||
const up = async function() {
|
||||
|
||||
migrate.load({
|
||||
@ -45,8 +47,23 @@ const down = async function() {
|
||||
})
|
||||
}
|
||||
|
||||
// const upSync = function(){
|
||||
// Fiber(function(){
|
||||
// let fiber = Fiber.current;
|
||||
// up.then(result => {
|
||||
// fiber.run();
|
||||
// }).catch(result => {
|
||||
// console.error(result)
|
||||
// fiber.run();
|
||||
// })
|
||||
// Fiber.yield();
|
||||
// }).run();
|
||||
// }
|
||||
|
||||
|
||||
module.exports = {
|
||||
init: init,
|
||||
up: up,
|
||||
// upSync: upSync,
|
||||
down: down
|
||||
}
|
Loading…
Reference in New Issue
Block a user