Deprecate DB.getNextName() in favor of Utilities.Internal.getNextName()

This commit is contained in:
Dan Stillman 2018-12-27 07:12:26 -05:00
parent 7575cd8b29
commit 5fa608e379

View file

@ -331,8 +331,10 @@ Zotero.DBConnection.prototype.getColumns = function (table) {
**/
Zotero.DBConnection.prototype.getNextName = Zotero.Promise.coroutine(function* (libraryID, table, field, name)
{
Zotero.debug("WARNING: Zotero.DB.getNextName() is deprecated -- "
+ "use Zotero.Utilities.Internal.getNextName() instead", 2);
if (typeof name == 'undefined') {
Zotero.debug("WARNING: The parameters of Zotero.DB.getNextName() have changed -- update your code", 2);
[libraryID, table, field, name] = [null, libraryID, table, field];
}