From 749ac571a757607f8513ef85a311552a04971102 Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <antoine.romain.dumont@gmail.com> Date: Mon, 30 May 2022 17:57:31 +0200 Subject: [PATCH] docs/db: Update datastore requirement This is the second part of 240ae09. Related to T4228 --- docs/db.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/db.rst b/docs/db.rst index b17a9cb1..930f121f 100644 --- a/docs/db.rst +++ b/docs/db.rst @@ -114,8 +114,8 @@ conditions are expected: returning an instance of the datastore object. Normally, this datastore object uses ``swh.core.db.BaseDb`` to interact with the actual database. -- The datastore object should provide a ``get_current_version()`` method - returning the database version expected by the code. +- The datastore object should provide a ``current_version`` attribute returning the + database version expected by the code. See existing ``swh`` packages like ``swh.storage`` or ``swh.scheduler`` for usage examples. -- GitLab