server/migractions.py
branchstable
changeset 8467 ad75430a2dc8
parent 8307 8be58694f416
child 8483 4ba11607d84a
child 8530 2bceea9dee95
--- a/server/migractions.py	Fri Jul 13 14:29:52 2012 +0200
+++ b/server/migractions.py	Tue Jul 17 11:08:36 2012 +0200
@@ -1075,7 +1075,7 @@
         if commit:
             self.commit()
 
-    def cmd_rename_relation(self, oldname, newname, commit=True):
+    def cmd_rename_relation_type(self, oldname, newname, commit=True):
         """rename an existing relation
 
         `oldname` is a string giving the name of the existing relation
@@ -1526,6 +1526,10 @@
     def cmd_reactivate_verification_hooks(self):
         self.session.enable_hook_categories('integrity')
 
+    @deprecated("[3.15] use session.rename_relation_type(oldname, newname)")
+    def cmd_rename_relation(self, oldname, newname, commit=True):
+        self.session.rename_relation_type(oldname, newname, commit)
+
 
 class ForRqlIterator:
     """specific rql iterator to make the loop skipable"""