misc/migration/3.5.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Feb 2011 18:06:17 +0100
changeset 6957 ffda12be2e9f
parent 4042 f85a4c846aad
child 8798 cdab3aadc679
permissions -rw-r--r--
[repository] #1460066: backport datafeed cube as cubicweb source * add some attributes to CWSource to handle this kind of source (not natural to put everything in 'config' string). Adding a CWSource subclass has been attempted then rollbacked because it adds pain to handle multi-sources planning and it introduce an ambiguity on a generic relation (cw_source), which may be a penalty in multiple case * data feed sources are a new kind of source, namely 'copy based', which have no effect on the query planner * a data feed source is associated to a list of url and a parser (appobjects in the 'parsers' registry * entities imported by a data feed have cwuri set to their url on the distant site, their cw_source relation point to the data feed source, though their source stored in the entities table (returned by cw_metainformation) is their physical source, hence 'system'
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3214
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
add_relation_type('prefered_form')
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
rql('SET X prefered_form Y WHERE Y canonical TRUE, X identical_to Y')
4042
f85a4c846aad 3.6 api update
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 3277
diff changeset
     4
commit()
3214
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     6
drop_attribute('EmailAddress', 'canonical')
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     7
drop_relation_definition('EmailAddress', 'identical_to', 'EmailAddress')
3277
4fdb165ae3de fix see_also permissions
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 3214
diff changeset
     8
4fdb165ae3de fix see_also permissions
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 3214
diff changeset
     9
if 'see_also' in schema:
4fdb165ae3de fix see_also permissions
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 3214
diff changeset
    10
    sync_schema_props_perms('see_also', syncprops=False, syncrdefs=False)