Commit 37a6f91d authored by Łukasz Nowak's avatar Łukasz Nowak

Fix constraint migration.

Some conditions were missing (WHY??).
parent 3326057a
...@@ -32,6 +32,18 @@ ...@@ -32,6 +32,18 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>person_state_constraint</string> </value> <value> <string>person_state_constraint</string> </value>
</item> </item>
<item>
<key> <string>int_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>membership_criterion_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>membership_portal_type_list</string> </key> <key> <string>membership_portal_type_list</string> </key>
<value> <string>python: (\'Person\',)</string> </value> <value> <string>python: (\'Person\',)</string> </value>
...@@ -44,6 +56,22 @@ ...@@ -44,6 +56,22 @@
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Category Membership State Constraint</string> </value> <value> <string>Category Membership State Constraint</string> </value>
</item> </item>
<item>
<key> <string>string_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>test_method_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>test_tales_expression</string> </key>
<value> <string>python: object.getValidationState() in ("updated", "draft")</string> </value>
</item>
<item> <item>
<key> <string>workflow_state_list</string> </key> <key> <string>workflow_state_list</string> </key>
<value> <string>python: \'validated\'</string> </value> <value> <string>python: \'validated\'</string> </value>
......
...@@ -40,6 +40,18 @@ ...@@ -40,6 +40,18 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>reference_unicity_constraint</string> </value> <value> <string>reference_unicity_constraint</string> </value>
</item> </item>
<item>
<key> <string>int_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>membership_criterion_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>message_invalid_attribute_unicity</string> </key> <key> <string>message_invalid_attribute_unicity</string> </key>
<value> <string>Reference must be unique</string> </value> <value> <string>Reference must be unique</string> </value>
...@@ -48,6 +60,22 @@ ...@@ -48,6 +60,22 @@
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Attribute Unicity Constraint</string> </value> <value> <string>Attribute Unicity Constraint</string> </value>
</item> </item>
<item>
<key> <string>string_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>test_method_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>test_tales_expression</string> </key>
<value> <string>python: object.getReference("") != ""</string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -40,6 +40,18 @@ ...@@ -40,6 +40,18 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>email_unicity_constraint</string> </value> <value> <string>email_unicity_constraint</string> </value>
</item> </item>
<item>
<key> <string>int_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>membership_criterion_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>message_invalid_attribute_unicity</string> </key> <key> <string>message_invalid_attribute_unicity</string> </key>
<value> <string>Email must be unique</string> </value> <value> <string>Email must be unique</string> </value>
...@@ -48,6 +60,22 @@ ...@@ -48,6 +60,22 @@
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Attribute Unicity Constraint</string> </value> <value> <string>Attribute Unicity Constraint</string> </value>
</item> </item>
<item>
<key> <string>string_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>test_method_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>test_tales_expression</string> </key>
<value> <string>python: object.getCoordinateText("") != ""</string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -32,6 +32,18 @@ ...@@ -32,6 +32,18 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>computer_state_constraint</string> </value> <value> <string>computer_state_constraint</string> </value>
</item> </item>
<item>
<key> <string>int_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>membership_criterion_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>membership_portal_type_list</string> </key> <key> <string>membership_portal_type_list</string> </key>
<value> <string>python: (\'Computer\',)</string> </value> <value> <string>python: (\'Computer\',)</string> </value>
...@@ -44,6 +56,22 @@ ...@@ -44,6 +56,22 @@
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Category Membership State Constraint</string> </value> <value> <string>Category Membership State Constraint</string> </value>
</item> </item>
<item>
<key> <string>string_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>test_method_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>test_tales_expression</string> </key>
<value> <string>python: object.getAggregateValue(portal_type=\'Computer\') is not None</string> </value>
</item>
<item> <item>
<key> <string>workflow_state_list</string> </key> <key> <string>workflow_state_list</string> </key>
<value> <string>python: \'validated\'</string> </value> <value> <string>python: \'validated\'</string> </value>
......
...@@ -32,6 +32,18 @@ ...@@ -32,6 +32,18 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>resource_state_constraint</string> </value> <value> <string>resource_state_constraint</string> </value>
</item> </item>
<item>
<key> <string>int_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>membership_criterion_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>membership_portal_type_list</string> </key> <key> <string>membership_portal_type_list</string> </key>
<value> <string>python: (\'Service\',)</string> </value> <value> <string>python: (\'Service\',)</string> </value>
...@@ -44,6 +56,22 @@ ...@@ -44,6 +56,22 @@
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Category Membership State Constraint</string> </value> <value> <string>Category Membership State Constraint</string> </value>
</item> </item>
<item>
<key> <string>string_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>test_method_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>test_tales_expression</string> </key>
<value> <string>python: object.getResourceValue() is not None</string> </value>
</item>
<item> <item>
<key> <string>workflow_state_list</string> </key> <key> <string>workflow_state_list</string> </key>
<value> <string>python: \'validated\'</string> </value> <value> <string>python: \'validated\'</string> </value>
......
...@@ -32,6 +32,18 @@ ...@@ -32,6 +32,18 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>software_release_state_constraint</string> </value> <value> <string>software_release_state_constraint</string> </value>
</item> </item>
<item>
<key> <string>int_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>membership_criterion_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>membership_portal_type_list</string> </key> <key> <string>membership_portal_type_list</string> </key>
<value> <string>python: (\'Software Release\',)</string> </value> <value> <string>python: (\'Software Release\',)</string> </value>
...@@ -44,6 +56,22 @@ ...@@ -44,6 +56,22 @@
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Category Membership State Constraint</string> </value> <value> <string>Category Membership State Constraint</string> </value>
</item> </item>
<item>
<key> <string>string_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>test_method_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>test_tales_expression</string> </key>
<value> <string>python: object.getAggregateValue(portal_type=\'Software Release\') is not None</string> </value>
</item>
<item> <item>
<key> <string>workflow_state_list</string> </key> <key> <string>workflow_state_list</string> </key>
<value> <string>python: (\'shared\', \'released\', \'published\')</string> </value> <value> <string>python: (\'shared\', \'released\', \'published\')</string> </value>
......
...@@ -38,6 +38,18 @@ ...@@ -38,6 +38,18 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>title_unicity_constraint</string> </value> <value> <string>title_unicity_constraint</string> </value>
</item> </item>
<item>
<key> <string>int_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>membership_criterion_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>message_invalid_attribute_unicity</string> </key> <key> <string>message_invalid_attribute_unicity</string> </key>
<value> <string>Title already exists</string> </value> <value> <string>Title already exists</string> </value>
...@@ -46,6 +58,22 @@ ...@@ -46,6 +58,22 @@
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Attribute Unicity Constraint</string> </value> <value> <string>Attribute Unicity Constraint</string> </value>
</item> </item>
<item>
<key> <string>string_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>test_method_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>test_tales_expression</string> </key>
<value> <string>python: object.getTitle("") != ""</string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
207 208
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment