travel: Adopting the new breaking changes in Syncbase API
where db.createTable and db.deleteTable were deprecated in
favour of table.create and table.destroy
Also fixing a small issue with Makefile.
MultiPart: 8/8
Change-Id: Ia89e3d94cbc9300a2fec4f6257e92ac5240ad52e
diff --git a/Makefile b/Makefile
index 7da5f6a..f8cee03 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@
@npm install
@ # TODO(rosswang): remove these two
@npm install $(V23_ROOT)/release/javascript/core/
- @npm install $(V23_ROOT)/roadmap/javascript/syncbase/
+ @npm install $(V23_ROOT)/release/javascript/syncbase/
@touch $@ # if npm does nothing, we don't want to keep trying
server-root:
diff --git a/src/vanadium-wrapper/syncbase-wrapper.js b/src/vanadium-wrapper/syncbase-wrapper.js
index a7f6cba..5fd994f 100644
--- a/src/vanadium-wrapper/syncbase-wrapper.js
+++ b/src/vanadium-wrapper/syncbase-wrapper.js
@@ -29,7 +29,8 @@
})
.catch(nonfatals)
.then(function() {
- return promisify(db.createTable.bind(db))(context, 't', {});
+ var table = db.table('t');
+ return promisify(table.create.bind(table))(context, {});
})
.catch(nonfatals);
}