Commits

Anonymous committed 154cf95

Published db.addDefault(), db.dropDefault(), db.addConstrs(),
and db.dropAllConstrs().

  • Participants
  • Parent commits 9dae5a6

Comments (0)

Files changed (1)

   'getUnique',
   'getForeign',
   'addAttrs',
-  'dropAttrs'
+  'dropAttrs',
+  'addDefault',
+  'dropDefault',
+  'dropAllConstrs'
 ].forEach(
   function (name) {
     inner.publishFunction(name, _core.db, exports);
                          updateExprs,
                          updateParams || []);
 };
+
+
+exports.addConstrs = function (name, constrs) {
+  _core.db.addConstrs(name,
+                      constrs.unique || [],
+                      constrs.foreign || [],
+                      constrs.check || []);
+};