--- a/server/migractions.py Wed Jun 13 12:38:06 2012 +0200
+++ b/server/migractions.py Tue Jul 17 17:16:28 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"""