{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientjs/issues/120","labels_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/120/comments","events_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/120/events","html_url":"https://github.com/orientechnologies/orientjs/issues/120","id":120740029,"number":120,"title":"db migration 'then function' not working after creating class","user":{"login":"shyamchandranmec","id":4659735,"avatar_url":"https://avatars.githubusercontent.com/u/4659735?v=3","gravatar_id":"","url":"https://api.github.com/users/shyamchandranmec","html_url":"https://github.com/shyamchandranmec","followers_url":"https://api.github.com/users/shyamchandranmec/followers","following_url":"https://api.github.com/users/shyamchandranmec/following{/other_user}","gists_url":"https://api.github.com/users/shyamchandranmec/gists{/gist_id}","starred_url":"https://api.github.com/users/shyamchandranmec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyamchandranmec/subscriptions","organizations_url":"https://api.github.com/users/shyamchandranmec/orgs","repos_url":"https://api.github.com/users/shyamchandranmec/repos","events_url":"https://api.github.com/users/shyamchandranmec/events{/privacy}","received_events_url":"https://api.github.com/users/shyamchandranmec/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientjs/labels/waiting%20reply","name":"waiting reply","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"maggiolo00","id":98812,"avatar_url":"https://avatars.githubusercontent.com/u/98812?v=3","gravatar_id":"","url":"https://api.github.com/users/maggiolo00","html_url":"https://github.com/maggiolo00","followers_url":"https://api.github.com/users/maggiolo00/followers","following_url":"https://api.github.com/users/maggiolo00/following{/other_user}","gists_url":"https://api.github.com/users/maggiolo00/gists{/gist_id}","starred_url":"https://api.github.com/users/maggiolo00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggiolo00/subscriptions","organizations_url":"https://api.github.com/users/maggiolo00/orgs","repos_url":"https://api.github.com/users/maggiolo00/repos","events_url":"https://api.github.com/users/maggiolo00/events{/privacy}","received_events_url":"https://api.github.com/users/maggiolo00/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-12-07T10:14:45Z","updated_at":"2015-12-17T16:10:16Z","closed_at":null,"body":"I am creating a migration script using\r\n\r\n### orients migrate create something\r\n\r\n\r\nThe up function looks like this\r\n\r\n db.class.create('User', 'V')\r\n    .then(function (User) {\r\n        console.log(\"Created class User\");\r\n    })\r\n}\r\n\r\nThe 'then' function is not getting executed. But the class is getting created. Is there anything missing?\r\nI am using orientdb-community-2.1.6\r\nHere is the link to stackoverflow: http://stackoverflow.com/questions/34130775/db-migration-in-orientdb-nodejs-orientjs"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientjs/issues/comments/165496414","html_url":"https://github.com/orientechnologies/orientjs/issues/120#issuecomment-165496414","issue_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/120","id":165496414,"user":{"login":"maggiolo00","id":98812,"avatar_url":"https://avatars.githubusercontent.com/u/98812?v=3","gravatar_id":"","url":"https://api.github.com/users/maggiolo00","html_url":"https://github.com/maggiolo00","followers_url":"https://api.github.com/users/maggiolo00/followers","following_url":"https://api.github.com/users/maggiolo00/following{/other_user}","gists_url":"https://api.github.com/users/maggiolo00/gists{/gist_id}","starred_url":"https://api.github.com/users/maggiolo00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggiolo00/subscriptions","organizations_url":"https://api.github.com/users/maggiolo00/orgs","repos_url":"https://api.github.com/users/maggiolo00/repos","events_url":"https://api.github.com/users/maggiolo00/events{/privacy}","received_events_url":"https://api.github.com/users/maggiolo00/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T16:10:16Z","updated_at":"2015-12-17T16:10:16Z","body":"hi @shyamchandranmec \n\ntry this\n\n```JAVASCRIPT\nexport.up = function(db){\n   return db.class.create('User', 'V')\n          .then(function (User) {\n              console.log(\"Created class User\");\n          })\n}\n}\n```\n"}}