misc/migration/3.11.0_Any.py
changeset 6957 ffda12be2e9f
parent 6944 0cf10429ad39
child 6958 861251f125cf
--- a/misc/migration/3.11.0_Any.py	Wed Feb 09 18:06:13 2011 +0100
+++ b/misc/migration/3.11.0_Any.py	Wed Feb 09 18:06:17 2011 +0100
@@ -1,7 +1,13 @@
 for rtype in ('cw_support', 'cw_dont_cross', 'cw_may_cross'):
     drop_relation_type(rtype)
+
 add_entity_type('CWSourceSchemaConfig')
 
+if not 'url' in schema['CWSource'].subjrels:
+    add_attribute('CWSource', 'url')
+    add_attribute('CWSource', 'parser')
+    add_attribute('CWSource', 'latest_retrieval')
+
 try:
     from cubicweb.server.sources.pyrorql import PyroRQLSource
 except ImportError: