diff --git a/kallithea/lib/dbmigrate.py b/kallithea/lib/dbmigrate.py
new file mode 100644
--- /dev/null
+++ b/kallithea/lib/dbmigrate.py
@@ -0,0 +1,10 @@
+from paste.script.command import Command
+
+class UpgradeDb(Command):
+    hidden = True
+
+    def run(self, args):
+        raise SystemExit(
+            'The "paster upgrade-db" command has been removed; please see the docs:\n'
+            '    https://kallithea.readthedocs.io/en/latest/upgrade.html'
+        )