misc/migration/bootstrapmigration_repository.py
branchstable
changeset 1954 9b20f3504af8
parent 1952 8e19c813750d
child 1977 606923dff11b
equal deleted inserted replaced
1953:8834399f076e 1954:9b20f3504af8
    31 if applcubicwebversion < (2, 50, 0) and cubicwebversion >= (2, 50, 0):
    31 if applcubicwebversion < (2, 50, 0) and cubicwebversion >= (2, 50, 0):
    32     session.set_shared_data('do-not-insert-is_instance_of', True)
    32     session.set_shared_data('do-not-insert-is_instance_of', True)
    33     add_relation_type('is_instance_of')
    33     add_relation_type('is_instance_of')
    34     # fill the relation using an efficient sql query instead of using rql
    34     # fill the relation using an efficient sql query instead of using rql
    35     sql('INSERT INTO is_instance_of_relation '
    35     sql('INSERT INTO is_instance_of_relation '
    36 	'  SELECT * from is_relation')
    36         '  SELECT * from is_relation')
    37     checkpoint()
    37     checkpoint()
    38     session.set_shared_data('do-not-insert-is_instance_of', False)
    38     session.set_shared_data('do-not-insert-is_instance_of', False)
    39 
    39 
    40 if applcubicwebversion < (2, 42, 0) and cubicwebversion >= (2, 42, 0):
    40 if applcubicwebversion < (2, 42, 0) and cubicwebversion >= (2, 42, 0):
    41     sql('ALTER TABLE entities ADD COLUMN mtime TIMESTAMP')
    41     sql('ALTER TABLE entities ADD COLUMN mtime TIMESTAMP')