85 |
85 |
86 commit() |
86 commit() |
87 |
87 |
88 replace_eid_sequence_with_eid_numrange(session) |
88 replace_eid_sequence_with_eid_numrange(session) |
89 |
89 |
90 if applcubicwebversion < (3, 20, 0) and cubicwebversion >= (3, 20, 0): |
|
91 ss._IGNORED_PROPS.append('formula') |
|
92 add_attribute('CWAttribute', 'formula', commit=False) |
|
93 ss._IGNORED_PROPS.remove('formula') |
|
94 commit() |
|
95 add_entity_type('CWComputedRType') |
|
96 commit() |
|
97 |
|
98 if schema['TZDatetime'].eid is None: |
|
99 add_entity_type('TZDatetime', auto=False) |
|
100 if schema['TZTime'].eid is None: |
|
101 add_entity_type('TZTime', auto=False) |
|
102 |
90 |
103 if applcubicwebversion < (3, 18, 0) and cubicwebversion >= (3, 18, 0): |
91 if applcubicwebversion < (3, 18, 0) and cubicwebversion >= (3, 18, 0): |
104 driver = config.system_source_config['db-driver'] |
92 driver = config.system_source_config['db-driver'] |
105 if not (driver == 'postgres' or driver.startswith('sqlserver')): |
93 if not (driver == 'postgres' or driver.startswith('sqlserver')): |
106 import sys |
94 import sys |
435 commit() |
423 commit() |
436 |
424 |
437 if applcubicwebversion < (3, 2, 0) and cubicwebversion >= (3, 2, 0): |
425 if applcubicwebversion < (3, 2, 0) and cubicwebversion >= (3, 2, 0): |
438 add_cube('card', update_database=False) |
426 add_cube('card', update_database=False) |
439 |
427 |
|
428 if applcubicwebversion < (3, 20, 0) and cubicwebversion >= (3, 20, 0): |
|
429 ss._IGNORED_PROPS.append('formula') |
|
430 add_attribute('CWAttribute', 'formula', commit=False) |
|
431 ss._IGNORED_PROPS.remove('formula') |
|
432 commit() |
|
433 add_entity_type('CWComputedRType') |
|
434 commit() |
|
435 |
|
436 if schema['TZDatetime'].eid is None: |
|
437 add_entity_type('TZDatetime', auto=False) |
|
438 if schema['TZTime'].eid is None: |
|
439 add_entity_type('TZTime', auto=False) |
|
440 |
440 |
441 |
441 if applcubicwebversion < (3, 21, 1) and cubicwebversion >= (3, 21, 1): |
442 if applcubicwebversion < (3, 21, 1) and cubicwebversion >= (3, 21, 1): |
442 add_relation_definition('CWComputedRType', 'read_permission', 'CWGroup') |
443 add_relation_definition('CWComputedRType', 'read_permission', 'CWGroup') |
443 add_relation_definition('CWComputedRType', 'read_permission', 'RQLExpression') |
444 add_relation_definition('CWComputedRType', 'read_permission', 'RQLExpression') |
444 |
445 |